public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
Subject: Re: [RFA] Remove --disable-gdbcli and --disable-gdbmi
Date: Tue, 17 Jul 2018 12:23:00 -0000	[thread overview]
Message-ID: <8bebd1b1-e620-b393-bc0d-d216ca737327@redhat.com> (raw)
In-Reply-To: <20180628172132.28843-1-tom@tromey.com>

On 06/28/2018 06:21 PM, Tom Tromey wrote:
> I think it doesn't really make sense to allow building gdb without the
> CLI or without MI.  Perhaps at one time this was a goal, but libgdb is
> long gone, the CLI is intrinsic to gdb, and MI is relied on by many
> GUIs.
> 
> So, this patch removes the implementation of these configure options.
> They are still recognized (this is autoconf's default), but do
> nothing.
> 
> This simplifies configure.ac and Makefile.in a bit.
> 
> Tested by rebuilding.

I think it's safe to say that most MI frontends end up relying
on CLI commands, e.g., because they allow setting breakpoint commands
or expose a command line widget, or because of gdb/Python scripts.
While it's conceivable that someone might want to drive gdb via
MI for some targeted use case that does not rely or want a CLI might
make sense, it seems unlikely to me.  In any
case, --disable-gdbcli doesn't really work, so nobody is
going to miss it.

OTOH, wanting to disable the MI seems a bit more likely, at least
plausible.  Doing a web search for "--disable-gdbmi" finds
<https://sourceware.org/ml/gdb-patches/2008-01/msg00866.html>,
someone doing just that.  That was 10 years ago, and there doesn't seem to
be many more examples though, at least in the public.  It doesn't look
like removing --disable-gdbmi simplifies that much, so I'd be inclined
to keep it, since it actually works.

Do you have further plans of simplifications in this area that
this patch would enable, or was this just something you happened
to run into?

Thanks,
Pedro Alves

  parent reply	other threads:[~2018-07-17 12:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-28 17:21 Tom Tromey
2018-06-28 18:34 ` Eli Zaretskii
2018-07-16 16:38 ` Tom Tromey
2018-07-17 12:23 ` Pedro Alves [this message]
2018-07-17 14:02   ` Tom Tromey
2018-07-17 16:00     ` Tom Tromey
2018-07-17 16:05       ` Pedro Alves

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=8bebd1b1-e620-b393-bc0d-d216ca737327@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).