public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/44664]  New: CU DW_AT_low_pc, DW_AT_entry_pc are 0x0
@ 2010-06-25 12:13 jan dot kratochvil at redhat dot com
  2010-06-25 13:10 ` [Bug debug/44664] " jakub at gcc dot gnu dot org
  0 siblings, 1 reply; 3+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-06-25 12:13 UTC (permalink / raw)
  To: gcc-bugs

Unaware of any current (GDB) problems from it.

echo 'class C { public: C () {} }; int main() { C c; }' | g++ -Wall -g -x c++ -

FAIL g++ (GCC) 4.4.5 20100625 (prerelease)
FAIL g++ (GCC) 4.5.1 20100625 (prerelease)
FAIL g++ (GCC) 4.6.0 20100625 (experimental) [under the test below]

  Compilation Unit @ offset 0x0:
   Version:       2
 <0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
    < c>   DW_AT_producer    : (indirect string, offset: 0x16): GNU C++ 4.6.0
20100625 (experimental)
    <10>   DW_AT_language    : 4        (C++)
    <15>   DW_AT_low_pc      : 0x0
    DW_AT_low_pc       DW_FORM_addr
    <1d>   DW_AT_entry_pc    : 0x0
    DW_AT_entry_pc     DW_FORM_addr
    <25>   DW_AT_ranges      : 0x0
    DW_AT_ranges       DW_FORM_data4
    <29>   DW_AT_stmt_list   : 0x0

Contents of the .debug_ranges section:
    Offset   Begin    End
    00000000 00000000004004b4 00000000004004cf
    00000000 00000000004004d0 00000000004004da
    00000000 <End of list>

  4004ce:       c3                      retq
  4004cf:       90                      nop
00000000004004d0 <_ZN1CC1Ev>:
  4004d0:       55                      push   %rbp

(a) DW_AT_low_pc and DW_AT_entry_pc are set to 0, this is incorrect.
 - this BZ
 DWARF4 does not define DW_TAG_compile_unit->DW_AT_entry_pc
 DWARF4 2.17 does not IMO define DW_AT_low_pc when DW_AT_ranges is present.

minor ones:
(b) DW_AT_ranges (which is DWARF3+) is used with DWARF version 2.  Consumer
    capable of only DWARF2 will most probably fail on such program.
(c) inter-function padding is excluded from DW_AT_ranges, does not it only
    needlessly increase the debug info size?
(d) In some cases there the .debug_info ranges are not merged (suboptimal
size).
    00000000 000000000040063c 000000000040066a
    00000000 000000000040066a 0000000000400690


-- 
           Summary: CU DW_AT_low_pc, DW_AT_entry_pc are 0x0
           Product: gcc
           Version: 4.4.5
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jan dot kratochvil at redhat dot com
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44664


^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <bug-44664-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-05-01 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-25 12:13 [Bug debug/44664] New: CU DW_AT_low_pc, DW_AT_entry_pc are 0x0 jan dot kratochvil at redhat dot com
2010-06-25 13:10 ` [Bug debug/44664] " jakub at gcc dot gnu dot org
     [not found] <bug-44664-4@http.gcc.gnu.org/bugzilla/>
2012-05-01 15:00 ` mark at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).