This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: MI: output of -break-insert and -break-watch
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb at sourceware dot org
- Date: Fri, 17 Feb 2006 08:56:34 -0500
- Subject: Re: MI: output of -break-insert and -break-watch
- References: <dt4g21$5tv$1@sea.gmane.org>
On Fri, Feb 17, 2006 at 03:37:21PM +0300, Vladimir Prus wrote:
>
> Hello!
>
> The output of -break-insert and -break-watch currently looks like this:
>
> ^done,bkpt={number="1",......
>
> and
>
> ^done,wpt={number="2",.......
>
> What is exactly the point of using different field names: "bkpt" and "wpt"?
> This makes it impossible to get the number of set breakpoint in a uniform
> fashion -- I need to have some conditional on the type of breakpoint, or
> add logic that checks if "bkpt" or "wpt" is present in reply.
I don't get it. Why is this a problem? It sounds to me like the only
reason this would be awkward would be limitations of your front end.
If you've done -break-insert you should expect a bkpt response, if
you've done -break-watch you should expect a wpt response.
--
Daniel Jacobowitz
CodeSourcery