Skip to content

Commit

Permalink
add debugging support to Symtab interface
Browse files Browse the repository at this point in the history
use new IBSTree dumping functionality to dump function and
module ranges.
  • Loading branch information
jmellorcrummey authored and Sasha Nicolas committed Jul 24, 2018
1 parent 0104847 commit 7bd6f50
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions symtabAPI/h/Symtab.h
Expand Up @@ -604,6 +604,8 @@ class SYMTAB_EXPORT Symtab : public LookupInterface,
Object *getObject();
const Object *getObject() const;
ModRangeLookup* mod_lookup();
void dumpModRanges();
void dumpFuncRanges();

private:
Object *obj_private;
Expand Down
13 changes: 13 additions & 0 deletions symtabAPI/src/Symtab.C
Expand Up @@ -3536,3 +3536,16 @@ ModRangeLookup *Symtab::mod_lookup() {
return mod_lookup_;

}


void Symtab::dumpModRanges() {
if (mod_lookup_) {
mod_lookup_->PrintPreorder();
}
}

void Symtab::dumpFuncRanges() {
if (func_lookup) {
func_lookup->PrintPreorder();
}
}

0 comments on commit 7bd6f50

Please sign in to comment.