Skip to content

Commit

Permalink
Merge branch 'PR667' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Oct 16, 2019
2 parents e918b83 + e005fc4 commit e18f430
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dyninstAPI/h/BPatch_process.h
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@ class BPATCH_DLL_EXPORT BPatch_process : public BPatch_addressSpace {

virtual BPatch_object * loadLibrary(const char *libname, bool reload = false);

bool supportsUserThreadEvents();

};

#endif /* BPatch_process_h_ */
6 changes: 6 additions & 0 deletions dyninstAPI/src/BPatch_process.C
Original file line number Diff line number Diff line change
Expand Up @@ -1754,3 +1754,9 @@ bool BPatch_process::protectAnalyzedCode()
}
return ret;
}


bool BPatch_process::supportsUserThreadEvents() {
if (llproc == NULL) return false;
return llproc->supportsUserThreadEvents();
}
4 changes: 4 additions & 0 deletions dyninstAPI/src/dynProcess.C
Original file line number Diff line number Diff line change
Expand Up @@ -3269,6 +3269,10 @@ void PCProcess::invalidateMTCache() {
mt_cache_result_ = not_cached;
}

bool PCProcess::supportsUserThreadEvents() {
if (!pcProc_) return false;
return pcProc_->supportsUserThreadEvents();
}

StackwalkSymLookup::StackwalkSymLookup(PCProcess *p)
: proc_(p)
Expand Down
1 change: 1 addition & 0 deletions dyninstAPI/src/dynProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ class PCProcess : public AddressSpace {
Address,
func_instance *,
Address);
bool supportsUserThreadEvents();

protected:
typedef enum {
Expand Down

0 comments on commit e18f430

Please sign in to comment.