[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-patch] Attaching to target using manual GDB commands
|
With this change, I can manually enter GDB commands to attach
to my target.
Very useful when e.g.:
- Attaching to an embedded target. Tested with arm-elf-gdb JTAG BDI2000.
- Source debugging a Windows DLL by using a launcher app that does not
have debug information. (Didn't test it, but it should work).
Known problem:
- Breakpoints are not reestablished.
--
Øyvind Harboe
http://www.zylin.com
Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.mi.core/ChangeLog,v
retrieving revision 1.225
diff -u -r1.225 ChangeLog
--- ChangeLog 7 May 2004 18:21:22 -0000 1.225
+++ ChangeLog 11 May 2004 12:27:47 -0000
@@ -1,3 +1,8 @@
+2004-05-10 Oyvind Harboe
+ Do not restart the appliaction if it is not already running when
+ attaching, since this allows the user to manually type in GDB commands
+ to prime the target.
+
2004-05-07 Alain Magloire
PR 57127. Pass the stream verbatim
even if it has spaces.
Index: cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java,v
retrieving revision 1.2
diff -u -r1.2 Target.java
--- cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java 16 Mar 2004 20:03:56 -0000 1.2
+++ cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java 11 May 2004 12:27:47 -0000
@@ -349,7 +349,8 @@
} else if (mi.getMIInferior().isTerminated()) {
restart();
} else {
- restart();
+ // if we are not running, do not restart() since the
+ // user might want to do this himself via manual GDB commands.
}
}