Python gdb.Command() Examples

The following are 30 code examples of gdb.Command(). 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: unropandroll.py    From ROPMEMU with GNU Lesser General Public License v2.1 5 votes vote down vote up
def __init__(self):
        gdb.Command.__init__(self, "unrop", gdb.COMMAND_OBSCURE)
        self.long_int = gdb.lookup_type('unsigned long long')
        self.hw_context = OrderedDict() 
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: strongdb.py    From strongdb with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
        gdb.Command.__init__(self, 'solib', gdb.COMMAND_RUNNING) 
Example #4
Source File: strongdb.py    From strongdb with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
        gdb.Command.__init__(self, 'set jnienv', gdb.COMMAND_NONE) 
Example #5
Source File: strongdb.py    From strongdb with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
            gdb.Command.__init__(self, 'color list', gdb.COMMAND_USER) 
Example #6
Source File: strongdb.py    From strongdb with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
            gdb.Command.__init__(self, 'color code', gdb.COMMAND_USER) 
Example #7
Source File: strongdb.py    From strongdb with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
            gdb.Command.__init__(self, 'color stack-data', gdb.COMMAND_USER) 
Example #8
Source File: strongdb.py    From strongdb with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
            gdb.Command.__init__(self, 'color address', gdb.COMMAND_USER) 
Example #9
Source File: strongdb.py    From strongdb with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
            gdb.Command.__init__(self, 'color reg-value-highlight', gdb.COMMAND_USER) 
Example #10
Source File: strongdb.py    From strongdb with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
            gdb.Command.__init__(self, 'color reg-value', gdb.COMMAND_USER) 
Example #11
Source File: strongdb.py    From strongdb with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
            gdb.Command.__init__(self, 'color border', gdb.COMMAND_USER) 
Example #12
Source File: strongdb.py    From strongdb with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
        gdb.Command.__init__(self, 'color', gdb.COMMAND_USER, prefix=True)
        self.init_subcommands() 
Example #13
Source File: strongdb.py    From strongdb with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
            gdb.Command.__init__(self, 'vmmap -f', gdb.COMMAND_NONE) 
Example #14
Source File: strongdb.py    From strongdb with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self):
        gdb.Command.__init__(self, 'vmmap', gdb.COMMAND_RUNNING, prefix=True)
        self.init_subcommands() 
Example #15
Source File: strongdb.py    From strongdb with GNU General Public License v3.0 5 votes vote down vote up
def init_commands(self):
        for cmd in globals().values():
            try:
                if issubclass(cmd, gdb.Command):
                    cmd()
            except TypeError:
                pass 
Example #16
Source File: spmonitor.py    From ROPMEMU with GNU Lesser General Public License v2.1 5 votes vote down vote up
def __init__(self):
        gdb.Command.__init__(self, "spmonitor", gdb.COMMAND_OBSCURE)
        self.long_int = gdb.lookup_type('unsigned long long') 
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-list",
                              gdb.COMMAND_FILES,
                              gdb.COMPLETE_NONE) 
Example #18
Source File: boundary.py    From ROPMEMU with GNU Lesser General Public License v2.1 5 votes vote down vote up
def __init__(self):
        gdb.Command.__init__(self, "boundary", gdb.COMMAND_OBSCURE)
        self.long_int = gdb.lookup_type('unsigned long long')
        self.THRESHOLD = 0x1000 
Example #19
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 #20
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-bt",
                              gdb.COMMAND_STACK,
                              gdb.COMPLETE_NONE) 
Example #21
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-down",
                              gdb.COMMAND_STACK,
                              gdb.COMPLETE_NONE) 
Example #22
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-up",
                              gdb.COMMAND_STACK,
                              gdb.COMPLETE_NONE) 
Example #23
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-list",
                              gdb.COMMAND_FILES,
                              gdb.COMPLETE_NONE) 
Example #24
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 #25
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-bt",
                              gdb.COMMAND_STACK,
                              gdb.COMPLETE_NONE) 
Example #26
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-down",
                              gdb.COMMAND_STACK,
                              gdb.COMPLETE_NONE) 
Example #27
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-up",
                              gdb.COMMAND_STACK,
                              gdb.COMPLETE_NONE) 
Example #28
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-list",
                              gdb.COMMAND_FILES,
                              gdb.COMPLETE_NONE) 
Example #29
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 #30
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-bt",
                              gdb.COMMAND_STACK,
                              gdb.COMPLETE_NONE)