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

Re: [PATCH] Fix Python gdb.Breakpoint.location crash


>>>>> "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


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