gdb: remove symtab::blockvector
symtab::blockvector is a wrapper around compunit_symtab::blockvector. It is a bit misleadnig, as it gives the impression that a symtab has a blockvector. Remove it, change all users to fetch the blockvector through the compunit instead. Change-Id: Ibd062cd7926112a60d52899dff9224591cbdeebf
This commit is contained in:
parent
e473032828
commit
44281e6c08
14 changed files with 33 additions and 36 deletions
|
@ -181,7 +181,7 @@ stpy_global_block (PyObject *self, PyObject *args)
|
|||
|
||||
STPY_REQUIRE_VALID (self, symtab);
|
||||
|
||||
blockvector = symtab->blockvector ();
|
||||
blockvector = symtab->compunit ()->blockvector ();
|
||||
block = BLOCKVECTOR_BLOCK (blockvector, GLOBAL_BLOCK);
|
||||
return block_to_block_object (block, symtab->objfile ());
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ stpy_static_block (PyObject *self, PyObject *args)
|
|||
|
||||
STPY_REQUIRE_VALID (self, symtab);
|
||||
|
||||
blockvector = symtab->blockvector ();
|
||||
blockvector = symtab->compunit ()->blockvector ();
|
||||
block = BLOCKVECTOR_BLOCK (blockvector, STATIC_BLOCK);
|
||||
return block_to_block_object (block, symtab->objfile ());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue