Need help to execute/debug smpschededf02.exe on leon3
Jiri Gaisler
jiri at gaisler.se
Mon May 25 19:14:47 UTC 2020
On 5/25/20 4:30 PM, Richi Dubey wrote:
> Hii everyone,
>
> When I am executing smpschededf02.exe on my leon3 bsp running on
> sparc5 with sparc-rtems5-sis with -m 4 -leon3 option, it fails to
> execute properly.
>
> I have built leon3 with --enable-smp option and I am guessing the
> execution fails because I don not see any output of the test and I can
> only see the following output:
> ---------------------------------------------
> ~/quick-start/rtems/5/bin$ ./sparc-rtems5-sis -leon3 -m 4
> ~/quick-start/build/leon3/sparc-rtems5/c/leon3/testsuites/smptests/smpschededf02.exe
>
> SIS - SPARC/RISCV instruction simulator 2.21, copyright Jiri Gaisler 2019
> Bug-reports to jiri at gaisler.se
>
> LEON3 emulation enabled, 4 cpus online, delta 50 clocks
>
> Loaded /home/richi/quick-start/build/leon3/sparc-rtems5/c/leon3/testsuites/smptests/smpschededf02.exe,
> entry 0x40000000
> cpu0> run
>
>
> *** BEGIN OF TEST SMPSCHEDEDF 2 ***
> *** TEST VERSION: 5.0.0.20a8361de4724658112ecd33c28fae82a15919f8
> *** TEST STATE: EXPECTED_PASS
> *** TEST BUILD: RTEMS_NETWORKING RTEMS_POSIX_API RTEMS_SMP
> *** TEST TOOLS: 7.5.0 20191114 (RTEMS 5, RSB 5 (0b7e87143b76), Newlib fbaa096)
>
> *** END OF TEST SMPSCHEDEDF 2 ***
>
> cpu 1 in error mode (tt = 0x80)
> 3491850 40016360: 91d02000 ta 0x0
> -------------------------------------------------------
Looks good to me, test passed OK and processor is halted by RTEMS.
>
> On running the program with gdb with extended-remote and debugging
> with sis, I am encountering the following error:
>
> ----------------------
> (gdb) target extended-remote localhost:1234
> Remote debugging using localhost:1234
> 0x00000000 in ?? ()
> (gdb)
> ------------------------
This is indeed how you start remote debugging, but then you also have to do:
load
run
Then the program should run as expected ...
Jiri.
More information about the devel
mailing list