From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mike Gulick Newsgroups: gmane.emacs.bugs Subject: bug#29020: 25.1; gdb-mi doesn't display prompt when attaching Date: Thu, 26 Oct 2017 17:43:31 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1509055412 19986 195.159.176.226 (26 Oct 2017 22:03:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Oct 2017 22:03:32 +0000 (UTC) To: 29020@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 27 00:03:25 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7qF1-0002Un-JT for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 00:03:07 +0200 Original-Received: from localhost ([::1]:54825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7qF8-0008Ah-Pd for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Oct 2017 18:03:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7qF1-0008AR-NJ for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 18:03:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7qEy-0001iU-Gl for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 18:03:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55181) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7qEy-0001iC-9o for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 18:03:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e7qEx-0000Ip-Ct for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 18:03:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mike Gulick Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Oct 2017 22:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29020 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.15090553751145 (code B ref -1); Thu, 26 Oct 2017 22:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Oct 2017 22:02:55 +0000 Original-Received: from localhost ([127.0.0.1]:35629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7qEo-0000IO-CE for submit@debbugs.gnu.org; Thu, 26 Oct 2017 18:02:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7pwP-0008GE-Ks for submit@debbugs.gnu.org; Thu, 26 Oct 2017 17:43:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7pwI-0007GT-Ku for submit@debbugs.gnu.org; Thu, 26 Oct 2017 17:43:48 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46320) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e7pwI-0007GJ-Gd for submit@debbugs.gnu.org; Thu, 26 Oct 2017 17:43:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7pwG-0004tI-8x for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 17:43:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7pwA-0007Bq-BD for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 17:43:44 -0400 Original-Received: from mail-by2nam01on0071.outbound.protection.outlook.com ([104.47.34.71]:11575 helo=NAM01-BY2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e7pw9-00079v-Lw for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2017 17:43:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mathworks.onmicrosoft.com; s=selector1-mathworks-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YqSb0qkn4LUr9t8eVhsncWGEvUmh9UCUf/+euGoOBOY=; b=NsYSPnM71lUL/7qbujHVRr6Ah/LwZxSQQWxHCQM0QGslxz7SsjVb1X119y9yp6vnMhXVFM6SVr6amnTfWhV2kq8/bWL/mVW6AS7+a5bbS/s9yj5WgVk4oUztbllO8a7QiaSbRyrzyee/aj5mQF1cgOAWMrAgETpaSSO7FA5OU1g= Original-Received: from BN6PR05CA0024.namprd05.prod.outlook.com (10.174.92.165) by BLUPR0501MB0995.namprd05.prod.outlook.com (10.160.34.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.3; Thu, 26 Oct 2017 21:43:34 +0000 Original-Received: from DM3NAM05FT023.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::209) by BN6PR05CA0024.outlook.office365.com (2603:10b6:405:39::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.197.4 via Frontend Transport; Thu, 26 Oct 2017 21:43:34 +0000 Received-SPF: Pass (protection.outlook.com: domain of mathworks.com designates 144.212.100.42 as permitted sender) receiver=protection.outlook.com; client-ip=144.212.100.42; helo=exedge.mathworks.com; Original-Received: from exedge.mathworks.com (144.212.100.42) by DM3NAM05FT023.mail.protection.outlook.com (10.152.98.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.5 via Frontend Transport; Thu, 26 Oct 2017 21:43:33 +0000 Original-Received: from ex16-01-ah.mathworks.com (172.31.80.219) by ex16edge-00-ah.mathworks.com (172.31.187.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.845.34; Thu, 26 Oct 2017 17:44:32 -0400 Original-Received: from ex16-00-ah.mathworks.com (172.31.39.22) by ex16-01-ah.mathworks.com (172.31.80.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1034.26; Thu, 26 Oct 2017 17:43:32 -0400 Original-Received: from mail-vif.mathworks.com (144.212.95.101) by ex16-00-ah.mathworks.com (172.31.39.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1034.26 via Frontend Transport; Thu, 26 Oct 2017 17:43:32 -0400 Original-Received: from mgulick2-deb9-64.dhcp.mathworks.com (mgulick2-deb9-64.dhcp.mathworks.com [172.28.194.40]) by mail-vif.mathworks.com (8.14.7/8.14.7) with ESMTP id v9QLhW3j003845 for ; Thu, 26 Oct 2017 17:43:32 -0400 Original-Received: (from mgulick@localhost) by mgulick2-deb9-64.dhcp.mathworks.com (8.15.2/8.15.2/Submit) id v9QLhW3m028896; Thu, 26 Oct 2017 17:43:32 -0400 X-Authentication-Warning: mgulick2-deb9-64.dhcp.mathworks.com: mgulick set sender to mgulick@mathworks.com using -f X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:144.212.100.42; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(346002)(376002)(2980300002)(438002)(377424004)(199003)(50944005)(189002)(2906002)(575784001)(72206003)(8936002)(8676002)(8746002)(50986999)(54356999)(5890100001)(246002)(47776003)(33646002)(551544002)(305945005)(106466001)(7636002)(189998001)(50466002)(356003)(4001150100001)(9686003)(23676002)(2351001)(6916009)(5660300001)(478600001)(106002)(87636003)(316002)(42186006)(403724002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0501MB0995; H:exedge.mathworks.com; FPR:; SPF:Pass; PTR:airwatch-dmz-ah.mathworks.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM05FT023; 1:aujv0ZxtkR1llKInG9Y+J6y4B32uoJHu6M5+LeMchdDXGjnCQk21i/2fbFMTpmpcIO1v6Ht8xvnTGXtDNce3Q+xFX9XhP1HSIPoTjE6sQGVq7nXJjZYvod+W51BYpiJK X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 34542e8b-6fa1-417b-cb5b-08d51cba9b4b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603238); SRVR:BLUPR0501MB0995; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB0995; 3:rXCgoxgFeR0qEACx1Imou1XR5SwPo5SwWmmldR9DZS7zy3DfRcrX7esKjW4yz5cOlNjeGYCGOpMCm0B60/yb4YTqjbNlchzuBgBCz1RBZX/fpSGznAzsQkzivCPVEVIP35NEOJ81KjRgIWDISG9Mg/JbO5DBV/RvOsij6G86sXSoqhJgEuJJR2e9//Ax5IatauYQj1IkoQyegQLcmkGcHT1E9Rs+WSO5dnpymThaEgr3+WkORr6yuUst0JPkl6+/p4ONNn4jHPngm3DrFtgR0cV8Z7sxed24XscJ3weyIQ7YDeWCqhEbsxryLEpt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HN0x8EFJiuDjV9f1bxn7zA6/rb7M5EnC4DufMBsApsk4M3ew47f1+955CjsnTU9w2/b6fNEUrbgvWLydg1GPok+dHmtqV6dTLU3M9xmsJBghwG6YrUNtLUARpc15BWT9urXj4IE/JHMbUqZ4gmpGRMV3bb X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93004095)(3231020)(3002001)(10201501046)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123560025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0501MB0995; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0501MB0995; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB0995; 4:Ci1UDvLuD3FoUXw8q3A33UoQn8fJo9pmWZ46an06cgPI3WbMkhsMl2FxGR/jNQjctQ3fA/XKhIKRpozSGczzHblnSchUPEAQq6N2JTxCjYHkcUDCfi8RH+b9BuRYRQWYy8Ca4y+t9C8w0eoa3OB6R9lnbLskG1hfPvZf/ZNKwz1T2U1BMhD2MBSKgGBWmKPbI3MYPix8FO6w4BUbR6r7mkdq4BoAdMjc5yoy3VtcKw53QJ1FVsBH8t8+TGHIyjYMZeINayZ+BAQdH3kM5yhirA== X-Forefront-PRVS: 04724A515E X-Microsoft-Exchange-Diagnostics: 1; BLUPR0501MB0995; 23:Clu9csUcdV2h8p2BsG2lf43905UCb1BoFL9xQc7Zu+ZkoPSG93z0BN3IdUO3gweyk4AXxiK8aqW1gtuyAMKhiAqtzYJHpfbKC5n1tYs899RE+aTcIETDGISv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7KR4zpsVkIXeHvVQD2rNkHRHzTJolkktI=; 5:khaepLr+0ZT/V3QDbs2btd666O8bJ8BLwRqUBO+GdMUeOLjHWLodvmXe5BDjoBQd5qcAyEHMPdHVucyb9ufJLcKs1pWt/E9eUo8cV3T8oMwv5+/lTVj3K8wqSyHiw/2zm2I4aDyGJM7kmZGP9IsHB40ChyhGvsJjSaNbBhNNEoo=; 24:88xR6RLsOy6GwcrPBPH79LFK/WeagSU7PIXYiqXA44XcPp75pNEfCc/furAfb4NcaEqo9SwCE1kh1Rc4KkFQJE+9lmXb+d+B0fhKAdJte10=; 7:9CutdUULca06HKqySJI3bzCWQN9PHtT3sqp4wTbZYun7a1cvHCb7FZMWFpnfOviRyb5kuICh5bwgmFOS32GU+ev11RPfBlpATGftlD3xn1LaXE0Y6LkH+vc8smG1sossHPHY66tvBuYAKY3yyeoamW8uzq5xYVdDSEn0I3F/2tJ0bVIhUAqqnmG SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: mathworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2017 21:43:33.6473 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 34542e8b-6fa1-417b-cb5b-08d51cba9b4b X-MS-Exchange-CrossTenant-Id: 99dd3a11-4348-4468-9bdd-e5072b1dc1e6 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=99dd3a11-4348-4468-9bdd-e5072b1dc1e6; Ip=[144.212.100.42]; Helo=[exedge.mathworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0501MB0995 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 26 Oct 2017 18:02:50 -0400 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: 208.118.235.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:139038 Archived-At: When attaching to a process from gdb-mi, the (gdb) prompt is not shown after the attach command completes. This creates confusion because it appears that GDB is still working. A common reaction is to hit 'Enter', which re-sends the last command, i.e. 'attach PID', which kills the process that you were attempting to debug. $ gdb --version GNU gdb (Debian 7.12-6) 7.12.0.20161007-git $ sleep 1000 & [1] 9924 $ emacs -Q M-x gdb Run gdb (like this): gdb -i=3Dmi -n *gud* buffer output: Current directory is /usr/share/emacs/25.1/lisp/progmodes/ GNU gdb (Debian 7.12-6) 7.12.0.20161007-git ... (gdb) attach 9924 Attaching to process 9924 (gdb) Reading symbols from /bin/sleep...(no debugging symbols found)...do= ne. Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols fr= om /usr/lib/debug/.build-id/79/450f6e36287865d093ea209b85a222209925ff.debug= ...done. done. Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /= usr/lib/debug/.build-id/6f/150f33b150d6a81e26a425dd47d713d00f2d29.debug...d= one. done. 0x00007f8f29196230 in __nanosleep_nocancel () at ../sysdeps/unix/syscall-= template.S:84 84 ../sysdeps/unix/syscall-template.S: No such file or directory. Notice that the prompt is displayed after "Attaching to process 9924", but it is then obscured by additional information printed by gdb. The gdb-mi output (captured by running 'set logging on' from gdb prompt'): (gdb)=20 ~"Attaching to process 31331\n" =3Dthread-group-started,id=3D"i1",pid=3D"31331" =3Dthread-created,id=3D"1",group-id=3D"i1" ^done ~"Reading symbols from /bin/sleep..." ~"(no debugging symbols found)...done.\n" =3Dlibrary-loaded,id=3D"/lib/x86_64-linux-gnu/libc.so.6",target-name=3D"/= lib/x86_64-linux-gnu/libc.so.6",host-name=3D"/lib/x86_64-linux-gnu/libc.so.= 6",symbols-loaded=3D"0",thread-group=3D"i1" =3Dlibrary-loaded,id=3D"/lib64/ld-linux-x86-64.so.2",target-name=3D"/lib6= 4/ld-linux-x86-64.so.2",host-name=3D"/lib64/ld-linux-x86-64.so.2",symbols-l= oaded=3D"0",thread-group=3D"i1" ~"Reading symbols from /lib/x86_64-linux-gnu/libc.so.6..." ~"Reading symbols from /usr/lib/debug/.build-id/79/450f6e36287865d093ea20= 9b85a222209925ff.debug..." ~"done.\n" ~"done.\n" ~"Reading symbols from /lib64/ld-linux-x86-64.so.2..." ~"Reading symbols from /usr/lib/debug/.build-id/6f/150f33b150d6a81e26a425= dd47d713d00f2d29.debug..." ~"done.\n" ~"done.\n" ~"0x00007f8d63e86230 in __nanosleep_nocancel () at ../sysdeps/unix/syscal= l-template.S:84\n" &"84\t../sysdeps/unix/syscall-template.S: No such file or directory.\n" *stopped,frame=3D{addr=3D"0x00007f8d63e86230",func=3D"__nanosleep_nocance= l",args=3D[],file=3D"../sysdeps/unix/syscall-template.S",fullname=3D"/build= /glibc-p3Km7c/glibc-2.24/posix/../sysdeps/unix/syscall-template.S",line=3D"= 84"},thread-id=3D"1",stopped-threads=3D"all",core=3D"9" 33^done,frame=3D{level=3D"0",addr=3D"0x00007f8d63e86230",func=3D"__nanosl= eep_nocancel",file=3D"../sysdeps/unix/syscall-template.S",fullname=3D"/buil= d/glibc-p3Km7c/glibc-2.24/posix/../sysdeps/unix/syscall-template.S",line=3D= "84"} (gdb)=20 34^done,threads=3D[{id=3D"1",target-id=3D"process 31331",name=3D"sleep",f= rame=3D{level=3D"0",addr=3D"0x00007f8d63e86230",func=3D"__nanosleep_nocance= l",args=3D[],file=3D"../sysdeps/unix/syscall-template.S",fullname=3D"/build= /glibc-p3Km7c/glibc-2.24/posix/../sysdeps/unix/syscall-template.S",line=3D"= 84"},state=3D"stopped",core=3D"9"}],current-thread-id=3D"1" (gdb)=20 35^done,BreakpointTable=3D{nr_rows=3D"0",nr_cols=3D"6",hdr=3D[{width=3D"7= ",alignment=3D"-1",col_name=3D"number",colhdr=3D"Num"},{width=3D"14",alignm= ent=3D"-1",col_name=3D"type",colhdr=3D"Type"},{width=3D"4",alignment=3D"-1"= ,col_name=3D"disp",colhdr=3D"Disp"},{width=3D"3",alignment=3D"-1",col_name= =3D"enabled",colhdr=3D"Enb"},{width=3D"10",alignment=3D"-1",col_name=3D"add= r",colhdr=3D"Address"},{width=3D"40",alignment=3D"2",col_name=3D"what",colh= dr=3D"What"}],body=3D[]} (gdb)=20 36^done,register-names=3D["rax","rbx","rcx","rdx","rsi","rdi","rbp","rsp"= ,"r8","r9","r10","r11","r12","r13","r14","r15","rip","eflags","cs","ss","ds= ","es","fs","gs","st0","st1","st2","st3","st4","st5","st6","st7","fctrl","f= stat","ftag","fiseg","fioff","foseg","fooff","fop","xmm0","xmm1","xmm2","xm= m3","xmm4","xmm5","xmm6","xmm7","xmm8","xmm9","xmm10","xmm11","xmm12","xmm1= 3","xmm14","xmm15","mxcsr","ymm0h","ymm1h","ymm2h","ymm3h","ymm4h","ymm5h",= "ymm6h","ymm7h","ymm8h","ymm9h","ymm10h","ymm11h","ymm12h","ymm13h","ymm14h= ","ymm15h","","","","","","","","","","","","","","","","","","","","","","= ","","","","","","","","","","","","","","","","","","","","","","","","","= ","","","","","","","","","","","","","","","","","","","","","","","","","= ","","","","","","","orig_rax","al","bl","cl","dl","sil","dil","bpl","spl",= "r8l","r9l","r10l","r11l","r12l","r13l","r14l","r15l","ah","bh","ch","dh","= ax","bx","cx","dx","si","di","bp","","r8w","r9w","r10w","r11w","r12w","r13w= ","r14w","r15w","eax","ebx","ecx","edx","esi","edi","ebp","esp","r8d","r9d"= ,"r10d","r11d","r12d","r13d","r14d","r15d","ymm0","ymm1","ymm2","ymm3","ymm= 4","ymm5","ymm6","ymm7","ymm8","ymm9","ymm10","ymm11","ymm12","ymm13","ymm1= 4","ymm15"] (gdb)=20 In gdb-mi.el, the variable 'gdb-first-done-or-error' is set to nil after the first '^done' is printed. When parsing '*stopped' in gdb-stopped, the prompt is only printed if gdb-first-done-or-error is 't'. Since this output stream contains '^done', followed by some more output, followed by '*stopped', the gdb prompt is not being re-printed when '*stopped' is encountered. If I temporarily change the following lines in gdb-stopped in gdb-mi.el, then the prompt is printed after attaching: --- /tmp/gdb-mi.el.orig 2017-10-26 17:26:27.955626830 -0400 +++ /tmp/gdb-mi.el 2017-10-26 17:25:27.715228866 -0400 @@ -2537,8 +2537,7 @@ (message "Thread %s stopped" thread-id)))) =20 ;; Print "(gdb)" to GUD console - (when gdb-first-done-or-error - (setq gdb-filter-output (concat gdb-filter-output gdb-prompt-name))) + (setq gdb-filter-output (concat gdb-filter-output gdb-prompt-name)) =20 ;; In non-stop, we update information as soon as another thread gets ;; stopped This naive change may have other side-effects, which I did not fully think through, but it does at least show what the issue is. Another possible solution is that 'gdb-first-done-or-error', which controls whether the prompt should be printed on the next '^done', '^error', or '*stopped', should be reset to 't' whenever anything is printed to the gud buffer. However I was unable to figure out how to make that work. Thanks for your consideration. -Mike In GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-09-15, modified by Debian built on trouble Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 System Description: Debian GNU/Linux 9.1 (stretch) Configured using: 'configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25= .1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-li= sp:/usr/share/emacs/site-lisp --with-sound=3Dalsa --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25= .1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-li= sp:/usr/share/emacs/site-lisp --with-sound=3Dalsa --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fdebug-prefix-map=3D/build/emacs25-wN2qS3/emacs25-25.1+1=3D. -fstack-prot= ector-strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LC_COLLATE: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Auto-saving... Auto-saving gdb-mi.el.gz: Opening output file: Permission denied, /usr/shar= e/emacs/25.1/lisp/progmodes/#gdb-mi.el.gz# Quit C-; is undefined Undo! Mark set [2 times] gdb-stopped Target doesn=E2=80=99t support non-stop mode. Turning it off. Switched to thread 1 ptrace: No such process. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils jka-compr thingatpt find-func cl-seq gdb-mi bindat json map seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib gud easy-mmode comint ansi-color ring time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 108410 11828) (symbols 48 21790 0) (miscs 40 75 270) (strings 32 21724 5215) (string-bytes 1 614894) (vectors 16 15131) (vector-slots 8 463120 6883) (floats 8 192 261) (intervals 56 756 11) (buffers 976 20))