Skip to content

Commit

Permalink
add func range debugging support to merged version
Browse files Browse the repository at this point in the history
(cherry picked from commit a82ce16)
  • Loading branch information
jmellorcrummey authored and Sasha Nicolas committed Sep 12, 2017
1 parent 7c57413 commit d0a0e08
Show file tree
Hide file tree
Showing 2 changed files with 13 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
11 changes: 11 additions & 0 deletions symtabAPI/src/Symtab.C
Expand Up @@ -3536,3 +3536,14 @@ ModRangeLookup *Symtab::mod_lookup() {
return mod_lookup_;

}


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

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

0 comments on commit d0a0e08

Please sign in to comment.