From: slack Date: Fri, 12 Sep 2008 01:55:58 +0000 (+0200) Subject: Added ignore command to the disassembler X-Git-Tag: v0.1~11 X-Git-Url: http://slack.codemaniacs.com/git/?a=commitdiff_plain;h=6dd6347f664e5ed0f54aac2e63f4ab0622d81857;p=wenboi.git Added ignore command to the disassembler --- diff --git a/wendi/wendi.cc b/wendi/wendi.cc index 421f27e..8145b40 100644 --- a/wendi/wendi.cc +++ b/wendi/wendi.cc @@ -26,6 +26,7 @@ typedef u16 address; list blocks; list pending; +list ignore; void classify_block(CodeBlock &b) @@ -319,6 +320,12 @@ int main(int argc, char **argv) config >> std::hex >> a; pending.push_back(CodeBlock(a)); } + else if (cmd == "ignore") + { + address a; + config >> std::hex >> a; + ignore.push_back(CodeBlock(a)); + } else if (cmd == "jump_table") { address start, end; @@ -354,6 +361,11 @@ int main(int argc, char **argv) pending.pop_front(); address addr = block.start; + if (find_block(ignore, addr) != ignore.end()) + { + logger.info("Ignoring block at 0x", std::hex, addr); + continue; + } logger.info("Starting disassembly of block 0x", std::hex, addr); bool block_end = false;