This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] [PR symtab/17276]: Coalesce line number entries.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]