From: "H . J . Lu" <hjl@lucon.org>
To: nickc@redhat.com, mec@shout.net
Cc: binutils@sources.redhat.com, GDB <gdb@sources.redhat.com>
Subject: PATCH: Fix dwarf2 debug
Date: Wed, 22 May 2002 08:33:00 -0000 [thread overview]
Message-ID: <20020522083333.A22000@lucon.org> (raw)
Nick, could you please take a look at this patch for
http://sources.redhat.com/ml/gdb/2002-05/msg00230.html
Thanks.
H.J.
---
2002-05-22 H.J. Lu <hjl@gnu.org>
* dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
for one .loc for compiler.
--- gas/dwarf2dbg.c.loc Tue May 21 22:41:34 2002
+++ gas/dwarf2dbg.c Wed May 22 08:24:27 2002
@@ -287,12 +287,19 @@ dwarf2_emit_insn (size)
struct dwarf2_line_info loc;
if (loc_directive_seen)
- /* Use the last location established by a .loc directive, not
- the value returned by dwarf2_where(). That calls as_where()
- which will return either the logical input file name (foo.c)
- or the physical input file name (foo.s) and not the file name
- specified in the most recent .loc directive (eg foo.h). */
- loc = current;
+ {
+ /* Use the last location established by a .loc directive, not
+ the value returned by dwarf2_where(). That calls as_where()
+ which will return either the logical input file name (foo.c)
+ or the physical input file name (foo.s) and not the file name
+ specified in the most recent .loc directive (eg foo.h). */
+ loc = current;
+
+ /* Unless we generate DWARF2 debugging information for each
+ assembler line, we only emit one line symbol for one LOC. */
+ if (debug_type != DEBUG_DWARF2)
+ loc_directive_seen = false;
+ }
else if (debug_type != DEBUG_DWARF2)
return;
else
next reply other threads:[~2002-05-22 15:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-22 8:33 H . J . Lu [this message]
2002-05-22 9:06 ` Nick Clifton
2002-05-22 9:22 ` H . J . Lu
2002-05-22 9:44 Michael Elizabeth Chastain
2002-05-23 8:16 Michael Elizabeth Chastain
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=20020522083333.A22000@lucon.org \
--to=hjl@lucon.org \
--cc=binutils@sources.redhat.com \
--cc=gdb@sources.redhat.com \
--cc=mec@shout.net \
--cc=nickc@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