GDB (xrefs)
|
Classes | |
class | DisableXMethod |
class | EnableXMethod |
class | InfoXMethod |
Functions | |
def | validate_xm_regexp (part_name, regexp) |
def | parse_xm_command_args (arg) |
def | get_global_method_matchers (locus_re, matcher_re) |
def | get_method_matchers_in_loci (loci, locus_re, matcher_re) |
def | print_xm_info (xm_dict, name_re) |
def | set_xm_status1 (xm_dict, name_re, status) |
def | set_xm_status (arg, status) |
def | register_xmethod_commands () |
def gdb.command.xmethods.get_global_method_matchers | ( | locus_re, | |
matcher_re | |||
) |
Returns a dict of matching globally registered xmethods. Arguments: locus_re: Even though only globally registered xmethods are looked up, they will be looked up only if 'global' matches LOCUS_RE. matcher_re: The regular expression matching the names of xmethods. Returns: A dict of matching globally registered xmethod matchers. The only key in the dict will be 'global'.
Definition at line 64 of file xmethods.py.
Referenced by gdb.command.xmethods.InfoXMethod.invoke(), and gdb.command.xmethods.set_xm_status().
def gdb.command.xmethods.get_method_matchers_in_loci | ( | loci, | |
locus_re, | |||
matcher_re | |||
) |
Returns a dict of matching registered xmethods in the LOCI. Arguments: loci: The list of loci to lookup matching xmethods in. locus_re: If a locus is an objfile, then xmethod matchers will be looked up in it only if its filename matches the regular expression LOCUS_RE. If a locus is the current progspace, then xmethod matchers will be looked up in it only if the string "progspace" matches LOCUS_RE. matcher_re: The regular expression to match the xmethod matcher names. Returns: A dict of matching xmethod matchers. The keys of the dict are the filenames of the loci the xmethod matchers belong to.
Definition at line 85 of file xmethods.py.
Referenced by gdb.command.xmethods.InfoXMethod.invoke(), and gdb.command.xmethods.set_xm_status().
def gdb.command.xmethods.parse_xm_command_args | ( | arg | ) |
Parses the arguments passed to a xmethod command. Arguments: arg: The argument string passed to a xmethod command. Returns: A 3-tuple: (<locus matching regular expression>, <matcher matching regular expression>, <name matching regular experession>)
Definition at line 30 of file xmethods.py.
References len, and gdb.command.xmethods.validate_xm_regexp().
Referenced by gdb.command.xmethods.InfoXMethod.invoke(), and gdb.command.xmethods.set_xm_status().
def gdb.command.xmethods.print_xm_info | ( | xm_dict, | |
name_re | |||
) |
Print a dictionary of xmethods.
Definition at line 118 of file xmethods.py.
Referenced by gdb.command.xmethods.InfoXMethod.invoke().
def gdb.command.xmethods.register_xmethod_commands | ( | ) |
Installs the xmethod commands.
Definition at line 267 of file xmethods.py.
Referenced by gdb.command.xmethods.DisableXMethod.invoke().
def gdb.command.xmethods.set_xm_status | ( | arg, | |
status | |||
) |
Set the status (enabled/disabled) of xmethods matching ARG. This is a helper function for enable/disable commands. ARG is the argument string passed to the commands.
Definition at line 158 of file xmethods.py.
References gdb.command.xmethods.get_global_method_matchers(), gdb.command.xmethods.get_method_matchers_in_loci(), gdb.command.xmethods.parse_xm_command_args(), and gdb.command.xmethods.set_xm_status1().
Referenced by gdb.command.xmethods.EnableXMethod.invoke(), and gdb.command.xmethods.DisableXMethod.invoke().
def gdb.command.xmethods.set_xm_status1 | ( | xm_dict, | |
name_re, | |||
status | |||
) |
Set the status (enabled/disabled) of a dictionary of xmethods.
Definition at line 141 of file xmethods.py.
Referenced by gdb.command.xmethods.set_xm_status().
def gdb.command.xmethods.validate_xm_regexp | ( | part_name, | |
regexp | |||
) |
Definition at line 23 of file xmethods.py.
Referenced by gdb.command.xmethods.parse_xm_command_args().