From 56c0cd6158851c2f870374a9c2114810dabac70b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 20 Jan 2023 07:14:46 -0700 Subject: Have global_block inherit from block This changes global_block to inherit from block, which is what was always intended. --- gdb/block.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gdb/block.h') diff --git a/gdb/block.h b/gdb/block.h index 9a60140..3d71e7d 100644 --- a/gdb/block.h +++ b/gdb/block.h @@ -314,12 +314,8 @@ private: /* The global block is singled out so that we can provide a back-link to the compunit symtab. */ -struct global_block : public allocate_on_obstack +struct global_block : public block { - /* The block. */ - - struct block block; - /* This holds a pointer to the compunit symtab holding this block. */ struct compunit_symtab *compunit_symtab = nullptr; -- cgit v1.1