()
| 212 | return [i[::-1] for i in lines] |
| 213 | |
| 214 | def generate_option_parser(): |
| 215 | usage = "usage: %prog [options] TODO Description Here :]" |
| 216 | parser = optparse.OptionParser(usage=usage, prog="disassemble") |
| 217 | parser.add_option("-m", "--memory", |
| 218 | action="store_true", |
| 219 | default=False, |
| 220 | dest="memory", |
| 221 | help="Shows the memory at this address") |
| 222 | |
| 223 | parser.add_option("-b", "--show_branch", |
| 224 | action="store_true", |
| 225 | default=False, |
| 226 | dest="show_branch", |
| 227 | help="Show the branches within the function") |
| 228 | |
| 229 | parser.add_option("-s", "--search_functions", |
| 230 | action="store", |
| 231 | default=None, |
| 232 | dest="search_functions", |
| 233 | help="Do a regex search for functions") |
| 234 | |
| 235 | parser.add_option("-g", "--grep_functions", |
| 236 | action="store", |
| 237 | default=None, |
| 238 | dest="grep_functions", |
| 239 | help="grep for comments in assembly, ideal w/ search_functions options") |
| 240 | return parser |
| 241 |
no outgoing calls
no test coverage detected
searching dependent graphs…