Fwd: Re: Auto-show of debugger windows (Was: Simple question)
Gunther Piez
gpiez at web.de
Thu Sep 1 12:25:20 BST 2005
Am Donnerstag 01 September 2005 12:35 schrieb Daniel Franke:
> > > How unfortunate. Does this mean, we are never going to see something
> > > like the assembler code embedded int the c-source, like in kdbg?
> >
> > I'm not awere if current Kate can do this, either, and suspect that no. I
> why is it so difficult it get interleaved ASM? As an easy workaround, one
> could open another file/buffer (or yet another popup) and fill in the
> output of `objdump [-l] -S` without actually touching the original source
> files ?! It might also be possible to limit this to a (specified) function?
Objdump isn't the solution, the code looks different after being relocated
(look at the movl $0x0,(%esp) in your example) and it is missing some debug
information. The disassembling needs to come from gdb.
> int main() {
> 0: 55 push %ebp
> 1: 89 e5 mov %esp,%ebp
> 3: 83 ec 08 sub $0x8,%esp
> 6: 83 e4 f0 and $0xfffffff0,%esp
> 9: b8 00 00 00 00 mov $0x0,%eax
> e: 29 c4 sub %eax,%esp
> printf("Hello\n");
> 10: c7 04 24 00 00 00 00 movl $0x0,(%esp)
> 17: e8 fc ff ff ff call 18 <main+0x18>
> return 0;
> 1c: b8 00 00 00 00 mov $0x0,%eax
> }
> 21: c9 leave
> 22: c3 ret
> --snip--
Gunther
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list