GNU bug report logs - #70764
29.1; M-x gdb: don't ask me about debuginfod server if debuginfod is not in context

Previous Next

Package: emacs;

Reported by: Rolf Ade <rolf <at> pointsman.de>

Date: Sat, 4 May 2024 02:02:01 UTC

Severity: normal

Found in version 29.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Rolf Ade <rolf <at> pointsman.de>
Cc: 70764 <at> debbugs.gnu.org
Subject: bug#70764: 29.1; M-x gdb: don't ask me about debuginfod server if debuginfod is not in context
Date: Sat, 04 May 2024 20:07:31 +0300
> Date: Sat, 4 May 2024 18:26:41 +0200
> Cc: 70764 <at> debbugs.gnu.org
> From: Rolf Ade <rolf <at> pointsman.de>
> 
> > If you start GDB from the shell prompt, like this:
> > 
> >    $ gdb ./emacs
> > 
> > and then, when GDB shows its "(gdb)" prompt, type
> > 
> >    (gdb) set debuginfod enabled on
> > 
> > do you also see that "No symbol" error message?
> 
> Yes:
> 
> (gdb) set debuginfod enabled on
> No symbol "debuginfod" in current context.
> (gdb)
> 
> 
> > And also please try this:
> > 
> >   $ gdb -i=mi ./emacs
> >   ...
> >   -gdb-set debuginfod enabled on
> > 
> > and see if you get any error message that way.
> 
> Yes:
> 
> (gdb)
> -gdb-set debuginfod enabled on
> ^error,msg="No symbol \"debuginfod\" in current context."
> (gdb)
> 
> So, this all seems to lead to that the gdb shipped with Bullseye isn't correctly 
> build (despite the --with-debuginfod in the gdb --config output).

Most probably, yes.

> But Bullseye still isn't that uncommon; so others should also see this, I suppose?

Unfortunately, the only better alternative to stop these error
messages is for you to customize gdb-debuginfod-enable-setting to the
nil value.  That is the only way we know of that allows to prevent the
error messages by avoiding to even try the problematic setting.  No
other way we tried at the time to dynamically detect the support
worked in a satisfactory manner, basically because trying an
unsupported command is bound to trigger some error message.




This bug report was last modified 1 year and 60 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.