This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: GDB internal error in pc_in_thread_step_range
> Cc: gdb-patches@sourceware.org
> From: Simon Marchi <simon.marchi@polymtl.ca>
> Date: Mon, 24 Dec 2018 11:29:36 -0500
>
> >>> --- gdb/coffread.c~1 2018-07-04 18:41:59.000000000 +0300
> >>> +++ gdb/coffread.c 2018-12-23 10:24:15.758116900 +0200
> >>> @@ -874,8 +874,10 @@ coff_symtab_read (minimal_symbol_reader
> >>> int section = cs_to_section (cs, objfile);
> >>>
> >>> tmpaddr = cs->c_value;
> >>> - record_minimal_symbol (reader, cs, tmpaddr, mst_text,
> >>> - section, objfile);
> >>> + /* Don't record unresolved symbols. */
> >>> + if (!(cs->c_secnum <= 0 && cs->c_value == 0))
> >>> + record_minimal_symbol (reader, cs, tmpaddr, mst_text,
> >>> + section, objfile);
> >>>
> >>> fcn_line_ptr = main_aux.x_sym.x_fcnary.x_fcn.x_lnnoptr;
> >>> fcn_start_addr = tmpaddr;
> >>
> >> That looks good to me.
> >
> > Should I push it to the master branch?
>
> Yes, just make sure to include the relevant info in the commit log.
> It would be a good idea to link back to this thread, so someone doing
> archeology can find why we added this.
Done.
Thanks for your help with investigating this issue and with finding
the right solution for it.