From: Eli Zaretskii <eliz@gnu.org>
To: Andrew Burgess <aburgess@broadcom.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Remove use of deprecated_init_ui_hook from quit_confirm.
Date: Fri, 06 Sep 2013 13:25:00 -0000 [thread overview]
Message-ID: <838uzam69j.fsf@gnu.org> (raw)
In-Reply-To: <5229CAA4.4090709@broadcom.com>
> Date: Fri, 6 Sep 2013 13:29:24 +0100
> From: "Andrew Burgess" <aburgess@broadcom.com>
>
> There are only two places that deprecated_init_ui_hook is set
> (to !NULL) that I can find:
>
> 1. In gdbtk, deprecated_init_ui_hook is used to grab a copy of
> argv0, but is then immediately set back to NULL, and
>
> 2. In windows-nat.c, deprecated_init_ui_hook is used to solve
> an order of initialisation problem when creating a command
> alias, in this case deprecated_init_ui_hook is left set.
>
> In top.c:quit_confirm we check deprecated_init_ui_hook to detect if
> there's a GUI running. For (1) above this will not kick in, but
> for (2) it does.... however... I don't see why this is a good thing,
> as I understand it the windows-nat.c code is not a GUI frontend for
> gdb, but is just "running-gdb-on-windows-hosts". I find it hard to
> believe that the shorter, less informative, quit message is really
> desired... but maybe I've missed something.
>
> The following patch removes the use of deprecated_init_ui_hook
> from quit_confirm, the only change I expect from this is that the
> quit message on windows hosts will fall into line with other hosts.
What situation would trigger the different quit message on Windows?
In GDB 7.6.1 built as MinGW native debugger for Windows, I only see
the "normal" quit message, viz.:
(gdb) q
A debugging session is active.
Inferior 1 [process 628] will be killed.
Quit anyway? (y or n) y
So it looks like the allegedly Windows-specific quit message is never
used, although deprecated_init_ui_hook is non-NULL. What am I
missing?
> OK to apply?
I'd suggest to wait until we fully understand the situation with this
hook.
Thanks.
next prev parent reply other threads:[~2013-09-06 13:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-06 12:29 Andrew Burgess
2013-09-06 13:25 ` Eli Zaretskii [this message]
2013-09-06 13:44 ` Pedro Alves
2013-09-06 13:50 ` Eli Zaretskii
2013-09-06 14:12 ` Pedro Alves
2013-09-06 13:34 ` Pedro Alves
2013-09-09 12:15 ` Andrew Burgess
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=838uzam69j.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=aburgess@broadcom.com \
--cc=gdb-patches@sourceware.org \
/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