diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-06-22 18:32:49 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-06-22 18:32:49 +0000 |
commit | ae822768f95e54d76823eff769e87bb438fdf4d3 (patch) | |
tree | 91ca4dd4f03e271baf164fe29ceaad77452b31a7 /gdb/symfile.c | |
parent | 2f816dda058ffc471cad62e158671418c247bef0 (diff) | |
download | gdb-ae822768f95e54d76823eff769e87bb438fdf4d3.zip gdb-ae822768f95e54d76823eff769e87bb438fdf4d3.tar.gz gdb-ae822768f95e54d76823eff769e87bb438fdf4d3.tar.bz2 |
* symfile.c (add_symbol_file_command): Use parse_and_eval_address.
Suggested by Nick Hibma <n_hibma@webweaving.org>.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 6eee61a..3b7ebc2 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -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. */ |