aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2013-02-19 18:31:49 +0000
committerKai Tietz <kai.tietz@onevision.com>2013-02-19 18:31:49 +0000
commitf698ca8e12472fe919b1ab2b81961b9771d3cd70 (patch)
tree4f361fadef67c61fcbfbc184e733e10cd89be433 /gdb/symfile.c
parent3361b059eb46d2dfd9ed9119935faf3516c5e997 (diff)
downloadfsf-binutils-gdb-f698ca8e12472fe919b1ab2b81961b9771d3cd70.zip
fsf-binutils-gdb-f698ca8e12472fe919b1ab2b81961b9771d3cd70.tar.gz
fsf-binutils-gdb-f698ca8e12472fe919b1ab2b81961b9771d3cd70.tar.bz2
PR gdb/15161
* symfile.c (load_section_data): Change type of load_offset to CORE_ADDR. (generic_load): User strtoulst instead of strtoul for conversion of load_offset.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 6f968b7..22a7970 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1948,7 +1948,7 @@ add_section_size_callback (bfd *abfd, asection *asec, void *data)
/* Opaque data for load_section_callback. */
struct load_section_data {
- unsigned long load_offset;
+ CORE_ADDR load_offset;
struct load_progress_data *progress_data;
VEC(memory_write_request_s) *requests;
};
@@ -2126,9 +2126,9 @@ generic_load (char *args, int from_tty)
if (argv[1] != NULL)
{
- char *endptr;
+ const char *endptr;
- cbdata.load_offset = strtoul (argv[1], &endptr, 0);
+ cbdata.load_offset = strtoulst (argv[1], &endptr, 0);
/* If the last word was not a valid number then
treat it as a file name with spaces in. */