This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [8/9] multiple locations
Vladimir Prus <ghost at cs.msu.su> writes:
> Daniel Jacobowitz wrote:
>
>> On Tue, Nov 13, 2007 at 11:05:10AM +0300, Vladimir Prus wrote:
>>> >
>>> > Does the (p) add anything useful to the user? The manual says:
>>> >
>>> > An optional `(p)' suffix marks pending breakpoints
>>> >
>>> > Is that not clear from the word PENDING?
>>>
>>> No, because if you set breakpoint in a shared library, and that library
>>> is unloaded, you have some number in 'address' field, but the breakpoint
>>> won't actually fire, and the "(p)" indicates that fact.
>>
>> Can we just change it back to <PENDING> by discarding the address?
>
> This can actually work. I'll try to implement this idea.
Yeah, that's what I was going to suggest, too --- the number is
basically a dangling pointer once the library's been unloaded.
I agree with Vladimir that the priority of the CLI should be providing
a good command-line experience --- not stability for code trying to
parse the output. MI has been in GDB in some form or another since
2001.