Skip to content

Commit

Permalink
fix no-python build
Browse files Browse the repository at this point in the history
  • Loading branch information
peadar committed May 8, 2024
1 parent aa9fa73 commit 9e93ce0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions canal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ mainExcept(int argc, char *argv[])
AddressRanges searchaddrs;
std::string findstr;
int symOffset = -1;
#ifdef WITH_PYTHON
bool doPython = false;
#endif

Flags flags;

Expand Down Expand Up @@ -323,11 +325,13 @@ mainExcept(int argc, char *argv[])

auto process = Procman::Process::load(exec, argv[optind], PstackOptions(), imageCache);

#ifdef WITH_PYTHON
PyInterpInfo info;
if (doPython) {
info = getPyInterpInfo(*process);
py = make_unique<PythonPrinter<3>>(*process, std::cout, info);
}
#endif
if (searchaddrs.size()) {
std::clog << "finding references to " << dec << searchaddrs.size() << " addresses\n";
for (auto &addr : searchaddrs)
Expand Down

0 comments on commit 9e93ce0

Please sign in to comment.