aboutsummaryrefslogtreecommitdiff
path: root/gas/dwarf2dbg.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-05-11 10:32:35 +0000
committerNick Clifton <nickc@redhat.com>2002-05-11 10:32:35 +0000
commitd7c310c20350c3ea9f6bc1efad7b7e1d3ab225d1 (patch)
tree4276ac7a5fd0625f41d7cc95b9e933b8881522e0 /gas/dwarf2dbg.c
parent5d6255fea654e42fc10353d52f60cf56970744d5 (diff)
downloadgdb-d7c310c20350c3ea9f6bc1efad7b7e1d3ab225d1.zip
gdb-d7c310c20350c3ea9f6bc1efad7b7e1d3ab225d1.tar.gz
gdb-d7c310c20350c3ea9f6bc1efad7b7e1d3ab225d1.tar.bz2
Use the 'current' struct filled by dwarf2_directive_loc, instead of calling
dwarf2_where.
Diffstat (limited to 'gas/dwarf2dbg.c')
-rw-r--r--gas/dwarf2dbg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index 2037be3..8b7005b 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -290,7 +290,12 @@ dwarf2_emit_insn (size)
return;
loc_directive_seen = false;
- dwarf2_where (&loc);
+ /* 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;
dwarf2_gen_line_info (frag_now_fix () - size, &loc);
}