From ccd87bf2b473f1e30c71f8d354171c5c7661c6df Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Tue, 13 Apr 1993 15:31:29 +0000 Subject: [PATCH] * objfiles.c (build_objfile_section_table): Cast return value from obstack_finish. --- gdb/ChangeLog | 5 +++++ gdb/objfiles.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8fe721bf437..c477142bb27 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 13 08:28:26 1993 Jim Kingdon (kingdon@cygnus.com) + + * objfiles.c (build_objfile_section_table): Cast return value + from obstack_finish. + Mon Apr 12 10:53:50 1993 Jim Kingdon (kingdon@cygnus.com) * config/rs6000/tm-rs6000.h, rs6000-tdep.c: Move FRAME_CHAIN diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 541941a1d50..94b5f57acb6 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -100,7 +100,8 @@ build_objfile_section_table (objfile) objfile->sections_end = 0; bfd_map_over_sections (objfile->obfd, add_to_objfile_sections, (char *)objfile); - objfile->sections = obstack_finish (&objfile->psymbol_obstack); + objfile->sections = (struct obj_section *) + obstack_finish (&objfile->psymbol_obstack); objfile->sections_end = objfile->sections + (int) objfile->sections_end; return(0); }