This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/19546] gdb crash calling exec in the inferior
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 08 Feb 2016 20:09:42 +0000
- Subject: [Bug breakpoints/19546] gdb crash calling exec in the inferior
- Auto-submitted: auto-generated
- References: <bug-19546-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19546
--- Comment #4 from Pedro Alves <palves at redhat dot com> ---
Thinking in C++ going further, I'd say move the NULL check to the caller,
maybe wrapped in a new breakpoint_event_location_empty_p function, that takes
a breakpoint pointer parameter instead of an event_location pointer.
The rationale being that if/when we make "struct event_location" a real class,
then event_location_empty_p would naturally be a class method, and then you
can't check for this == NULL.
--
You are receiving this mail because:
You are on the CC list for the bug.