summaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-20 07:16:34 -0700
committerTom Tromey <tom@tromey.com>2023-02-19 12:51:06 -0700
commit522553837be31e09d182a8974429650f68c108f3 (patch)
tree371897aff2fe715e03f4422227669bebf2d47481 /gdb/mdebugread.c
parent56c0cd6158851c2f870374a9c2114810dabac70b (diff)
downloadbinutils-gdb-522553837be31e09d182a8974429650f68c108f3.tar.gz
Remove allocate_block and allocate_global_block
This removes allocate_block and allocate_global_block in favor of simply calling 'new'.
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r--gdb/mdebugread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index 17038639fa8..793795c903a 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -4723,7 +4723,7 @@ static struct block *
new_block (struct objfile *objfile, enum block_type type,
enum language language)
{
- struct block *retval = allocate_block (&objfile->objfile_obstack);
+ struct block *retval = new (&objfile->objfile_obstack) block;
if (type == FUNCTION_BLOCK)
retval->set_multidict (mdict_create_linear_expandable (language));