diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-20 07:16:34 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-19 12:51:06 -0700 |
commit | 522553837be31e09d182a8974429650f68c108f3 (patch) | |
tree | 371897aff2fe715e03f4422227669bebf2d47481 /gdb/mdebugread.c | |
parent | 56c0cd6158851c2f870374a9c2114810dabac70b (diff) | |
download | gdb-522553837be31e09d182a8974429650f68c108f3.zip gdb-522553837be31e09d182a8974429650f68c108f3.tar.gz gdb-522553837be31e09d182a8974429650f68c108f3.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 1703863..793795c 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)); |