GNU bug report logs - #33315
gdb set remote exec-file error.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Asif <asif.haswarey@HIDDEN>; dated Thu, 8 Nov 2018 14:44:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Nov 2018 14:43:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 08 09:43:41 2018
Received: from localhost ([127.0.0.1]:40434 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gKlX1-0007JF-MW
	for submit <at> debbugs.gnu.org; Thu, 08 Nov 2018 09:43:41 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36524)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <asif.haswarey@HIDDEN>) id 1gKeeV-0006cg-7Y
 for submit <at> debbugs.gnu.org; Thu, 08 Nov 2018 02:22:55 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <asif.haswarey@HIDDEN>) id 1gKeeP-00031E-5B
 for submit <at> debbugs.gnu.org; Thu, 08 Nov 2018 02:22:49 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:46891)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <asif.haswarey@HIDDEN>)
 id 1gKeeJ-0002sT-4u
 for submit <at> debbugs.gnu.org; Thu, 08 Nov 2018 02:22:44 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45765)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <asif.haswarey@HIDDEN>) id 1gKeeI-0003xb-Dx
 for bug-gnu-emacs@HIDDEN; Thu, 08 Nov 2018 02:22:43 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <asif.haswarey@HIDDEN>) id 1gKeOu-0001la-Tc
 for bug-gnu-emacs@HIDDEN; Thu, 08 Nov 2018 02:06:49 -0500
Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]:45836)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <asif.haswarey@HIDDEN>)
 id 1gKeOu-0001kv-Mn
 for bug-gnu-emacs@HIDDEN; Thu, 08 Nov 2018 02:06:48 -0500
Received: by mail-pg1-x52c.google.com with SMTP id y4so8019319pgc.12
 for <bug-gnu-emacs@HIDDEN>; Wed, 07 Nov 2018 23:06:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=wt/ttTkZ/7aNIQn+CVP6U/bPhntSRpOGMxarSfz82ac=;
 b=afWAHCvY29hlo83munyu/SLIxCDBicdwpSEjygCcUmOm+0IlhFBrtza68nU3Tbv42c
 3Fa2Mod4XJWLo39+vA/yfllEZiT1GC3q8jXb5Afsp7USynpbmGltuFTU6sKeE4OLZt/J
 DnwtseeGTqzazHkXlv32XGq7GjrPSMspUrHGE+KsH8ZKok30b205cH9Mtvw5Yuuta32x
 a/U07/N5VdNDL6pz0pxLiksSM7ySl1GgNbX0N+elq6fbS7+y7v98ofFdQJ6zjYNK9vHb
 qlZ1CgyAJ2uBkgVC2Hfj5mqKqYsUBarJvtu8wipZ/X7OMjF9utIxGkYXl/myIXRQHie/
 Po8g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=wt/ttTkZ/7aNIQn+CVP6U/bPhntSRpOGMxarSfz82ac=;
 b=dWlrcZ1Jl/NQncsuGEsOF+/bJxVItUckTHH/u3XgLD9dYYMNcui7D+EuBFpR9YrqjU
 txHcijQYswFvzFLqyuG5L2upgDJ+iXhNJqT+qzYjzo/iBzN9wVqlWJgOJQ3geNVD8VKY
 FGc9chp0cU9o+StW5nPKId3rWAgEK9PxCG9p2PBfmcEWEEfX+MHTyZsrF4yZoqXf9obx
 WTgEgzfLQj9ZgRFeKF/hsCSrbMTNEQssxa5DdVkVR3GKISHUlN8JglnstIzVLEM4teUL
 5zgRYGIfK8qp1tG9EN6G0uVzLf9mMhcWNvjKwPY791XJkayVJvTKgJ4r1WVd4yxq7HwF
 K8vw==
X-Gm-Message-State: AGRZ1gJ+wQLB5drj220GyZlwD6P3u10Kv/UfZkCVzOjjXoT1Po2EId0V
 dnwEFj0eRFSh53qwVtyIMlFUYv4LHJcuAnmYihB8jMTO
X-Google-Smtp-Source: AJdET5eXY+MMBjXrYjK4+RedwAANAtLX0UZ7iKjPZwDD+XlRZSFpkkF+FTP0GXVj3ioP1tU0DVRan/Dn3mAVa/Gj8fo=
X-Received: by 2002:a62:2643:: with SMTP id
 m64-v6mr3430782pfm.74.1541660806922; 
 Wed, 07 Nov 2018 23:06:46 -0800 (PST)
MIME-Version: 1.0
From: Asif <asif.haswarey@HIDDEN>
Date: Wed, 7 Nov 2018 23:06:35 -0800
Message-ID: <CAOzwu7dB7NVV_uR6DE7nv3+aaFgoxK+T8ZDRAmWdf7r=Rd-dTw@HIDDEN>
Subject: gdb set remote exec-file error.
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 08 Nov 2018 09:43:38 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

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




Acknowledgement sent to Asif <asif.haswarey@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#33315; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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