Re: GDB for qemu-system-arm

2021-07-08 Thread Peter Maydell
On Thu, 8 Jul 2021 at 12:17, abhijeet inamdar wrote: > > But I'm not getting how do I debug .axf > > After I pass command : > qemu-system-arm -M mymachine -cpu cortex-m3 -kernel main.axf -monitor none > -serial stdio -semihosting -nographic -s -S > > After this the cursor goes to next line and

Re: GDB for qemu-system-arm

2021-07-08 Thread abhijeet inamdar
But I'm not getting how do I debug .axf After I pass command : qemu-system-arm -M mymachine -cpu cortex-m3 -kernel main.axf -monitor none -serial stdio -semihosting -nographic -s -S After this the cursor goes to next line and stuck. What should I do? Thanks, Abhijeet. On Thu, Jul 8, 2021,

Re: GDB for qemu-system-arm

2021-07-08 Thread Peter Maydell
On Thu, 8 Jul 2021 at 11:23, abhijeet inamdar wrote: > > I tried -D but the log.txt which got created is empty. -D just says "log debug information to this file". You need to also pass some kind of -d option to turn on whatever logging you wanted. -- PMM

Re: GDB for qemu-system-arm

2021-07-08 Thread abhijeet inamdar
I tried -D but the log.txt which got created is empty. Thanks, Abhijeet. On Thu, Jul 8, 2021, 10:05 abhijeet inamdar wrote: > Hi, > > I'm using Ubuntu 16.04 and qemu-4.2.0. I have compiled and generated a > .axf file but I'm not able to run. > > The command I used is qemu-system-arm -M

GDB for qemu-system-arm

2021-07-08 Thread abhijeet inamdar
Hi, I'm using Ubuntu 16.04 and qemu-4.2.0. I have compiled and generated a .axf file but I'm not able to run. The command I used is qemu-system-arm -M mymachine -cpu cortex-m3 -kernel main.axf -monitor none -serial studio -semihosting -nographic Thanks, Abhijeet.