import gdb-2000-01-31 snapshot
[deliverable/binutils-gdb.git] / gdb / remote-rdi.c
index 63c8d600abad2fc6b903d1d11e0cc8994e69126d..d1872230ce44153ed799a32b94cac9c8e7ec54ec 100644 (file)
@@ -32,6 +32,7 @@
 #include "gdb-stabs.h"
 #include "gdbthread.h"
 #include "gdbcore.h"
+#include "breakpoint.h"
 
 #ifdef USG
 #include <sys/types.h>
@@ -738,6 +739,12 @@ arm_rdi_kill ()
 static void
 arm_rdi_mourn_inferior ()
 {
+  /* We remove the inserted breakpoints in case the user wants to
+     issue another target and load commands to rerun his application;
+     This is something that wouldn't work on a native target, for instance,
+     as the process goes away when the inferior exits, but it works with
+     some remote targets like this one.  That is why this is done here. */
+  remove_breakpoints();
   unpush_target (&arm_rdi_ops);
   generic_mourn_inferior ();
 }
This page took 0.039653 seconds and 4 git commands to generate.