2002-05-23 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Fri, 24 May 2002 01:25:52 +0000 (01:25 +0000)
committerMichael Snyder <msnyder@vmware.com>
Fri, 24 May 2002 01:25:52 +0000 (01:25 +0000)
* cli/cli-dump.c (restore_command): Use parse_and_eval_long
for input, rather than parse_and_eval_address.

gdb/ChangeLog
gdb/cli/cli-dump.c

index b4dfe86085c881b23870c3182df3ae3935b052e3..64314fe712a7c9c691352049f97ee937472a59a5 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-23  Michael Snyder  <msnyder@redhat.com>
+
+       * cli/cli-dump.c (restore_command): Use parse_and_eval_long
+       for input, rather than parse_and_eval_address.  
+
 2002-05-23  Andrew Cagney  <ac131313@redhat.com>
 
        * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
index 1edcfe26d1bd1c3136f965c8f2627e992624547f..36c1d2db2be0a4cff01ace1a55ae06609044a6af 100644 (file)
@@ -623,18 +623,16 @@ restore_command (char *args, int from_tty)
       /* Parse offset (optional). */
       if (args != NULL && *args != '\0')
       data.load_offset = 
-       parse_and_eval_address (scan_expression_with_cleanup (&args, 
-                                                             NULL));
+       parse_and_eval_long (scan_expression_with_cleanup (&args, NULL));
       if (args != NULL && *args != '\0')
        {
          /* Parse start address (optional). */
          data.load_start = 
-           parse_and_eval_address (scan_expression_with_cleanup (&args, 
-                                                                 NULL));
+           parse_and_eval_long (scan_expression_with_cleanup (&args, NULL));
          if (args != NULL && *args != '\0')
            {
              /* Parse end address (optional). */
-             data.load_end = parse_and_eval_address (args);
+             data.load_end = parse_and_eval_long (args);
              if (data.load_end <= data.load_start)
                error ("Start must be less than end.");
            }