summaryrefslogtreecommitdiff
path: root/src/target/target.h
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2009-10-08 14:53:25 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2009-10-08 14:53:25 +0200
commitf525f2ef0d95f68d5db02849133f730baa245812 (patch)
treece41cef6eb27e6767b6f1f66ba1e7c0217ca5a8f /src/target/target.h
parentd75b9ec69713a5ab07f1ea94d0b94d0796e6195f (diff)
downloadopenocd+libswd-f525f2ef0d95f68d5db02849133f730baa245812.tar.gz
openocd+libswd-f525f2ef0d95f68d5db02849133f730baa245812.tar.bz2
openocd+libswd-f525f2ef0d95f68d5db02849133f730baa245812.tar.xz
openocd+libswd-f525f2ef0d95f68d5db02849133f730baa245812.zip
Stop GDB when polling fails, srst assert or powerdropout is detected
Diffstat (limited to 'src/target/target.h')
-rw-r--r--src/target/target.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/target/target.h b/src/target/target.h
index 0ff2258a..6547d4d7 100644
--- a/src/target/target.h
+++ b/src/target/target.h
@@ -163,8 +163,14 @@ enum target_event
/* allow GDB to do stuff before others handle the halted event,
* this is in lieu of defining ordering of invocation of events,
- * which would be more complicated */
- TARGET_EVENT_EARLY_HALTED,
+ * which would be more complicated
+ *
+ * Telling GDB to halt does not mean that the target stopped running,
+ * simply that we're dropping out of GDB's waiting for step or continue.
+ *
+ * This can be useful when e.g. detecting power dropout.
+ */
+ TARGET_EVENT_GDB_HALT,
TARGET_EVENT_HALTED, /* target entered debug state from normal execution or reset */
TARGET_EVENT_RESUMED, /* target resumed to normal execution */
TARGET_EVENT_RESUME_START,