MCPcopy
hub / github.com/DerekSelander/LLDB / generate_option_parser

Function generate_option_parser

lldb_commands/disassemble.py:214–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212 return [i[::-1] for i in lines]
213
214def 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

Callers 1

handle_commandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…