summaryrefslogtreecommitdiffstats
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-08-01 20:40:59 +0000
committerFred Fish <fnf@specifix.com>1992-08-01 20:40:59 +0000
commitcd46ffad4ecefe7d91323f901882483e32ca2f71 (patch)
tree7d661519ce2f0653a828abba905ad23e8a86eb80 /gdb/objfiles.c
parent47660bef1bb8ae276331ca58cf0cabbbac214eca (diff)
downloadppe42-binutils-cd46ffad4ecefe7d91323f901882483e32ca2f71.tar.gz
ppe42-binutils-cd46ffad4ecefe7d91323f901882483e32ca2f71.zip
* dwarfread.c (struct dieinfo): Remove obsolete at_visibility,
at_import, at_frame_base. * dwarfread.c (completedieinfo): Remove cases for obsolete AT_visibility, AT_import, and AT_frame_base attributes. * breakpoint.h (BREAKPOINT_MAX): Increase from 10 to 16 for i860, which can keep up to 4 shadow breakpoints. * tm-stratus.h (USG): Define. * tm-stratus.h (TARGET_BYTE_ORDER): Define to BIG_ENDIAN. * xm-stratus.h (HOST_BYTE_ORDER): Define to BIG_ENDIAN. * xm-stratus.h (xm-sysv4.h): Include, name changed from xm-svr4.h. * xm-stratus.h (NO_JOB_CONTROL): Remove define. * config/stratus.mt (TDEPFILES): Include files available from stratus that are not yet in release pending receipt of paperwork at FSF. * buildsym.c (finish_block): Minor code format change. * gdbtypes.h (struct field): Add to comments. * gdbtypes.h (virtual_field_bits): Add to comments. * objfiles.c (allocate_objfile): Change obstack interface to match FSF merging efforts.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c28
1 files changed, 15 insertions, 13 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 5e22be95c9..4dae610bd5 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -126,15 +126,15 @@ allocate_objfile (abfd, mapped)
objfile -> mmfd = fd;
objfile -> flags |= OBJF_MAPPED;
mmalloc_setkey (objfile -> md, 0, objfile);
- obstack_alloc_arg (&objfile -> psymbol_obstack, objfile -> md);
- obstack_full_begin (&objfile -> psymbol_obstack, 0, 0, xmmalloc,
- mfree);
- obstack_alloc_arg (&objfile -> symbol_obstack, objfile -> md);
- obstack_full_begin (&objfile -> symbol_obstack, 0, 0, xmmalloc,
- mfree);
- obstack_alloc_arg (&objfile -> type_obstack, objfile -> md);
- obstack_full_begin (&objfile -> type_obstack, 0, 0, xmmalloc,
- mfree);
+ obstack_specify_allocation_with_arg (&objfile -> psymbol_obstack,
+ 0, 0, xmmalloc, mfree,
+ objfile -> md);
+ obstack_specify_allocation_with_arg (&objfile -> symbol_obstack,
+ 0, 0, xmmalloc, mfree,
+ objfile -> md);
+ obstack_specify_allocation_with_arg (&objfile -> type_obstack,
+ 0, 0, xmmalloc, mfree,
+ objfile -> md);
}
}
@@ -168,9 +168,12 @@ allocate_objfile (abfd, mapped)
objfile = (struct objfile *) xmalloc (sizeof (struct objfile));
memset (objfile, 0, sizeof (struct objfile));
objfile -> md = NULL;
- obstack_full_begin (&objfile -> psymbol_obstack, 0, 0, xmalloc, free);
- obstack_full_begin (&objfile -> symbol_obstack, 0, 0, xmalloc, free);
- obstack_full_begin (&objfile -> type_obstack, 0, 0, xmalloc, free);
+ obstack_specify_allocation (&objfile -> psymbol_obstack, 0, 0, xmalloc,
+ free);
+ obstack_specify_allocation (&objfile -> symbol_obstack, 0, 0, xmalloc,
+ free);
+ obstack_specify_allocation (&objfile -> type_obstack, 0, 0, xmalloc,
+ free);
}
/* Update the per-objfile information that comes from the bfd, ensuring
@@ -565,4 +568,3 @@ map_to_address ()
}
#endif /* !defined(NO_MMALLOC) && defined(HAVE_MMAP) */
-
OpenPOWER on IntegriCloud