diff options
Diffstat (limited to 'gdb/block.c')
-rw-r--r-- | gdb/block.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/block.c b/gdb/block.c index c0d6ed7..3cd90dc 100644 --- a/gdb/block.c +++ b/gdb/block.c @@ -404,15 +404,15 @@ allocate_global_block (struct obstack *obstack) return &bl->block; } -/* Set the compunit of the global block. */ +/* See block.h. */ void -set_block_compunit_symtab (struct block *block, struct compunit_symtab *cu) +block::set_compunit_symtab (struct compunit_symtab *cu) { struct global_block *gb; - gdb_assert (block->superblock () == NULL); - gb = (struct global_block *) block; + gdb_assert (superblock () == NULL); + gb = (struct global_block *) this; gdb_assert (gb->compunit_symtab == NULL); gb->compunit_symtab = cu; } |