Need help in debugging a testsuite over qemu and gdb

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Aug 11 07:59:33 UTC 2020


On 11/08/2020 09:51, Richi Dubey wrote:
> Hi,
> 
> I have been trying to debug a test suite (this patch 
> <https://lists.rtems.org/pipermail/devel/2020-July/060945.html>) with 
> qemu and gdb by running the following commands:
> 
> --------------------------------------------------------------------------------------------
> ./arm-rtems5-gdb 
> ~/quick-start/build/b3-realview/arm-rtems5/c/realview_pbx_a9_qemu/testsuites/smptests/smpstrongapa01.exe 
> 
> .
> .
> .
> 
>  > target remote localhost:1234
>  > b Init
>  > continue
> 
> Continuing.
> [Inferior 1 (process 1) exited normally]
> 
> ------------------------------------------------------------------------------------------------------
> ./qemu-system-arm -net none -nographic -M realview-pbx-a9 -m 256M 
> -kernel 
> ~/quick-start/build/b3-realview/arm-rtems5/c/realview_pbx_a9_qemu/testsuites/smptests/smpstrongapa01.exe 
> -smp 3 -no-reboot -S -s

If you want to debug the target via GDB, then I would drop the "-no-reboot".

Please have a look at the attached GDB initialization script. You can 
use it via:

arm-rtems6-gdb --arm.gdb app.exe

To start the application use the "continue" command.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
-------------- next part --------------
set print elements 0
set print pretty on
set pagination off
set confirm off
tar remote :1234
load
info threads
def reset
  monitor system_reset
  load
end
def new
  make
  monitor system_reset
  load
  c
end
b _ARM_Exception_default
b _ARMV4_Exception_data_abort_default
b bsp_interrupt_handler_default
b bsp_reset
b _Terminate
reset


More information about the devel mailing list