|
gdb可以在调试的时候同时显示源码(C/C++)和反汇编?如果有,用什么命令? 例如:
void Base::print()
{
8048810: 55 push %ebp
8048811: 89 e5 mov %esp,%ebp
x=0;
8048813: 8b 45 08 mov 0x8(%ebp),%eax
8048816: c7 00 00 00 00 00 movl $0x0,(%eax)
y=0;
804881c: 8b 45 08 mov 0x8(%ebp),%eax
804881f: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
d=0;
8048826: 8b 45 08 mov 0x8(%ebp),%eax
8048829: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
}
8048830: 5d pop %ebp
8048831: c3 ret |
|