diff options
author | Alan Modra <amodra@gmail.com> | 2014-11-04 19:25:34 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-11-05 16:38:02 +1030 |
commit | ee11262d06cc6af9d900b44cb4d9af29050b375f (patch) | |
tree | 8758165a389106e2ff2b620b91c3c3028d46365e /gdb/minsyms.c | |
parent | 336649dc254ec4f62562e345dc928d8ec0bdf5ad (diff) | |
download | gdb-ee11262d06cc6af9d900b44cb4d9af29050b375f.zip gdb-ee11262d06cc6af9d900b44cb4d9af29050b375f.tar.gz gdb-ee11262d06cc6af9d900b44cb4d9af29050b375f.tar.bz2 |
Use obstack_blank_fast to shrink obstacks
obstack_blank isn't the correct macro to call for shrinking obstacks
since it does size checking.
* charset.c (convert_between_encodings): Shrink obstack using
obstack_blank_fast.
* minsyms.c (install_minimal_symbols): Likewise.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r-- | gdb/minsyms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c index 8eb7c85..2463be4 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -1270,7 +1270,7 @@ install_minimal_symbols (struct objfile *objfile) mcount = compact_minimal_symbols (msymbols, mcount, objfile); - obstack_blank (&objfile->per_bfd->storage_obstack, + obstack_blank_fast (&objfile->per_bfd->storage_obstack, (mcount + 1 - alloc_count) * sizeof (struct minimal_symbol)); msymbols = (struct minimal_symbol *) obstack_finish (&objfile->per_bfd->storage_obstack); |