mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 07:30:33 +00:00
58 lines
866 B
Plaintext
58 lines
866 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=<<EOF
|
|
/j ConsoleApplication1.pdb~{}
|
|
EOF
|
|
RUN
|
|
|
|
NAME=empty irj should print empty array
|
|
FILE=-
|
|
EXPECT=<<EOF
|
|
[]
|
|
EOF
|
|
CMDS=<<EOF
|
|
irj
|
|
EOF
|
|
RUN
|