[rtems-tools commit] tester/bsps: change stm32h7-stlink to handle SIGTRAP as a nostop

Karel Gardas karel at rtems.org
Mon Mar 27 04:48:09 UTC 2023


Module:    rtems-tools
Branch:    master
Commit:    eaf14a654b528b44de14f9da9919555e54324e0d
Changeset: http://git.rtems.org/rtems-tools/commit/?id=eaf14a654b528b44de14f9da9919555e54324e0d

Author:    Karel Gardas <karel at functional.vision>
Date:      Sat Mar 25 00:10:55 2023 +0100

tester/bsps: change stm32h7-stlink to handle SIGTRAP as a nostop

The ST-Link GDB server throws spurious SIGTRAP into the GDB sometimes.
When this happen, the gdb exits immediately as it's run in batch/script
manner. Unfortunately this may be while testcase itself is still running
and does not have enough time to print all the required output.
Such testcase is then marked as failed although otherwise it may run
well to its end.
Adding handle of SIGTRAP as a nostop means that GDB will not exit
after receiving SIGTRAP but rather be forced to continue as nothing
would happen and the running testcase will have a chance to finish
its business.

---

 tester/rtems/testing/bsps/stm32h7-stlink.ini | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tester/rtems/testing/bsps/stm32h7-stlink.ini b/tester/rtems/testing/bsps/stm32h7-stlink.ini
index bf57bee..2c375f5 100644
--- a/tester/rtems/testing/bsps/stm32h7-stlink.ini
+++ b/tester/rtems/testing/bsps/stm32h7-stlink.ini
@@ -40,4 +40,5 @@ gdb_script     = bsp_gdb_script
 requires       = bsp_tty_dev, bsp_gdb_script, target_pretest_command, target_posttest_command
 bsp_gdb_script = target extended-remote :61234
                  load
+                 handle SIGTRAP nostop
                  cont



More information about the vc mailing list