public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug ada/35998] New: debug info invalid x86_64 DW_AT_byte_size 0xffffffff @ 2008-04-21 12:41 jan dot kratochvil at redhat dot com 2008-04-21 12:41 ` [Bug ada/35998] " jan dot kratochvil at redhat dot com ` (4 more replies) 0 siblings, 5 replies; 10+ messages in thread From: jan dot kratochvil at redhat dot com @ 2008-04-21 12:41 UTC (permalink / raw) To: gcc-bugs The source: procedure AdaFF is type rec is record null; end record; X : rec; begin null; end AdaFF; produces output by: $ rm -f adaff{,.o,.ali};gnatmake -g adaff.adb ;readelf -a --debug-dump adaff | grep 'DW_AT_byte_size.*0xffff' <30b> DW_AT_byte_size : 0xffffffff <1><306>: Abbrev Number: 20 (DW_TAG_structure_type) <307> DW_AT_name : (indirect string, offset: 0x3c8): ada_main__main__TsehB___XUT <30b> DW_AT_byte_size : 0xffffffff <30f> DW_AT_decl_file : 1 <310> DW_AT_decl_line : 105 <311> DW_AT_sibling : <0x33b> A more complicated testcase http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.ada/packed_tagged/comp_bug.adb?rev=1.1&cvsroot=src crashes GDB eating all the memory on `print x' there. -- Summary: debug info invalid x86_64 DW_AT_byte_size 0xffffffff Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jan dot kratochvil at redhat dot com GCC build triplet: x86_64-fedora-linux-gnu GCC host triplet: x86_64-fedora-linux-gnu GCC target triplet: x86_64-fedora-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35998 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/35998] debug info invalid x86_64 DW_AT_byte_size 0xffffffff 2008-04-21 12:41 [Bug ada/35998] New: debug info invalid x86_64 DW_AT_byte_size 0xffffffff jan dot kratochvil at redhat dot com @ 2008-04-21 12:41 ` jan dot kratochvil at redhat dot com 2008-05-19 22:20 ` jan dot kratochvil at redhat dot com ` (3 subsequent siblings) 4 siblings, 0 replies; 10+ messages in thread From: jan dot kratochvil at redhat dot com @ 2008-04-21 12:41 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from jan dot kratochvil at redhat dot com 2008-04-21 12:40 ------- Created an attachment (id=15503) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15503&action=view) GDB workaround. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35998 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/35998] debug info invalid x86_64 DW_AT_byte_size 0xffffffff 2008-04-21 12:41 [Bug ada/35998] New: debug info invalid x86_64 DW_AT_byte_size 0xffffffff jan dot kratochvil at redhat dot com 2008-04-21 12:41 ` [Bug ada/35998] " jan dot kratochvil at redhat dot com @ 2008-05-19 22:20 ` jan dot kratochvil at redhat dot com 2008-08-18 8:25 ` jan dot kratochvil at redhat dot com ` (2 subsequent siblings) 4 siblings, 0 replies; 10+ messages in thread From: jan dot kratochvil at redhat dot com @ 2008-05-19 22:20 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from jan dot kratochvil at redhat dot com 2008-05-19 22:19 ------- Created an attachment (id=15654) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15654&action=view) GCC fix. Omit the whole attribute DW_AT_byte_size 0xffffffff. GCC testsuite ran on x86 and x86_64. GDB with this patch still produces invalid output on packed_tagged.exp but at least GDB does not crash. Sure the right way would be for GNAT to output the full DWARF2 expression. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35998 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/35998] debug info invalid x86_64 DW_AT_byte_size 0xffffffff 2008-04-21 12:41 [Bug ada/35998] New: debug info invalid x86_64 DW_AT_byte_size 0xffffffff jan dot kratochvil at redhat dot com 2008-04-21 12:41 ` [Bug ada/35998] " jan dot kratochvil at redhat dot com 2008-05-19 22:20 ` jan dot kratochvil at redhat dot com @ 2008-08-18 8:25 ` jan dot kratochvil at redhat dot com 2009-03-08 9:46 ` ebotcazou at gcc dot gnu dot org 2009-11-10 8:29 ` ebotcazou at gcc dot gnu dot org 4 siblings, 0 replies; 10+ messages in thread From: jan dot kratochvil at redhat dot com @ 2008-08-18 8:25 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from jan dot kratochvil at redhat dot com 2008-08-18 08:24 ------- The fix was posted at: http://gcc.gnu.org/ml/gcc-patches/2008-05/msg01857.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35998 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/35998] debug info invalid x86_64 DW_AT_byte_size 0xffffffff 2008-04-21 12:41 [Bug ada/35998] New: debug info invalid x86_64 DW_AT_byte_size 0xffffffff jan dot kratochvil at redhat dot com ` (2 preceding siblings ...) 2008-08-18 8:25 ` jan dot kratochvil at redhat dot com @ 2009-03-08 9:46 ` ebotcazou at gcc dot gnu dot org 2009-11-10 8:29 ` ebotcazou at gcc dot gnu dot org 4 siblings, 0 replies; 10+ messages in thread From: ebotcazou at gcc dot gnu dot org @ 2009-03-08 9:46 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from ebotcazou at gcc dot gnu dot org 2009-03-08 09:46 ------- What happened to the patch? -- ebotcazou at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu dot | |org Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35998 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/35998] debug info invalid x86_64 DW_AT_byte_size 0xffffffff 2008-04-21 12:41 [Bug ada/35998] New: debug info invalid x86_64 DW_AT_byte_size 0xffffffff jan dot kratochvil at redhat dot com ` (3 preceding siblings ...) 2009-03-08 9:46 ` ebotcazou at gcc dot gnu dot org @ 2009-11-10 8:29 ` ebotcazou at gcc dot gnu dot org 4 siblings, 0 replies; 10+ messages in thread From: ebotcazou at gcc dot gnu dot org @ 2009-11-10 8:29 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from ebotcazou at gcc dot gnu dot org 2009-11-10 08:29 ------- No feedback. -- ebotcazou at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution| |WONTFIX http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35998 ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <bug-35998-4@http.gcc.gnu.org/bugzilla/>]
* [Bug ada/35998] debug info invalid x86_64 DW_AT_byte_size 0xffffffff [not found] <bug-35998-4@http.gcc.gnu.org/bugzilla/> @ 2010-11-18 21:43 ` tromey at gcc dot gnu.org 2011-01-21 21:35 ` rupp at gnat dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 10+ messages in thread From: tromey at gcc dot gnu.org @ 2010-11-18 21:43 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35998 Tom Tromey <tromey at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Last reconfirmed| |2010.11.18 21:09:15 CC| |tromey at gcc dot gnu.org Resolution|WONTFIX | Ever Confirmed|0 |1 --- Comment #6 from Tom Tromey <tromey at gcc dot gnu.org> 2010-11-18 21:09:15 UTC --- AFAICT, nobody ever reviewed this patch. I am reopening this PR because I think that it is bad for GCC to emit bogus DWARF like this. The patch is not ideal, but it is an improvement. I'll ping the patch as well. I think we'll end up putting in the GDB workaround regardless of what happens in GCC. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/35998] debug info invalid x86_64 DW_AT_byte_size 0xffffffff [not found] <bug-35998-4@http.gcc.gnu.org/bugzilla/> 2010-11-18 21:43 ` tromey at gcc dot gnu.org @ 2011-01-21 21:35 ` rupp at gnat dot com 2013-11-13 10:07 ` ebotcazou at gcc dot gnu.org 2013-11-13 10:35 ` ebotcazou at gcc dot gnu.org 3 siblings, 0 replies; 10+ messages in thread From: rupp at gnat dot com @ 2011-01-21 21:35 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35998 Douglas B Rupp <rupp at gnat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rupp at gnat dot com --- Comment #7 from Douglas B Rupp <rupp at gnat dot com> 2011-01-21 20:30:20 UTC --- This bogus size of -1 is causing an informational warning from VMS Debug on IA64 VMS. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/35998] debug info invalid x86_64 DW_AT_byte_size 0xffffffff [not found] <bug-35998-4@http.gcc.gnu.org/bugzilla/> 2010-11-18 21:43 ` tromey at gcc dot gnu.org 2011-01-21 21:35 ` rupp at gnat dot com @ 2013-11-13 10:07 ` ebotcazou at gcc dot gnu.org 2013-11-13 10:35 ` ebotcazou at gcc dot gnu.org 3 siblings, 0 replies; 10+ messages in thread From: ebotcazou at gcc dot gnu.org @ 2013-11-13 10:07 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35998 --- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Author: ebotcazou Date: Wed Nov 13 10:07:14 2013 New Revision: 204736 URL: http://gcc.gnu.org/viewcvs?rev=204736&root=gcc&view=rev Log: PR ada/35998 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes for fields. Do not add the attribute if the size is negative. Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug ada/35998] debug info invalid x86_64 DW_AT_byte_size 0xffffffff [not found] <bug-35998-4@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2013-11-13 10:07 ` ebotcazou at gcc dot gnu.org @ 2013-11-13 10:35 ` ebotcazou at gcc dot gnu.org 3 siblings, 0 replies; 10+ messages in thread From: ebotcazou at gcc dot gnu.org @ 2013-11-13 10:35 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35998 Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |4.9.0 --- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Fixed, at long last. ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-11-13 10:35 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-04-21 12:41 [Bug ada/35998] New: debug info invalid x86_64 DW_AT_byte_size 0xffffffff jan dot kratochvil at redhat dot com 2008-04-21 12:41 ` [Bug ada/35998] " jan dot kratochvil at redhat dot com 2008-05-19 22:20 ` jan dot kratochvil at redhat dot com 2008-08-18 8:25 ` jan dot kratochvil at redhat dot com 2009-03-08 9:46 ` ebotcazou at gcc dot gnu dot org 2009-11-10 8:29 ` ebotcazou at gcc dot gnu dot org [not found] <bug-35998-4@http.gcc.gnu.org/bugzilla/> 2010-11-18 21:43 ` tromey at gcc dot gnu.org 2011-01-21 21:35 ` rupp at gnat dot com 2013-11-13 10:07 ` ebotcazou at gcc dot gnu.org 2013-11-13 10:35 ` ebotcazou 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).