Re: gcc, g++ and dwarf

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

 



ranjith kumar <ranjithproxy@xxxxxxxxx> writes:

> armv5tel-redhat-linux-gnueabi-gcc myprogram.c -g
>
> When I  print the dwarf information with
>                                             readelf --debug-dump  a.out
> I got the following debugging information about the typedef "type27"  :
>  <1><147>: Abbrev Number: 6 (DW_TAG_typedef)
>  <148>     DW_AT_name        : type27
>      <14f>     DW_AT_decl_file   : 1
>       <150>     DW_AT_decl_line   : 6
>      <151>     DW_AT_type        : <126>
>
>
>
> But when I compiled the same(myprogram.c) as
>                            armv5tel-redhat-linux-gnueabi-g++ myprogram.c -g
> I could not get any debugging information for "type27"
>
> Why so????

No idea.  Which version of gcc are you using?  I tried compiling your
example with g++, and I saw "type27" in the debug output as expected.


> In this link
> http://examples.oreilly.com/palmprog/CDROM/Linux/gcc/gcc-2.7.2.2/README.DWARF

That link is about gcc 2.7.2.2 which is more than ten years old.  It has
no relevance to current versions of gcc.

Ian

[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