unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33315: gdb set remote exec-file error.
@ 2018-11-08  7:06 Asif
  2020-11-26 12:37 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Asif @ 2018-11-08  7:06 UTC (permalink / raw)
  To: 33315

Summary:
Trying to set a remote executable file name in the gdb *gud* buffer
causes the a single space to be appended to the executable file name.

Steps to reproduce the error:
1) Start emacs.
2) Enable gdmi debug messages in *Messages* buffer.
   M-: (setq gdbmi-debug-mode t)
3) Open the *Messages* buffer and go to *scratch* buffer.
   C-x 2
   C-x b *Messages*
   M-x next-multiframe-window
4) Start gdb which creates the *gud* buffer and makes it the current buffer.
   M-x gdb
   Run gdb (like this): gdb -i=mi
5) Enter the gdb remote exec-file name in the *gud* buffer.
   M-x b *gud*
   set remote exec-file xxx
6) The *Messages* buffer shows the wrong exec-file name value "xxx ",
with the appended space, instead of the correct value "xxx". When this
is sent to the remote gdbserver, the gdbserver report error saying
that remote exec file "xxx " does not exist.
7) *Message* contents shows the following:
   ...
   gdbmi-bnf-incomplete-record-result: param="remote exec-file",value="xxx "
   ...
8) The incorrect exec-file name string is passed to the function named
"gud-filter" located in:
emacs-26.1/lisp/progmodes/gud.el
_
Asif





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#33315: gdb set remote exec-file error.
  2018-11-08  7:06 bug#33315: gdb set remote exec-file error Asif
@ 2020-11-26 12:37 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-11-26 12:37 UTC (permalink / raw)
  To: Asif; +Cc: 33315

Asif <asif.haswarey@gmail.com> writes:

> 7) *Message* contents shows the following:
>    ...
>    gdbmi-bnf-incomplete-record-result: param="remote exec-file",value="xxx "

(This bug report unfortunately got no response at the time.)

When I try this in Emacs 28, I get:

gdbmi-bnf-incomplete-record-result: param="remote exec-file",value="xxx"

So I'm going to go ahead and guess that this has been fixed in the years
since this bug was reported, and I'm closing this bug report.  If the
problem still exists in Emacs 28, please respond to the debbugs address
and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-26 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-08  7:06 bug#33315: gdb set remote exec-file error Asif
2020-11-26 12:37 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).