This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix disassemble without parameters in tailcall frame


On 09/12/2012 11:38 PM, Jan Kratochvil wrote:
The "=> " PC pointer is now not displayed anywhere which seems correct to me.


Right, PC doesn't fall in the range of function b, so "=>" is not displayed.


disassemble^M
Dump of assembler code for function b(int, double):^M
0x0000000000400520 <+0>: addsd 0x468(%rip),%xmm0 # 0x400990^M
0x0000000000400528 <+8>: add $0x2,%edi^M
0x000000000040052b <+11>: jmp 0x400500 <c(int, double)>^M
End of assembler dump.^M
(gdb) PASS: gdb.arch/amd64-entry-value.exp: disassemble
p/x $rip^M
$25 = 0x40052d



+# Test $pc adjustment which is now right after the function end. +gdb_test "down" "\r\n#2 .*" +gdb_test "disassemble" {Dump of assembler code for function b\(int, double\):.*} +

Do we need to complete the test here to check 'PC doesn't fall in the range of function b' or ' => is not displayed'?


--
Yao


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]