aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-04-23 19:31:51 +0000
committerJason Molenda <jmolenda@apple.com>1998-04-23 19:31:51 +0000
commit74d6ac44dec6ac521772bc13c5c789c3d97ec19f (patch)
tree9ce223b134adb81b0fca1380d8f098128e2ba976 /gdb/stabsread.c
parentcc33746dfc057f72ffc55bf5a06929fe01935b04 (diff)
downloadgdb-74d6ac44dec6ac521772bc13c5c789c3d97ec19f.zip
gdb-74d6ac44dec6ac521772bc13c5c789c3d97ec19f.tar.gz
gdb-74d6ac44dec6ac521772bc13c5c789c3d97ec19f.tar.bz2
Thu Apr 23 12:27:43 1998 Philippe De Muyter <phdm@macqel.be>
* symfile.c (simple_overlay_update_1): Do not prefix array address by `&'. * bcache.h (BCACHE_DATA_ALIGNMENT): Ditto. * tracepoint.c (encode_actions): Ditto. * language.c, complaints.c, utils.c (varargs.h): Do not include that file here, it is already included indirectly by defs.h. * dbxread.c (dbx_symfile_init, process_one_symbol): Cast xmalloc return value to the appropriate pointer type. * utils.c (floatformat_from_doublest): Ditto. * tracepoint.c (read_actions, _initialize_tracepoint): Ditto. (add_memrange): Likewise with xrealloc return value. * stabsread.c (ref_add): Ditto. * coffread.c (coff_symfile_init): Likewise for xmmalloc return value. * elfread.c (elf_symfile_read): Ditto. * os9kread.c (os9k_symfile_init): Ditto.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index bfbcc01..ba1f6f4 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -1194,7 +1194,8 @@ ref_add (refnum, sym, stabs, value)
{
int new_slots = ref_count - ref_chunk * MAX_CHUNK_REFS;
int new_chunks = new_slots / MAX_CHUNK_REFS + 1;
- ref_map = xrealloc (ref_map, REF_MAP_SIZE(ref_chunk + new_chunks));
+ ref_map = (struct ref_map_s *)
+ xrealloc (ref_map, REF_MAP_SIZE(ref_chunk + new_chunks));
if (!ref_map)
error ("no more free slots in chain\n");
memset (ref_map + REF_MAP_SIZE(ref_chunk), 0, new_chunks * REF_CHUNK_SIZE);