unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Asif <asif.haswarey@gmail.com>
To: 33315@debbugs.gnu.org
Subject: bug#33315: gdb set remote exec-file error.
Date: Wed, 7 Nov 2018 23:06:35 -0800	[thread overview]
Message-ID: <CAOzwu7dB7NVV_uR6DE7nv3+aaFgoxK+T8ZDRAmWdf7r=Rd-dTw@mail.gmail.com> (raw)

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





             reply	other threads:[~2018-11-08  7:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-08  7:06 Asif [this message]
2020-11-26 12:37 ` bug#33315: gdb set remote exec-file error Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOzwu7dB7NVV_uR6DE7nv3+aaFgoxK+T8ZDRAmWdf7r=Rd-dTw@mail.gmail.com' \
    --to=asif.haswarey@gmail.com \
    --cc=33315@debbugs.gnu.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.
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).