mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-19 13:53:07 +00:00
54 lines
846 B
Plaintext
54 lines
846 B
Plaintext
NAME=test pDj missing newline issue
|
|
FILE=-
|
|
EXPECT=<<EOF
|
|
[
|
|
{
|
|
"offset": 0,
|
|
"ptr": 104,
|
|
"val": 104,
|
|
"esil": "104,rdi,+=,63,$o,of,:=,63,$s,sf,:=,$z,zf,:=,63,$c,cf,:=,$p,pf,:=",
|
|
"refptr": false,
|
|
"fcn_addr": 0,
|
|
"fcn_last": 0,
|
|
"size": 4,
|
|
"opcode": "add rdi, 0x68",
|
|
"disasm": "add rdi, 0x68",
|
|
"bytes": "4883c768",
|
|
"family": "cpu",
|
|
"type": "add",
|
|
"reloc": false,
|
|
"type_num": 17,
|
|
"type2_num": 0
|
|
}
|
|
]
|
|
EOF
|
|
CMDS=<<EOF
|
|
e asm.arch=x86
|
|
e asm.bits=64
|
|
wx 4883c768
|
|
pDj 4~{}
|
|
EOF
|
|
RUN
|
|
|
|
NAME=/j with backslash
|
|
FILE=../bins/pe/ConsoleApplication1.exe
|
|
EXPECT=<<EOF
|
|
[
|
|
{
|
|
"offset": 4203952,
|
|
"type": "string",
|
|
"data": "cation1\\Release\\ConsoleApplication1.pdb "
|
|
}
|
|
]
|
|
EOF
|
|
CMDS=/j ConsoleApplication1.pdb~{}
|
|
RUN
|
|
|
|
NAME=empty irj should print empty array
|
|
FILE=-
|
|
EXPECT=<<EOF
|
|
[]
|
|
EOF
|
|
CMDS=irj
|
|
RUN
|