aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-04-09 06:09:33 +0000
committerFred Fish <fnf@specifix.com>1996-04-09 06:09:33 +0000
commit5579919f7d343f9118d42f1c443daf74996983e3 (patch)
tree85961b21fecd451170a5d90a3476fa15ccd43465 /gdb/objfiles.c
parent50d45d1b2f621f026868e9802e181bebe28e10b7 (diff)
downloadgdb-5579919f7d343f9118d42f1c443daf74996983e3.zip
gdb-5579919f7d343f9118d42f1c443daf74996983e3.tar.gz
gdb-5579919f7d343f9118d42f1c443daf74996983e3.tar.bz2
* Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
dependencies. * scm-lang.c (gdb_string.h): Include. * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow call to correct type (char *). * cp-valprint.c (cp_print_static_field): Ditto. * somsolib.c (som_solib_create_inferior_hook): Add a declaration for external find_unwind_entry function (from hppa-tdep.c). * remote-pa.c (remote_write_bytes, remote_read_bytes): Change type of second arg to "char *" to be type compatible with dcache. (remote_wait): Cast second arg to strtol to correct type. * hppa-tdep.c (compare_unwind_entries): Change argument types to "const void *" to be type compatible with qsort, and then assign to local args prior to use.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index ed9f1cf..97b05dc 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -84,7 +84,7 @@ add_to_objfile_sections (abfd, asect, objfile_p_char)
section.the_bfd_section = asect;
section.addr = bfd_section_vma (abfd, asect);
section.endaddr = section.addr + bfd_section_size (abfd, asect);
- obstack_grow (&objfile->psymbol_obstack, &section, sizeof(section));
+ obstack_grow (&objfile->psymbol_obstack, (char *) &section, sizeof(section));
objfile->sections_end = (struct obj_section *) (((unsigned long) objfile->sections_end) + 1);
}