From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6DAD63858400; Tue, 21 Dec 2021 11:07:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6DAD63858400 From: "qwertytmp1 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/28717] GDB steps twice on a single stepi Date: Tue, 21 Dec 2021 11:07:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 11.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: qwertytmp1 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2021 11:07:00 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28717 --- Comment #2 from lol lol --- Hello, > Can you provide an example program where this happens? Company, I'm working on, uses custom GDB server software. That is why, unfortunately, I cannot share the source code of the gdbserver. Fortunately, I can share commands to/from such custom GDB server: ``` GDBSRV RECEIVED: 'm1e2f8,4' GDBSRV SENT: '$5f2403d5#fd' GDBSRV RECEIVED: 'vCont?' GDBSRV SENT: '$vCont;c;C;s;S#62' GDBSRV RECEIVED: 'vCont;s:1;c' GDBSRV SENT: '$T05watch:1e;#db' GDBSRV RECEIVED: 'g' GDBSRV SENT: '$010**a09f0* 30*%9f0* 30*}0*}0*}0*}0*_e09e0* 30*"0fce2010*.a*}a*}a*}a*}a*}a*}a*}a*}a*}a*}a*b#b4' GDBSRV RECEIVED: 'm1e2fc,4' GDBSRV SENT: '$ff0301d1#25' GDBSRV RECEIVED: 'vCont;s:1' GDBSRV SENT: '$T05watch:1e;#db' GDBSRV RECEIVED: 'g' GDBSRV SENT: '$010**a09f0* 30*%9f0* 30*}0*}0*}0*}0*_a09e0* 30*%e3010*.a*}a*}a*}a*}a*}a*}a*}a*}a*}a*}a*b#bb' GDBSRV RECEIVED: 'm1e300,4' GDBSRV SENT: '$fd7b02a9#5f' GDBSRV RECEIVED: 'm1e2fc,4' GDBSRV SENT: '$ff0301d1#25' GDBSRV RECEIVED: 'm1e300,4' GDBSRV SENT: '$fd7b02a9#5f' GDBSRV RECEIVED: 'qfThreadInfo' GDBSRV SENT: '$m1#9e' GDBSRV RECEIVED: 'qsThreadInfo' GDBSRV SENT: '$l#6c' GDBSRV RECEIVED: 'm1e300,4' GDBSRV SENT: '$fd7b02a9#5f' GDBSRV RECEIVED: 'm1e2fc,4' GDBSRV SENT: '$ff0301d1#25' GDBSRV RECEIVED: 'm1e300,4' GDBSRV SENT: '$fd7b02a9#5f' ``` I hope it will help to understand the problem. > Can you try to reproduce this with a GDBserver debugging a Linux program?= That would help us figure out what happens. I was failed to reproduce the problem with Linux application. GDB client works without problems. I've compared commands received/sent by the GDB client for the native AARCH= 64 application and Linux AARCH64 application. Below you can see the difference: ``` If to debug NATIVE application | If to debug LINUX application |=20 (gdb) si | (gdb) si PUTPKT: 'm1e2f8,4' | PUTPKT: 'Z0,7ff7ed2504,4' GETPKT: 'm1e2f8,4' | GETPKT: 'Z0,7ff7ed2504,4' PUTPKT: 'vCont?' | PUTPKT: 'm7ff7ed2508,4' GETPKT: 'vCont?' | GETPKT: 'm7ff7ed2508,4' PUTPKT: 'vCont;s:1;c' | GETPKT: 'e0030091' PUTPKT: 'g' | PUTPKT: 'vCont?' GETPKT: 'g' | GETPKT: 'vCont?' PUTPKT: 'm1e2fc,4' | PUTPKT: 'vCont;s:p77.77;c:p77.-1' GETPKT: 'm1e2fc,4' | PUTPKT: 'm7ff7ed250c,4' PUTPKT: 'vCont;s:1' | GETPKT: 'm7ff7ed250c,4' PUTPKT: 'g' | PUTPKT: 'm7ff7ed2508,4' GETPKT: 'g' | GETPKT: 'm7ff7ed2508,4' PUTPKT: 'm1e300,4' | PUTPKT: 'm7ff7ed250c,4' GETPKT: 'm1e300,4' | GETPKT: 'm7ff7ed250c,4' PUTPKT: 'm1e2fc,4' | PUTPKT: 'qXfer:threads:read::0,1000' GETPKT: 'm1e2fc,4' | PUTPKT: 'z0,7ff7ed2504,4' PUTPKT: 'm1e300,4' | GETPKT: 'z0,7ff7ed2504,4' GETPKT: 'm1e300,4' | PUTPKT: 'm7ff7ed250c,4' GETPKT: 'fd7b02a9' | GETPKT: 'm7ff7ed250c,4' GETPKT: 'm1' | PUTPKT: 'm7ff7ed2508,4' PUTPKT: 'm1e300,4' | GETPKT: 'm7ff7ed2508,4' GETPKT: 'm1e300,4' | PUTPKT: 'm7ff7ed250c,4' PUTPKT: 'm1e2fc,4' | GETPKT: 'm7ff7ed250c,4' GETPKT: 'm1e2fc,4' |=20 PUTPKT: 'm1e300,4' |=20 GETPKT: 'm1e300,4' |=20 ``` --=20 You are receiving this mail because: You are on the CC list for the bug.=