From a0b78f213cb1c1e00a40ae28c4e51ae3184a9345 Mon Sep 17 00:00:00 2001 From: Elliot Nunn Date: Wed, 20 Mar 2019 23:57:06 +0800 Subject: [PATCH] Allow force-override of signatures --- search_call_sigs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/search_call_sigs.py b/search_call_sigs.py index b3361d2..2923770 100755 --- a/search_call_sigs.py +++ b/search_call_sigs.py @@ -16,6 +16,7 @@ parser = argparse.ArgumentParser(description=''' parser.add_argument('src', action='store', help='Source file') parser.add_argument('-o', nargs='?', action='store', help='Listing file to update') +parser.add_argument('-f', action='store_true', help='Force override listing file') args = parser.parse_args() @@ -64,6 +65,7 @@ for i in range(len(binary) - len(MOTIF)): line[1] = str(nargs) elif line[1] != str(nargs): print('...WARNING: the listing file says %s' % line[1]) + if args.f: line[1] = str(nargs) break else: lines.append([selector, str(nargs), '???'])