diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-20 07:14:46 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-19 12:51:06 -0700 |
commit | 56c0cd6158851c2f870374a9c2114810dabac70b (patch) | |
tree | 4977329763603af326aade6a2bf92f16beaf8ff8 /gdb/block.c | |
parent | 44bb9f9e7a7adc13f0b944ed76ddc459d5bb21f7 (diff) | |
download | gdb-56c0cd6158851c2f870374a9c2114810dabac70b.zip gdb-56c0cd6158851c2f870374a9c2114810dabac70b.tar.gz gdb-56c0cd6158851c2f870374a9c2114810dabac70b.tar.bz2 |
Have global_block inherit from block
This changes global_block to inherit from block, which is what was
always intended.
Diffstat (limited to 'gdb/block.c')
-rw-r--r-- | gdb/block.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/block.c b/gdb/block.c index 8f15cdf..1698ee5 100644 --- a/gdb/block.c +++ b/gdb/block.c @@ -397,9 +397,7 @@ allocate_block (struct obstack *obstack) struct block * allocate_global_block (struct obstack *obstack) { - struct global_block *bl = new (obstack) struct global_block; - - return &bl->block; + return new (obstack) struct global_block; } /* See block.h. */ |