Re: [PATCH] tcg: gdbstub: Fix single-step issue on arm target

2020-02-21 Thread Philippe Mathieu-Daudé
On 2/21/20 12:51 PM, Changbin Du wrote: On Thu, Feb 20, 2020 at 10:24:37PM +0100, Luc Michel wrote: I'm curious, I never experienced this behaviour from GDB. What GDB and QEMU versions are you using? On my side (GDB 9.1), even without 'vContSupported+' in the 'qSupported' answer, GDB sends a 'v

Re: [PATCH] tcg: gdbstub: Fix single-step issue on arm target

2020-02-21 Thread Changbin Du
On Thu, Feb 20, 2020 at 10:24:37PM +0100, Luc Michel wrote: > I'm curious, I never experienced this behaviour from GDB. What GDB and > QEMU versions are you using? > > On my side (GDB 9.1), even without 'vContSupported+' in the 'qSupported' > answer, GDB sends a 'vCont?' packet on the first stepi:

Re: [PATCH] tcg: gdbstub: Fix single-step issue on arm target

2020-02-20 Thread Changbin Du
On Thu, Feb 20, 2020 at 06:47:26PM +0100, Philippe Mathieu-Daudé wrote: > On 2/20/20 4:58 PM, Changbin Du wrote: > > Recently when debugging an arm32 system on qemu, I found sometimes the > > single-step command (stepi) is not working. This can be reproduced by > > below steps: > > 1) start qemu-

Re: [PATCH] tcg: gdbstub: Fix single-step issue on arm target

2020-02-20 Thread Changbin Du
On Thu, Feb 20, 2020 at 10:24:37PM +0100, Luc Michel wrote: > Hi, > > On 2/20/20 4:58 PM, Changbin Du wrote: > > Recently when debugging an arm32 system on qemu, I found sometimes the > > single-step command (stepi) is not working. This can be reproduced by > > below steps: > > 1) start qemu-syst

Re: [PATCH] tcg: gdbstub: Fix single-step issue on arm target

2020-02-20 Thread Luc Michel
Hi, On 2/20/20 4:58 PM, Changbin Du wrote: > Recently when debugging an arm32 system on qemu, I found sometimes the > single-step command (stepi) is not working. This can be reproduced by > below steps: > 1) start qemu-system-arm -s -S .. and wait for gdb connection. > 2) start gdb and connect t

Re: [PATCH] tcg: gdbstub: Fix single-step issue on arm target

2020-02-20 Thread Philippe Mathieu-Daudé
On 2/20/20 7:06 PM, Laurent Vivier wrote: Le 20/02/2020 à 18:47, Philippe Mathieu-Daudé a écrit : On 2/20/20 4:58 PM, Changbin Du wrote: Recently when debugging an arm32 system on qemu, I found sometimes the single-step command (stepi) is not working. This can be reproduced by below steps:   1

Re: [PATCH] tcg: gdbstub: Fix single-step issue on arm target

2020-02-20 Thread Laurent Vivier
Le 20/02/2020 à 18:47, Philippe Mathieu-Daudé a écrit : > On 2/20/20 4:58 PM, Changbin Du wrote: >> Recently when debugging an arm32 system on qemu, I found sometimes the >> single-step command (stepi) is not working. This can be reproduced by >> below steps: >>   1) start qemu-system-arm -s -S ..

Re: [PATCH] tcg: gdbstub: Fix single-step issue on arm target

2020-02-20 Thread Peter Maydell
On Thu, 20 Feb 2020 at 15:59, Changbin Du wrote: > > Recently when debugging an arm32 system on qemu, I found sometimes the > single-step command (stepi) is not working. This can be reproduced by > below steps: > 1) start qemu-system-arm -s -S .. and wait for gdb connection. > 2) start gdb and c

Re: [PATCH] tcg: gdbstub: Fix single-step issue on arm target

2020-02-20 Thread Philippe Mathieu-Daudé
On 2/20/20 4:58 PM, Changbin Du wrote: Recently when debugging an arm32 system on qemu, I found sometimes the single-step command (stepi) is not working. This can be reproduced by below steps: 1) start qemu-system-arm -s -S .. and wait for gdb connection. 2) start gdb and connect to qemu. In

[PATCH] tcg: gdbstub: Fix single-step issue on arm target

2020-02-20 Thread Changbin Du
Recently when debugging an arm32 system on qemu, I found sometimes the single-step command (stepi) is not working. This can be reproduced by below steps: 1) start qemu-system-arm -s -S .. and wait for gdb connection. 2) start gdb and connect to qemu. In my case, gdb gets a wrong value (0x60)