[PATCH 1/2] [PR symtab/17276]: Coalesce line number entries.
Doug Evans
dje@google.com
Wed Aug 27 17:17:00 GMT 2014
Simon Marchi writes:
> > diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
> > index 801f05d..2017821 100644
> > --- a/gdb/dwarf2read.c
> > +++ b/gdb/dwarf2read.c
> > @@ -17172,6 +17172,32 @@ noop_record_line (struct subfile *subfile, int line, CORE_ADDR pc)
> > return;
> > }
> >
> > +/* Use P_RECORD_LINE to record line number LINE beginning at address ADDRESS
> > + in the line table of subfile SUBFILE. */
> > +
> > +static void
> > +dwarf_record_line (struct gdbarch *gdbarch, struct subfile *subfile,
> > + unsigned int line, CORE_ADDR address,
> > + record_line_ftype p_record_line)
> > +{
> > + CORE_ADDR addr = gdbarch_addr_bits_remove (gdbarch, address);
> > +
> > + (*p_record_line) (current_subfile, line, addr);
> ^^^^^^^^^^^^^^^
> I am pretty sure current_subfile here should be subfile.
Zoinks.
Thanks for catching that!
Fix pushed.
More information about the Gdb-patches
mailing list