This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: branching for GDB 7.11 soon? (possibly Wed)
- From: Keith Seitz <keiths at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>, "gdb-patches at sourceware dot org ml" <gdb-patches at sourceware dot org>, Pedro Alves <palves at redhat dot com>
- Date: Mon, 8 Feb 2016 11:28:01 -0800
- Subject: Re: RFC: branching for GDB 7.11 soon? (possibly Wed)
- Authentication-results: sourceware.org; auth=none
- References: <20160201030638 dot GG4008 at adacore dot com> <20160207081230 dot GA20874 at adacore dot com>
On 02/07/2016 12:12 AM, Joel Brobecker wrote:
> There is also a crash (regression):
>
> PR 19546 - gdb crash calling exec in the inferior
> Initial guestimate from Pedro:
> | Looks like a regression of the explicit locations work.
> Still in Pedro's court, or could Keith help?
I looked at this over the weekend and updated the bz. It seems pretty
trivial, and the patch is very safe to use.
In short, update_breakpoints_after_exec is charged with deleting any
breakpoint with no location. momentary_breakpoint types were implemented
to rely on this behavior. So b->location can be NULL, contrary to what I
previously assumed.
Simply handling NULL in location_empty_p fixes this.
Writing a test for this now.
Keith