summaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2002-05-24 01:25:52 +0000
committerMichael Snyder <msnyder@specifix.com>2002-05-24 01:25:52 +0000
commita75e3bfb424c9e9b71738d5bc7a05b55cb5b8605 (patch)
tree036c65584854337034d99992c0d3c51cc4e9fb0c /gdb/cli
parente427f6c25cb5fb16a0cbad4d207a49a97c0b3209 (diff)
downloadgdb-a75e3bfb424c9e9b71738d5bc7a05b55cb5b8605.tar.gz
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 1edcfe26d1b..36c1d2db2be 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.");
}