Fwd: Re: Auto-show of debugger windows (Was: Simple question)

Daniel Franke franke.daniel at gmail.com
Thu Sep 1 11:35:26 BST 2005


> > 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
> hope that in KDE4 both variable tooltips and interleaved asm source will be
> possible, but KDE4
> is so distant....

Vladimir,

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?

Regards
	Daniel


Example (intel x86, gcc):

--snip--
#include <stdio.h>

int main() {
        printf("Hello\n");
        return 0;
}
--snip--

results in

--snip--

#include <stdio.h>

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--


-
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