Python gdb.COMMAND_DATA Examples

The following are 18 code examples of gdb.COMMAND_DATA(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module gdb , or try the search function .
Example #1
Source File: python-gdb.py    From copr-sundry with Apache License 2.0 5 votes vote down vote up
def __init__(self):
        gdb.Command.__init__ (self,
                              "py-print",
                              gdb.COMMAND_DATA,
                              gdb.COMPLETE_NONE) 
Example #2
Source File: gdb_tools.py    From bootloader_instrumentation_suite with MIT License 5 votes vote down vote up
def __init__(self, name, controller, root=False):
        self.name = name
        self.root = root
        self.controller = controller
        gdb.Command.__init__(self, name, gdb.COMMAND_DATA) 
Example #3
Source File: commands.py    From angrgdb with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def __init__(self):
        super(
            AngrGDBRunCommand,
            self).__init__(
            "angrgdb run",
            gdb.COMMAND_DATA) 
Example #4
Source File: commands.py    From angrgdb with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def __init__(self):
        super(
            AngrGDBAvoidCommand,
            self).__init__(
            "angrgdb avoid",
            gdb.COMMAND_DATA) 
Example #5
Source File: commands.py    From angrgdb with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def __init__(self):
        super(
            AngrGDBFindCommand,
            self).__init__(
            "angrgdb find",
            gdb.COMMAND_DATA) 
Example #6
Source File: commands.py    From angrgdb with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def __init__(self):
        super(
            AngrGDBListCommand,
            self).__init__(
            "angrgdb list",
            gdb.COMMAND_DATA) 
Example #7
Source File: commands.py    From angrgdb with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def __init__(self):
        super(
            AngrGDBSimCommand,
            self).__init__(
            "angrgdb sim",
            gdb.COMMAND_DATA) 
Example #8
Source File: disassembly.py    From gxf with MIT License 5 votes vote down vote up
def __init__(self):
        self.message = gxf.execute("show disassembly-flavor").strip()
        value = gdb.parameter("disassembly-flavor")
        super().__init__(
            "disassembly-flavor", gdb.COMMAND_DATA, gdb.PARAM_ENUM, [value])
        self.value = value 
Example #9
Source File: python-gdb.py    From copr-sundry with Apache License 2.0 5 votes vote down vote up
def __init__(self):
        gdb.Command.__init__ (self,
                              "py-locals",
                              gdb.COMMAND_DATA,
                              gdb.COMPLETE_NONE) 
Example #10
Source File: vgleaks.py    From gdb_python_api with MIT License 5 votes vote down vote up
def __init__ (self):
        super (PrintPtrLoop, self).__init__ ("ppl", gdb.COMMAND_DATA) 
Example #11
Source File: python-gdb.py    From copr-sundry with Apache License 2.0 5 votes vote down vote up
def __init__(self):
        gdb.Command.__init__ (self,
                              "py-locals",
                              gdb.COMMAND_DATA,
                              gdb.COMPLETE_NONE) 
Example #12
Source File: python-gdb.py    From copr-sundry with Apache License 2.0 5 votes vote down vote up
def __init__(self):
        gdb.Command.__init__ (self,
                              "py-print",
                              gdb.COMMAND_DATA,
                              gdb.COMPLETE_NONE) 
Example #13
Source File: pretty_printers.py    From BinderFilter with MIT License 5 votes vote down vote up
def __init__(self):
        super(DisablePrettyPrinter, self).__init__("disable pretty-printer",
                                                   gdb.COMMAND_DATA) 
Example #14
Source File: pretty_printers.py    From BinderFilter with MIT License 5 votes vote down vote up
def __init__(self):
        super(EnablePrettyPrinter, self).__init__("enable pretty-printer",
                                                   gdb.COMMAND_DATA) 
Example #15
Source File: pretty_printers.py    From BinderFilter with MIT License 5 votes vote down vote up
def __init__ (self):
        super(InfoPrettyPrinter, self).__init__("info pretty-printer",
                                                 gdb.COMMAND_DATA) 
Example #16
Source File: libpython.py    From pyringe with Apache License 2.0 5 votes vote down vote up
def __init__(self):
        gdb.Command.__init__ (self,
                              "py-locals",
                              gdb.COMMAND_DATA,
                              gdb.COMPLETE_NONE) 
Example #17
Source File: libpython.py    From pyringe with Apache License 2.0 5 votes vote down vote up
def __init__(self):
        gdb.Command.__init__ (self,
                              "py-print",
                              gdb.COMMAND_DATA,
                              gdb.COMPLETE_NONE) 
Example #18
Source File: vgleaks.py    From gdb_python_api with MIT License 5 votes vote down vote up
def __init__(self):
        super(PtrLoopBacktrace, self).__init__("ppl-backtrace",
                                               gdb.COMMAND_DATA,
                                               gdb.PARAM_BOOLEAN)
        PtrLoopBacktrace.printBacktrace = False