diff options
author | Chris Johns <chrisj@rtems.org> | 2022-10-17 16:25:57 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2022-10-18 07:37:57 +1100 |
commit | d574e08663ee57a15802fdc5f0c8f8a5b09bd528 (patch) | |
tree | 636aff1906d0ea0f54955a64ff8984ddf31f721d /cpukit/include/rtems/rtems-debugger.h | |
parent | bsps: Improve riscv console FDT parsing (diff) | |
download | rtems-d574e08663ee57a15802fdc5f0c8f8a5b09bd528.tar.bz2 |
libdebugger: Add a target break call to suspend all running threads
- Optionally wait if there is no remote debugger connected and break
when the remote connects
Closes #4740
Diffstat (limited to 'cpukit/include/rtems/rtems-debugger.h')
-rw-r--r-- | cpukit/include/rtems/rtems-debugger.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/include/rtems/rtems-debugger.h b/cpukit/include/rtems/rtems-debugger.h index 1fc8b3d522..7627e83382 100644 --- a/cpukit/include/rtems/rtems-debugger.h +++ b/cpukit/include/rtems/rtems-debugger.h @@ -54,6 +54,14 @@ extern int rtems_debugger_start(const char* remote, const rtems_printer* printer); /** + * Suspend all running threads including the caller if not + * excluded. Returns when the debugger has connected and continued. + * + * If wait is true and there is no remote connected wait then break. + */ +extern int rtems_debugger_break(bool wait); + +/** * Stop the Debugger. */ extern int rtems_debugger_stop(void); |