Re: Way to make register variable visible by gdb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 11, 2021 at 3:50 PM Yuri Karlsbrun via Gcc-help <
gcc-help@xxxxxxxxxxx> wrote:

> By default gcc register variables are missing from symbol table, and not
> visible by gdb. Is there a way to save information about register variables
> in the object file, and make it visible by gdb?
>

A small testcase to reproduce would be useful to understand what you are
talking about.  Are you using register or asm("register")?  Is this a local
or global?  What target are you compiling for?  What compiler options are
you using?  What debug info format are you using?  Dwarf, stabs?  Why do
you think the debug info is missing?  Can you show some gdb output?  If you
are using stabs, then that is probably why it is failing for you.  Use
dwarf instead.

JIm



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux