about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2025-02-02 19:01:29 +0900
committerNguyễn Gia Phong <cnx@loang.net>2025-02-02 19:04:31 +0900
commite45e422b3e472ec2f8151d5e24312027843dd881 (patch)
tree41d787a288e1e0f5c5985f451f6f5e621cda2a02
parent2d914e1013b8a17e93024ec85834c3ed486a989a (diff)
downloadtaosc-e45e422b3e472ec2f8151d5e24312027843dd881.tar.gz
Permit detecting multiple functions per instuction
-rw-r--r--scout.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/scout.cc b/scout.cc
index 6c3ddb5..3ef6002 100644
--- a/scout.cc
+++ b/scout.cc
@@ -1,5 +1,5 @@
 // Patch's jump destinations searcher
-// Copyright (C) 2024  Nguyễn Gia Phong
+// Copyright (C) 2024-2025  Nguyễn Gia Phong
 //
 // This file is part of taosc.
 //
@@ -244,9 +244,9 @@ main (int argc, char** argv)
     }
   std::vector<Function*> functions;
   block->getFuncs (functions);
-  if (functions.size () != 1)
+  if (functions.size () < 1)
     {
-      std::cerr << "0 or multiple functions containing instruction found\n";
+      std::cerr << "found no function containing instruction\n";
       return -1;
     }
   for (auto* fun : functions)