From f525f2ef0d95f68d5db02849133f730baa245812 Mon Sep 17 00:00:00 2001 From: Øyvind Harboe Date: Thu, 8 Oct 2009 14:53:25 +0200 Subject: Stop GDB when polling fails, srst assert or powerdropout is detected --- src/target/target.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/target/target.h') 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, -- cgit v1.2.3