public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/29146] New: Gcc generates DWARF3 DW_FORM_ref_addr in DWARF2 info
@ 2006-09-20 5:28 hjl at lucon dot org
2006-09-20 5:48 ` [Bug debug/29146] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: hjl at lucon dot org @ 2006-09-20 5:28 UTC (permalink / raw)
To: gcc-bugs
DW_FORM_ref_addr uses address size in DWARF2, but uses offset size in DWARF3.
The current linker can only handle DWARF2 info. It looks like gcc generates
DWARF3 DW_FORM_ref_addr while marking debug info as DWARF2. See
http://sourceware.org/bugzilla/show_bug.cgi?id=3191
--
Summary: Gcc generates DWARF3 DW_FORM_ref_addr in DWARF2 info
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl at lucon dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29146
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/29146] Gcc generates DWARF3 DW_FORM_ref_addr in DWARF2 info
2006-09-20 5:28 [Bug debug/29146] New: Gcc generates DWARF3 DW_FORM_ref_addr in DWARF2 info hjl at lucon dot org
@ 2006-09-20 5:48 ` pinskia at gcc dot gnu dot org
2006-09-20 5:52 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-20 5:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-20 05:48 -------
http://www.sourceware.org/ml/gdb/2001-06/msg00111.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29146
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/29146] Gcc generates DWARF3 DW_FORM_ref_addr in DWARF2 info
2006-09-20 5:28 [Bug debug/29146] New: Gcc generates DWARF3 DW_FORM_ref_addr in DWARF2 info hjl at lucon dot org
2006-09-20 5:48 ` [Bug debug/29146] " pinskia at gcc dot gnu dot org
@ 2006-09-20 5:52 ` pinskia at gcc dot gnu dot org
2006-09-20 5:56 ` pinskia at gcc dot gnu dot org
2006-09-20 6:09 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-20 5:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-09-20 05:51 -------
http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00030.html
Hmm
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29146
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/29146] Gcc generates DWARF3 DW_FORM_ref_addr in DWARF2 info
2006-09-20 5:28 [Bug debug/29146] New: Gcc generates DWARF3 DW_FORM_ref_addr in DWARF2 info hjl at lucon dot org
2006-09-20 5:48 ` [Bug debug/29146] " pinskia at gcc dot gnu dot org
2006-09-20 5:52 ` pinskia at gcc dot gnu dot org
@ 2006-09-20 5:56 ` pinskia at gcc dot gnu dot org
2006-09-20 6:09 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-20 5:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-09-20 05:56 -------
(In reply to comment #0)
> DW_FORM_ref_addr uses address size in DWARF2, but uses offset size in DWARF3.
> The current linker can only handle DWARF2 info. It looks like gcc generates
> DWARF3 DW_FORM_ref_addr while marking debug info as DWARF2.
Yes and those sizes are the same on 90% of the targets (only a few are
different) so I think the linker is still making a mistake.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29146
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/29146] Gcc generates DWARF3 DW_FORM_ref_addr in DWARF2 info
2006-09-20 5:28 [Bug debug/29146] New: Gcc generates DWARF3 DW_FORM_ref_addr in DWARF2 info hjl at lucon dot org
` (2 preceding siblings ...)
2006-09-20 5:56 ` pinskia at gcc dot gnu dot org
@ 2006-09-20 6:09 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-20 6:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-09-20 06:09 -------
Actually, wait GCC outputs the correct thing:
case dw_val_class_die_ref:
if (AT_ref_external (a))
{
char *sym = AT_ref (a)->die_symbol;
gcc_assert (sym);
dw2_asm_output_offset (DWARF2_ADDR_SIZE, sym, debug_info_section,
"%s", name);
}
else
{
gcc_assert (AT_ref (a)->die_offset);
dw2_asm_output_data (DWARF_OFFSET_SIZE, AT_ref (a)->die_offset,
"%s", name);
}
....
case dw_val_class_die_ref:
if (AT_ref_external (a))
return DW_FORM_ref_addr;
else
return DW_FORM_ref;
So we really output dwarf2 (and not dwarf3 and this is invalid.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29146
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-09-20 6:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-20 5:28 [Bug debug/29146] New: Gcc generates DWARF3 DW_FORM_ref_addr in DWARF2 info hjl at lucon dot org
2006-09-20 5:48 ` [Bug debug/29146] " pinskia at gcc dot gnu dot org
2006-09-20 5:52 ` pinskia at gcc dot gnu dot org
2006-09-20 5:56 ` pinskia at gcc dot gnu dot org
2006-09-20 6:09 ` pinskia 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).