This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [Patch] Cannot set pending bp if condition set explicitly
- From: Tom Tromey <tromey at redhat dot com>
- To: Marc Khouzam <marc dot khouzam at ericsson dot com>
- Cc: "'gdb-patches\ at sourceware dot org'" <gdb-patches at sourceware dot org>
- Date: Wed, 25 Jul 2012 09:28:09 -0600
- Subject: Re: [Patch] Cannot set pending bp if condition set explicitly
- References: <F7CE05678329534C957159168FA70DEC5C24CAEA18@EUSAACMS0703.eamcs.ericsson.se>
>>>>> "Marc" == Marc Khouzam <marc.khouzam@ericsson.com> writes:
Marc> If I set a condition explicitly on a pending breakpoint (using
Marc> the 'condition' command), the breakpoint fails to install.
Marc> + /* For a pending breakoint, the condition is not parsed yet */
Comment should end with a period and two spaces.
Marc> + if (b->loc == NULL || b->loc->shlib_disabled)
I think this ought to use all_locations_are_pending.
But, I am not 100% sure of this.
A test case for this would be quite nice to have.
Tom