[rtems commit] libdebugger/i386 Fix i386 backend after changes.

Chris Johns chrisj at rtems.org
Wed Aug 16 03:35:02 UTC 2017


Module:    rtems
Branch:    master
Commit:    8ad4d937df8b15254d3ac9a8be186b72f31bc0d2
Changeset: http://git.rtems.org/rtems/commit/?id=8ad4d937df8b15254d3ac9a8be186b72f31bc0d2

Author:    Chris Johns <chrisj at rtems.org>
Date:      Wed Aug 16 13:34:16 2017 +1000

libdebugger/i386 Fix i386 backend after changes.

Closes #3097.

---

 cpukit/libdebugger/rtems-debugger-i386.c | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/cpukit/libdebugger/rtems-debugger-i386.c b/cpukit/libdebugger/rtems-debugger-i386.c
index e9b8186..9da6031 100644
--- a/cpukit/libdebugger/rtems-debugger-i386.c
+++ b/cpukit/libdebugger/rtems-debugger-i386.c
@@ -282,7 +282,7 @@ rtems_debugger_target_write_regs(rtems_debugger_thread* thread)
      * for threads blocked in the context switcher.
      */
     if (rtems_debugger_thread_flag(thread,
-                                   RTEMS_DEBUGGER_THREAD_FLAG_DEBUGGING)) {
+                                   RTEMS_DEBUGGER_THREAD_FLAG_EXCEPTION)) {
       CPU_Exception_frame* frame = thread->frame;
       frame->eax    = regs[REG_EAX];
       frame->ecx    = regs[REG_ECX];
@@ -401,6 +401,21 @@ rtems_debugger_target_exception_to_signal(CPU_Exception_frame* frame)
 }
 
 int
+rtems_debugger_target_hwbreak_insert(void)
+{
+  /*
+   * Do nothing, load on exit of the exception handler.
+   */
+  return 0;
+}
+
+int
+rtems_debugger_target_hwbreak_remove(void)
+{
+  return 0;
+}
+
+int
 rtems_debugger_target_hwbreak_control(rtems_debugger_target_watchpoint wp,
                                       bool                             insert,
                                       DB_UINT                          addr,




More information about the vc mailing list