GNU bug report logs -
#9853
24.0.90; gdb-version only set in non-stop mode
Previous Next
Reported by: Ken Brown <kbrown <at> cornell.edu>
Date: Sun, 23 Oct 2011 22:36:02 UTC
Severity: normal
Found in version 24.0.90
Done: Ken Brown <kbrown <at> cornell.edu>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 9853 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 10/23/2011 6:33 PM, Ken Brown wrote:
> The variable gdb-version is set in the function gdb-non-stop-handler,
> which is only called if gdb-non-stop is non-nil. Given that
> gdb-non-stop-setting is customizable and may well be set to nil,
> wouldn't it make more sense to get the version some other way? For
> instance, there's a GDB/MI command -gdb-version that could be used.
After looking through gdb-mi.el more carefully, I see that emacs doesn't
really need to know the GDB version. So I withdraw my complaint. But I
think the variable gdb-version should probably be renamed to reflect its
real purpose, perhaps to gdb-supports-non-stop.
> Also, the -enable-pretty-printing command is sent from
> gdb-non-stop-handler and so is only sent if gdb-non-stop is non-nil.
This still seems wrong, unless there's some reason that pretty-printing
is only useful in non-stop mode.
The attached patch implements my suggestions (and also makes a couple of
whitespace changes).
OK to apply?
Ken
[gdb-version.patch (text/plain, attachment)]
This bug report was last modified 13 years and 234 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.