This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix Python gdb.Breakpoint.location crash
- From: Tom Tromey <tom at tromey dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 06 Oct 2018 22:22:32 -0600
- Subject: Re: [PATCH] Fix Python gdb.Breakpoint.location crash
- References: <20180918122853.19426-1-tom@tromey.com>
>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
Tom> I noticed today that gdb.Breakpoint.location will crash when applied
Tom> to a catchpoint made with "catch throw".
Tom> The bug is that "catch throw" makes a breakpoint that is of type
Tom> bp_breakpoint, but which does not have a location.
Tom> Regression tested on x86-64 Fedora 28.
Tom> gdb/ChangeLog
Tom> 2018-09-18 Tom Tromey <tom@tromey.com>
Tom> * python/py-breakpoint.c (bppy_get_location): Handle a
Tom> bp_breakpoint without a location.
I'm checking this in now.
Tom