aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-05-24 01:25:52 +0000
committerMichael Snyder <msnyder@vmware.com>2002-05-24 01:25:52 +0000
commitde530e8403a54d54467910510b693194efaffcb4 (patch)
tree3f01dfd3c9d26fe2939795676e1e2b4ba5b83f2b /gdb
parent9f66665ac58ef8ccb2644ceaf7d2f7fefab9f7e6 (diff)
downloadgdb-de530e8403a54d54467910510b693194efaffcb4.zip
gdb-de530e8403a54d54467910510b693194efaffcb4.tar.gz
gdb-de530e8403a54d54467910510b693194efaffcb4.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/cli/cli-dump.c8
2 files changed, 8 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b4dfe86..64314fe 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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".
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c
index 1edcfe2..36c1d2d 100644
--- a/gdb/cli/cli-dump.c
+++ b/gdb/cli/cli-dump.c
@@ -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.");
}