forked from Imagelibrary/binutils-gdb
* symfile.c (add_symbol_file_command): Use parse_and_eval_address.
Suggested by Nick Hibma <n_hibma@webweaving.org>.
This commit is contained in:
@@ -1807,11 +1807,7 @@ add_symbol_file_command (char *args, int from_tty)
|
||||
char *val = sect_opts[i].value;
|
||||
char *sec = sect_opts[i].name;
|
||||
|
||||
val = sect_opts[i].value;
|
||||
if (val[0] == '0' && val[1] == 'x')
|
||||
addr = strtoul (val+2, NULL, 16);
|
||||
else
|
||||
addr = strtoul (val, NULL, 10);
|
||||
addr = parse_and_eval_address (val);
|
||||
|
||||
/* Here we store the section offsets in the order they were
|
||||
entered on the command line. */
|
||||
|
||||
Reference in New Issue
Block a user