This is the mail archive of the gdb-prs@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]

[Bug breakpoints/19546] gdb crash calling exec in the inferior


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.

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