Improve armv4_5 command argument parsing.

__archive__
Zachary T Welch 2009-10-24 06:36:05 -07:00
parent ab33bdd46c
commit b62ee5a3c5
1 changed files with 2 additions and 2 deletions

View File

@ -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");