Re: Macro expansion: GCC 3.4.4

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

 



On Fri, 2005-11-11 at 08:12 +1300, Nick Roberts wrote:
> Daniel Berlin writes:
>  > > GDB is GNU gdb Red Hat Linux (6.1post-1.20040607.43rh) but I get the same
>  > > result with GDB from the CVS repository, which worked with an earlier GCC
>  > > (3.2 something on Mandrake 9), so I'm pretty sure that the problem
>  > > doesn't lie with GDB.
> 
>  > If you run readelf -wm on the executable, does it display your macro
>  > somewhere?
> 
> It has the line:
> 
>  DW_MACINFO_define - lineno : 6 macro : NCR 4

and in gdb, if you use "macro expand NCR", does it work?

> 
>  > If so, then we've put it in the debug info, and that's all we can do :)
> 
> Should that guarantee GDB will find it?  Does GDB just use readelf or the
> same libraries?

It doesn't, unfortunately, so it doesn't guarantee GDB is processing the
macro info right.

But it does mean we are putting it in the debug info.

It's also possible the file or line number is being set wrong, etc.
But you'd need to debug gdb to see it.

> 
> I presumed this would be a known problem, thats why I didn't mail it to
> gcc-bugs.  Of course, I could be doing something stupid, but I'm not really
> doing anything - just using Fedora Core 3.
> 
> Nick


[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