]> git.sur5r.net Git - openocd/commitdiff
- made bp command more verbose
authordrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 20 Aug 2006 15:10:32 +0000 (15:10 +0000)
committerdrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 20 Aug 2006 15:10:32 +0000 (15:10 +0000)
- 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

src/openocd.c
src/target/arm920t.c
src/target/target.c

index 27ca8327d8d6bc0613cdb5720e4186f83fbde0d6..1cbbb625f131a2bb329b0763fb08e246b7775501 100644 (file)
@@ -18,7 +18,7 @@
  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
 
-#define OPENOCD_VERSION "Open On-Chip Debugger (2006-08-17 17:00 CEST)"
+#define OPENOCD_VERSION "Open On-Chip Debugger (2006-08-20 17:00 CEST)"
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
index d68ca2e441237e368dc84f0d5c11795029887e5e..54feaff29ce22267774be313972fdb6653c799ab 100644 (file)
@@ -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;
 }
 
index e88fb196729b2dc7b5cb660af8e6269667c466a4..2f5126dfefbbdf0134dfeb429cfa45bfd4e5c813 100644 (file)
@@ -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;