From: Zachary T Welch Date: Sat, 24 Oct 2009 13:36:05 +0000 (-0700) Subject: Improve armv4_5 command argument parsing. X-Git-Tag: v0.4.0-rc1~942 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=b62ee5a3c56cfbb000a40c05083dd31720c7cb1e Improve armv4_5 command argument parsing. --- diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c index eedbc702d6..9d942ae9f1 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");