aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
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/cli
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/cli')
-rw-r--r--gdb/cli/cli-dump.c8
1 files changed, 3 insertions, 5 deletions
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.");
}