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.
This commit is contained in:
parent
9f66665ac5
commit
de530e8403
@ -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".
|
||||
|
@ -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.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user