diff options
author | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2006-08-20 15:10:32 +0000 |
---|---|---|
committer | drath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2006-08-20 15:10:32 +0000 |
commit | da9eedc0f2c338b8ad136a4436a7781edc4a8884 (patch) | |
tree | 1102541a767e21f8d64495c092c21fac0cc64902 /src/target | |
parent | 1c1ae777e195c07b4ef0c6085b6ecd0cb6078f42 (diff) | |
download | openocd_libswd-da9eedc0f2c338b8ad136a4436a7781edc4a8884.tar.gz openocd_libswd-da9eedc0f2c338b8ad136a4436a7781edc4a8884.tar.bz2 openocd_libswd-da9eedc0f2c338b8ad136a4436a7781edc4a8884.tar.xz openocd_libswd-da9eedc0f2c338b8ad136a4436a7781edc4a8884.zip |
- made bp command more verbose
- fixed bug that could result in register corruption on arm920t targets
git-svn-id: svn://svn.berlios.de/openocd/trunk@89 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/arm920t.c | 3 | ||||
-rw-r--r-- | src/target/target.c | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/target/arm920t.c b/src/target/arm920t.c index d68ca2e4..54feaff2 100644 --- a/src/target/arm920t.c +++ b/src/target/arm920t.c @@ -380,6 +380,9 @@ int arm920t_write_cp15_interpreted(target_t *target, u32 opcode, u32 value, u32 DEBUG("opcode: %8.8x, value: %8.8x, address: %8.8x", opcode, value, address); + ARMV4_5_CORE_REG_MODE(armv4_5->core_cache, armv4_5->core_mode, 0).dirty = 1; + ARMV4_5_CORE_REG_MODE(armv4_5->core_cache, armv4_5->core_mode, 1).dirty = 1; + return ERROR_OK; } diff --git a/src/target/target.c b/src/target/target.c index e88fb196..2f5126df 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -1663,6 +1663,14 @@ int handle_bp_command(struct command_context_s *cmd_ctx, char *cmd, char **args, break; } } + else + { + command_print(cmd_ctx, "breakpoint added at address 0x%8.8x", strtoul(args[0], NULL, 0)); + } + } + else + { + command_print(cmd_ctx, "usage: bp <address> <length> ['hw']"); } return ERROR_OK; |