Use the 'current' struct filled by dwarf2_directive_loc, instead of calling
dwarf2_where.
This commit is contained in:
parent
5d6255fea6
commit
d7c310c203
|
@ -1,3 +1,8 @@
|
||||||
|
2002-05-11 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
|
* dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
|
||||||
|
by dwarf2_directive_loc, instead of calling dwarf2_where.
|
||||||
|
|
||||||
2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
|
2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
|
||||||
|
|
||||||
* config/obj-coff.h: Fix formatting.
|
* config/obj-coff.h: Fix formatting.
|
||||||
|
|
|
@ -290,7 +290,12 @@ dwarf2_emit_insn (size)
|
||||||
return;
|
return;
|
||||||
loc_directive_seen = false;
|
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);
|
dwarf2_gen_line_info (frag_now_fix () - size, &loc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue