public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/42288] New: please emit empty .debug_aranges section
@ 2009-12-04 22:36 tromey at gcc dot gnu dot org
2009-12-06 22:31 ` [Bug debug/42288] " rth at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-12-04 22:36 UTC (permalink / raw)
To: gcc-bugs
I have modified gdb to read the .debug_aranges section.
Currently, if this information does not exist for a
particular CU, gdb must scan the CU to find it.
This is necessary because there is no way to differentiate
between a section that is missing because it has no ranges,
and a section that is missing because it was stripped
or simply never created.
It would be helpful to gdb if gcc could emit .debug_aranges
even if there are no ranges to report.
--
Summary: please emit empty .debug_aranges section
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tromey at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42288
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/42288] please emit empty .debug_aranges section
2009-12-04 22:36 [Bug debug/42288] New: " tromey at gcc dot gnu dot org
@ 2009-12-06 22:31 ` rth at gcc dot gnu dot org
2009-12-07 2:05 ` rth at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: rth at gcc dot gnu dot org @ 2009-12-06 22:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rth at gcc dot gnu dot org 2009-12-06 22:31 -------
Reasonable.
--
rth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-12-06 22:31:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42288
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/42288] please emit empty .debug_aranges section
2009-12-04 22:36 [Bug debug/42288] New: " tromey at gcc dot gnu dot org
2009-12-06 22:31 ` [Bug debug/42288] " rth at gcc dot gnu dot org
@ 2009-12-07 2:05 ` rth at gcc dot gnu dot org
2009-12-07 15:57 ` tromey at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: rth at gcc dot gnu dot org @ 2009-12-07 2:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rth at gcc dot gnu dot org 2009-12-07 02:04 -------
To be sure, you're keying off having *some* aranges entry with a reference
to a given CU in the debug_info section? So:
Contents of the .debug_aranges section:
Length: 28
Version: 2
Offset into .debug_info: 0x0
Pointer Size: 8
Segment Size: 0
Address Length
0000000000000000 0000000000000000
is exactly what you're looking for?
--
rth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42288
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/42288] please emit empty .debug_aranges section
2009-12-04 22:36 [Bug debug/42288] New: " tromey at gcc dot gnu dot org
2009-12-06 22:31 ` [Bug debug/42288] " rth at gcc dot gnu dot org
2009-12-07 2:05 ` rth at gcc dot gnu dot org
@ 2009-12-07 15:57 ` tromey at gcc dot gnu dot org
2009-12-07 16:19 ` rth at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-12-07 15:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from tromey at gcc dot gnu dot org 2009-12-07 15:57 -------
Yes, that's exactly what I would like. Thanks.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Last reconfirmed|2009-12-06 22:31:12 |2009-12-07 15:57:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42288
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/42288] please emit empty .debug_aranges section
2009-12-04 22:36 [Bug debug/42288] New: " tromey at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-12-07 15:57 ` tromey at gcc dot gnu dot org
@ 2009-12-07 16:19 ` rth at gcc dot gnu dot org
2009-12-08 17:59 ` tromey at gcc dot gnu dot org
2009-12-15 17:36 ` rth at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: rth at gcc dot gnu dot org @ 2009-12-07 16:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rth at gcc dot gnu dot org 2009-12-07 16:19 -------
Created an attachment (id=19249)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19249&action=view)
Proposed patch
For the record, this is all that's needed for the above output.
I see quite a few gdb regressions vs F12 system compiler. I suppose
that could just be gcc 4.5, but since F12 also includes VTA I would
hope that would not be the case...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42288
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/42288] please emit empty .debug_aranges section
2009-12-04 22:36 [Bug debug/42288] New: " tromey at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-12-07 16:19 ` rth at gcc dot gnu dot org
@ 2009-12-08 17:59 ` tromey at gcc dot gnu dot org
2009-12-15 17:36 ` rth at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2009-12-08 17:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from tromey at gcc dot gnu dot org 2009-12-08 17:58 -------
FWIW, I know that this patch will not affect the CVS gdb,
because that gdb never reads the .debug_aranges section.
I'll try this out using my branch today.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42288
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug debug/42288] please emit empty .debug_aranges section
2009-12-04 22:36 [Bug debug/42288] New: " tromey at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-12-08 17:59 ` tromey at gcc dot gnu dot org
@ 2009-12-15 17:36 ` rth at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: rth at gcc dot gnu dot org @ 2009-12-15 17:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rth at gcc dot gnu dot org 2009-12-15 17:36 -------
<tromey> rth: sorry... yeah, I tested the aranges patch and it worked for me.
but it isn't clear we will need it now, we're discussing some form of caching
w/ gdb rather than using the index sections
<rth> ok. i'll leave the patch alone until you tell me we need it.
--
rth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |SUSPENDED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42288
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-09-26 18:16 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-42288-4@http.gcc.gnu.org/bugzilla/>
2011-04-21 15:33 ` [Bug debug/42288] please emit empty .debug_aranges section mark at gcc dot gnu.org
2011-09-26 18:24 ` mark at gcc dot gnu.org
2009-12-04 22:36 [Bug debug/42288] New: " tromey at gcc dot gnu dot org
2009-12-06 22:31 ` [Bug debug/42288] " rth at gcc dot gnu dot org
2009-12-07 2:05 ` rth at gcc dot gnu dot org
2009-12-07 15:57 ` tromey at gcc dot gnu dot org
2009-12-07 16:19 ` rth at gcc dot gnu dot org
2009-12-08 17:59 ` tromey at gcc dot gnu dot org
2009-12-15 17:36 ` rth at gcc dot gnu dot 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).