Open serial port to attach via GDB

2021-07-07 Thread Dmitrii Bundin
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 /dev/ttyS0 -gdb /dev/ttyS0 -S So when attaching from gdb I got (gd

Re: Qemu-4.2.0

2021-07-07 Thread abhijeet inamdar
Hi, I have a .axf file how to debug it using gdb for qemu-system-arm? Thanks, Abhijeet. On Wed, Jul 7, 2021, 12:09 abhijeet inamdar wrote: > I rectified it. Some headers were missing. > > Thanks, > Abhijeet. > > On Wed, Jul 7, 2021, 11:24 abhijeet inamdar > wrote: > >> Hi, I tried to implemen

Re: Qemu-4.2.0

2021-07-07 Thread abhijeet inamdar
I rectified it. Some headers were missing. Thanks, Abhijeet. On Wed, Jul 7, 2021, 11:24 abhijeet inamdar wrote: > Hi, I tried to implement from the example of stellaris.c but I'm getting > some more warnings as follows: > > warning: implicit declaration of function 'qdev_prop_set_uint32' > [-Wi

Re: Qemu-4.2.0

2021-07-07 Thread abhijeet inamdar
Hi, I tried to implement from the example of stellaris.c but I'm getting some more warnings as follows: warning: implicit declaration of function 'qdev_prop_set_uint32' [-Wimplicit-function-declaration] qdev_prop_set_uint32(nvic, "num-irq", NUM_IRQ_LINES); warning: implicit declaration of functio