qemu decodetree support

2021-07-08 Thread 贾舵(纯白)
I set decodetree.py with "--varinsnwidth 40 " , then get error: "error: cannot handle insns of width 40" I found the topic https://lists.gnu.org/archive/html/qemu-devel/2021-05/msg00091.html is a 64 bit support . but how to support var 40 bit instruction ? thanks..

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 st

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, 12:36

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 mymachin

Re: Open serial port to attach via GDB

2021-07-08 Thread Peter Maydell
On Thu, 8 Jul 2021 at 07:12, Dmitrii Bundin wrote: > > Hello, > > My current installation is Ubuntu 20.04 and QEMU emulator version 6.0.0. I'm > trying to attach gdb to the guest via a serial port. Using a default > /dev/ttyS0 I tried to run QEMU as follows > > $ sudo qemu-system-x86_64 -serial

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.