Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: "Terekhov, Mikhail" <mikhail.terekhov@emc.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: MI async status output
Date: Sat, 19 Apr 2014 08:28:00 -0000	[thread overview]
Message-ID: <20140418203925.GB31328@linux> (raw)
In-Reply-To: <84F432E8540221418FB3B2A59999A3610A3B6F6348@MX23A.corp.emc.com>

On Fri, Apr 18, 2014 at 03:27:03PM -0400, Terekhov, Mikhail wrote:
> > -----Original Message-----
> > From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
> > Behalf Of Vladimir Prus
> > Sent: Friday, April 18, 2014 12:43 PM
> > To: Bob Rossi
> > Cc: Andrew Burgess; gdb@sourceware.org
> > Subject: Re: MI async status output
> > 
> > On 18.04.2014 20:30, Bob Rossi wrote:
> > >
> > > The solution to these problems is pretty clear, lets give developers an API.
> > 
> > I am not sure what's different between "API" and GDB/MI, which is also an
> > API or some sort. No matter what a new API might be, the problems of GDB
> > changes and supporting multiple versions of GDB will be the same, except for
> > wrong grammar. Web developers have the same problems with API changes,
> > for all I know.
> > 
> 
> The difference is very important - in case of grammar the only way to verify that GDB
> really follows it is to write and maintain complete set of test cases while in case of API
> compiler will do it for you automatically.

I can see that the acronym API is really an ambiguous term here.

The API i'm refering to is something like,
    void gdbwire_set_breakpoint(char *file, int line);
Asking GDB to set a breakpoint, interpreting the response.

It should also be possible to recieve events, like when the breakpoint
was hit. This opens the library up to dozens of possible combinations.
    - How does gdb respond to breakpoints for C or ada?
    - How does gdb respond to breakpoints in 2004 vs 2014
    - What version of MI is being used?

I'm being idealistic I know. When writing a front end, I really don't
want to deal with these details. The way GDB is designed now, it forces
me to. In fact, it forces everyone to. I'm trying to help mitigate that
problem. Lets see how it goes.

Bob Rossi


      reply	other threads:[~2014-04-18 20:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-09 21:08 Bob Rossi
2014-04-10 15:01 ` Vladimir Prus
2014-04-10 20:13   ` Vladimir Prus
2014-04-11 10:01   ` Bob Rossi
2014-04-11 12:57     ` Andrew Burgess
2014-04-12  0:25       ` Bob Rossi
2014-04-14  6:25       ` Bob Rossi
2014-04-17 12:07         ` Bob Rossi
2014-04-18 10:46         ` Vladimir Prus
2014-04-18 13:11           ` Bob Rossi
2014-04-18 16:30             ` Vladimir Prus
2014-04-18 16:42               ` Bob Rossi
2014-04-18 17:59                 ` Vladimir Prus
2014-04-18 19:27                   ` Bob Rossi
2014-04-18 20:39                   ` Terekhov, Mikhail
2014-04-19  8:28                     ` Bob Rossi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140418203925.GB31328@linux \
    --to=bob@brasko.net \
    --cc=gdb@sourceware.org \
    --cc=mikhail.terekhov@emc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox