summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-10-24 06:36:05 -0700
committerZachary T Welch <zw@superlucidity.net>2009-11-05 18:03:19 -0800
commitb62ee5a3c56cfbb000a40c05083dd31720c7cb1e (patch)
tree5ef5de4fd329b9571a909e1202789169464faf19 /src
parentab33bdd46c3bb3acdb3f1b1f09a0e1a9393ef798 (diff)
downloadopenocd_libswd-b62ee5a3c56cfbb000a40c05083dd31720c7cb1e.tar.gz
openocd_libswd-b62ee5a3c56cfbb000a40c05083dd31720c7cb1e.tar.bz2
openocd_libswd-b62ee5a3c56cfbb000a40c05083dd31720c7cb1e.tar.xz
openocd_libswd-b62ee5a3c56cfbb000a40c05083dd31720c7cb1e.zip
Improve armv4_5 command argument parsing.
Diffstat (limited to 'src')
-rw-r--r--src/target/armv4_5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c
index eedbc702..9d942ae9 100644
--- a/src/target/armv4_5.c
+++ b/src/target/armv4_5.c
@@ -415,10 +415,10 @@ handle_armv4_5_disassemble_command(struct command_context_s *cmd_ctx,
thumb = 1;
/* FALL THROUGH */
case 2:
- count = strtoul(args[1], NULL, 0);
+ COMMAND_PARSE_NUMBER(int, args[1], count);
/* FALL THROUGH */
case 1:
- address = strtoul(args[0], NULL, 0);
+ COMMAND_PARSE_NUMBER(u32, args[0], address);
if (address & 0x01) {
if (!thumb) {
command_print(cmd_ctx, "Disassemble as Thumb");