From: Richard Henderson <rth@redhat.com>
To: Elias Athanasopoulos <eathan@otenet.gr>
Cc: Pierre Habraken <Pierre.Habraken@imag.fr>,
binutils@sources.redhat.com, gdb@sources.redhat.com,
Richard.Earnshaw@arm.com
Subject: Re: [PATCH] Re: Section .debug_info in object file
Date: Mon, 16 Sep 2002 19:51:00 -0000 [thread overview]
Message-ID: <20020917025117.GG19508@redhat.com> (raw)
In-Reply-To: <20020912220303.A1134@neutrino.particles.org>
On Thu, Sep 12, 2002 at 10:03:03PM +0300, Elias Athanasopoulos wrote:
> * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
> (out_debug_info): Likewise.
I committed the following variant.
r~
Index: dwarf2dbg.c
===================================================================
RCS file: /cvs/src/src/gas/dwarf2dbg.c,v
retrieving revision 1.53
diff -c -p -d -r1.53 dwarf2dbg.c
*** dwarf2dbg.c 27 Aug 2002 11:09:42 -0000 1.53
--- dwarf2dbg.c 17 Sep 2002 02:32:00 -0000
*************** out_debug_abbrev (abbrev_seg)
*** 1149,1154 ****
--- 1149,1155 ----
out_abbrev (DW_AT_low_pc, DW_FORM_addr);
out_abbrev (DW_AT_high_pc, DW_FORM_addr);
}
+ out_abbrev (DW_AT_name, DW_FORM_string);
out_abbrev (DW_AT_comp_dir, DW_FORM_string);
out_abbrev (DW_AT_producer, DW_FORM_string);
out_abbrev (DW_AT_language, DW_FORM_data2);
*************** out_debug_info (info_seg, abbrev_seg, li
*** 1223,1228 ****
--- 1224,1239 ----
expr.X_add_number = 0;
emit_expr (&expr, sizeof_address);
}
+
+ /* DW_AT_name. We don't have the actual file name that was present
+ on the command line, so assume files[1] is the main input file.
+ We're not supposed to get called unless at least one line number
+ entry was emitted, so this should always be defined. */
+ if (!files || files_in_use < 1)
+ abort ();
+ len = strlen (files[1].filename) + 1;
+ p = frag_more (len);
+ memcpy (p, files[1].filename, len);
/* DW_AT_comp_dir */
comp_dir = getpwd ();
prev parent reply other threads:[~2002-09-17 2:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-12 2:42 Pierre Habraken
2002-09-12 4:46 ` Keith.Walker
2002-09-14 4:49 ` Pierre Habraken
2002-09-16 3:10 ` Keith.Walker
2002-09-16 3:30 ` Elias Athanasopoulos
2002-09-16 3:43 ` Pierre Habraken
2002-09-12 11:45 ` [PATCH] " Elias Athanasopoulos
2002-09-12 13:54 ` Richard Henderson
2002-09-12 14:55 ` Elias Athanasopoulos
2002-09-15 2:25 ` Elias Athanasopoulos
2002-09-16 19:35 ` Richard Henderson
2002-09-16 19:51 ` Richard Henderson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020917025117.GG19508@redhat.com \
--to=rth@redhat.com \
--cc=Pierre.Habraken@imag.fr \
--cc=Richard.Earnshaw@arm.com \
--cc=binutils@sources.redhat.com \
--cc=eathan@otenet.gr \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox