diff options
Diffstat (limited to 'cpukit/libdebugger/rtems-debugger-threads.c')
-rw-r--r-- | cpukit/libdebugger/rtems-debugger-threads.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/libdebugger/rtems-debugger-threads.c b/cpukit/libdebugger/rtems-debugger-threads.c index e6ffe4a080..841199bfe3 100644 --- a/cpukit/libdebugger/rtems-debugger-threads.c +++ b/cpukit/libdebugger/rtems-debugger-threads.c @@ -355,9 +355,11 @@ rtems_debugger_thread_system_resume(bool detaching) current = rtems_debugger_thread_current(threads); if (current != NULL) { size_t i; + rtems_debugger_target* target = rtems_debugger->target; if (rtems_debugger_verbose()) rtems_debugger_printf("rtems-db: sys: : resuming\n"); - if (!detaching) { + if (!detaching + && (target->capabilities & RTEMS_DEBUGGER_TARGET_CAP_PURE_SWBREAK) == 0) { r = rtems_debugger_target_swbreak_insert(); if (r == 0) r = rtems_debugger_target_hwbreak_insert(); @@ -469,8 +471,8 @@ rtems_debugger_thread_step(rtems_debugger_thread* thread) int rtems_debugger_thread_stepping(rtems_debugger_thread* thread, - DB_UINT start, - DB_UINT end) + uintptr_t start, + uintptr_t end) { /* add lock */ rtems_debugger_threads* threads = rtems_debugger->threads; @@ -496,7 +498,7 @@ rtems_debugger_thread_stepping(rtems_debugger_thread* thread, } const rtems_debugger_thread_stepper* -rtems_debugger_thread_is_stepping(rtems_id id, DB_UINT pc) +rtems_debugger_thread_is_stepping(rtems_id id, uintptr_t pc) { /* add lock */ rtems_debugger_threads* threads = rtems_debugger->threads; |