From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sergio Durigan Junior Newsgroups: gmane.emacs.bugs Subject: bug#25488: 25.1; gdb package interpreter problem Date: Mon, 16 Sep 2019 09:32:27 -0400 Message-ID: <87impsnz84.fsf@paluero> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="62275"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: "yates@ieee.org" , 25488@debbugs.gnu.org, Randy Yates To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 16 15:34:53 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i9r9Y-000G5n-JE for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Sep 2019 15:34:52 +0200 Original-Received: from localhost ([::1]:34201 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9r9X-0003Wz-4J for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Sep 2019 09:34:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42311) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9r7o-0001xL-9C for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 09:33:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9r7m-00059l-1d for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 09:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40613) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i9r7l-00059Z-Tc for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 09:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i9r7l-0003UC-OM for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 09:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sergio Durigan Junior Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Sep 2019 13:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25488 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 25488-submit@debbugs.gnu.org id=B25488.156864075113354 (code B ref 25488); Mon, 16 Sep 2019 13:33:01 +0000 Original-Received: (at 25488) by debbugs.gnu.org; 16 Sep 2019 13:32:31 +0000 Original-Received: from localhost ([127.0.0.1]:49434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9r7G-0003TK-HZ for submit@debbugs.gnu.org; Mon, 16 Sep 2019 09:32:30 -0400 Original-Received: from kwanyin.sergiodj.net ([158.69.185.54]:50054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9r7E-0003TA-D9 for 25488@debbugs.gnu.org; Mon, 16 Sep 2019 09:32:28 -0400 X-URL: http://blog.sergiodj.net In-Reply-To: (Stefan Kangas's message of "Sun, 15 Sep 2019 03:21:20 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166555 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Saturday, September 14 2019, Stefan Kangas wrote: > Sergio Durigan Junior writes: > >> On Friday, January 20 2017, Glenn Morris wrote: >> >>>> 1. configure remote system by running "gdbserver --multi localhost:" >>>> >>>> 2. on host system, run emacs, then "M-x gdb -i=3Dmi" >>>> >>>> 3. at the gdb prompt: >>>> >>>> file >>>> target extended-remote : >>>> set remote exec-file >>>> start >>>> >>>> 4.on the remote side, note the message: >>>> >>>> "Cannot exec : No such file or directory." >>>> >>>> specifically, note the space between "" and ":", which >>>> should not be there. this is the extraneous space. >>> >>> >>> Confirmed on rhel 7. >>> >>> This seems to be due to the " " in: >>> >>> (concat gdb-continuation string " ") >>> >>> in gdb-send, which was added in bug#14847. I've cc'd the author of that= change. >> >> Heh, I helped the reporter diagnose this issue, and as it turns out I >> was the culprit! >> >> Thanks for the report, I'll take a look at this later today. > > Hi Sergio, > > I see that the latest update here was in January 2017. Did you ever get > a chance to look into this issue? Wow, what a strange concept of "later today"! Sorry about that. Yeah, I had the chance to look into it, and even though I don't remember the details now, I have a patch here that seems to work for me. I'm attaching it to this message; can you check if it fixes the problem for you, please? It seems strange that the extra whitespace was added by mistake there. I'm a bit afraid that there is a case which I haven't envisioned and which requires that whitespace, but I couldn't come up with a testing scenario that triggers the error. I tested this by debugging a binary with and without arguments (i.e., "/bin/true" and "/bin/true --help"), and both worked fine. Thanks, =2D-=20 Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible http://sergiodj.net/ From=20cad0deb10f2dbdc7b3dd7d3c6f4347da9cb1f557 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sun, 15 Sep 2019 14:50:17 -0400 Subject: [PATCH] [gdb-mi.el] Don't add trailing whitespace when passing argument to GDB This fixes bug #25488. * lisp/progmodes/gdb-mi.el (gdb-send): Don't append whitespace to 'gdb-continuation'. =2D-- lisp/progmodes/gdb-mi.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index 48c7dde9f51..cf54207337d 100644 =2D-- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -1827,7 +1827,7 @@ gdb-send " ")) (setq gdb-first-done-or-error t) (let ((to-send (concat "-interpreter-exec console " =2D (gdb-mi-quote (concat gdb-continuation stri= ng " ")) + (gdb-mi-quote (concat gdb-continuation string= )) "\n"))) (if gdb-enable-debug (push (cons 'mi-send to-send) gdb-debug-log)) =2D-=20 2.20.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEI3pUsQKHKL8A7zH00Ot2KGX8XjYFAl1/jusACgkQ0Ot2KGX8 XjbLsw//T3gspOT9LI7uw4Zddi0hypLf1JqwRo05C3VOqTSIHexdiC8wWlza3pxt 2fQF8jyjteacPWmdriRU2+bRfwtzQOU9ApLHC+wDaICD1lXZWvvC+5k/oKagQh5s cp5F665Y3iiPhuDBtxrTWbP1UyxtSVAEkB51hHxOQ1tfxRncnZdrM/nWleUPkcyG 7qF6ymqgs23CgxTAcp6+YiawbertTEMPnAeBGsVcR5W9IRGhc0n7c2XmQ0H8jZuv /k882rBbeQH1Qr52xaUpAi5Ef1CsOQKm4vSljaz2CbW/kGIltxR4K08Ak5q7NsR0 PpBPpnfs6SEuiOnp7t4ikuRw9bg+UA3iUWpffxC9lZi+71paTjCNoz3VP/8GVRJ0 wK6RzW6IaqAAtWCqME1sI0baq+tvSyuYr7rgRwJG7vLuazdKnhv0w9XlNQ2NpPao G+l33dntttDts88bUksjpYfjEcJYrXRPKgtX+SYZfRKdzuqV+jcuafl1hqy/RZp2 anMiy5JgwT3hQX0cKUJLs19uxE5ChHJmFFwhvUOc0iDiA8sO8S0flZSwQ2ZOMMIL Boe0V7UriI5Ur/Y1Tm5WkUt+M/1TNOQW8WY9gHZk0v4eBDL9l9wTI6kelChfCMjx UnnMwG4j8xJmz2wM29mNA6IDDHdok1DTRV93icsJNF0N7GjhN/o= =lCKP -----END PGP SIGNATURE----- --=-=-=--