summaryrefslogtreecommitdiff
path: root/src/target/mips32.c
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-12-07 14:55:08 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-07 14:57:44 -0800
commitbbb754aa395be74ceac0c01640fb33c0fae52c20 (patch)
tree54c581f26df52ec5b0f7fe3efe73b406d3acdb88 /src/target/mips32.c
parent19ad7f828ba36f398f52749c2f33e25a3ea78ac2 (diff)
downloadopenocd+libswd-bbb754aa395be74ceac0c01640fb33c0fae52c20.tar.gz
openocd+libswd-bbb754aa395be74ceac0c01640fb33c0fae52c20.tar.bz2
openocd+libswd-bbb754aa395be74ceac0c01640fb33c0fae52c20.tar.xz
openocd+libswd-bbb754aa395be74ceac0c01640fb33c0fae52c20.zip
target: add debug_reason_name()
Provide and use debug_reason_name() instead of expecting targets to call Jim_Nvp_value2name_simple(). Less dependency on Jim, and the code becomes more clear too. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/mips32.c')
-rw-r--r--src/target/mips32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/mips32.c b/src/target/mips32.c
index 48d07202..e8ea541a 100644
--- a/src/target/mips32.c
+++ b/src/target/mips32.c
@@ -254,7 +254,7 @@ int mips32_arch_state(struct target *target)
}
LOG_USER("target halted due to %s, pc: 0x%8.8" PRIx32 "",
- Jim_Nvp_value2name_simple(nvp_target_debug_reason, target->debug_reason)->name ,
+ debug_reason_name(target),
buf_get_u32(mips32->core_cache->reg_list[MIPS32_PC].value, 0, 32));
return ERROR_OK;