target: add debug_reason_name()
[fw/openocd] / src / target / target.h
index 73190695427780d5fe38221e4ef23ad94cceb55d..dd3d4f7f5f2b0dcb9b74022ac2eb728dcdb3cecb 100644 (file)
@@ -91,8 +91,6 @@ enum target_debug_reason
        DBG_REASON_UNDEFINED = 6
 };
 
-extern const Jim_Nvp nvp_target_debug_reason[];
-
 enum target_endianess
 {
        TARGET_ENDIAN_UNKNOWN = 0,
@@ -165,6 +163,8 @@ static inline const char *target_name(struct target *target)
        return target->cmd_name;
 }
 
+const char *debug_reason_name(struct target *t);
+
 enum target_event
 {
        /* LD historical names