We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2009c commit 46bd0f3Copy full SHA for 46bd0f3
dyninstAPI/wrapFunction.cpp
@@ -37,7 +37,7 @@ int main(int argc, char** argv) {
37
38
auto find_func = [appImage](std::string const& name) -> BPatch_function* {
39
std::vector<BPatch_function*> funcs;
40
- appImage->findFunction("", funcs);
+ appImage->findFunction(name.c_str(), funcs);
41
if(funcs.size() != 1) {
42
std::cerr << "Unable to find '" << name << "'\n";
43
return nullptr;
@@ -71,4 +71,6 @@ int main(int argc, char** argv) {
71
}
72
73
appBin->wrapFunction(original_malloc, fast_malloc, syms[0]);
74
+ std::string new_name = std::string(argv[1]) + ".rewr";
75
+ appBin->writeFile(new_name.c_str());
76
0 commit comments