Skip to content
A module to interact with GDB debugger
Python C Makefile
Latest commit 5b8f132 Mar 12, 2016 @skibyte Fixed version 0.5.1
Signed-off-by: Fernando Castillo <skibyte@gmail.com>
Failed to load latest commit information.
gdblib Fixed README.md Mar 12, 2016
.gitignore Added standard output support Jun 14, 2012
.travis.yml Fixed return code for tests Jun 16, 2012
COPYING first commit May 10, 2012
INSTALL Updated python version Jun 16, 2012
README.md Fixed README.md Mar 13, 2016
setup.py Fixed version 0.5.1 Mar 12, 2016

README.md

Gdb lib

Gdb lib is a python library aimed to work as a simple interface for gdb.

Contact

Author: Fernando Castillo skibyte@gmail.com

Installation

See INSTALL file for details

Usage

    import os
    from gdblib.gdb import GDB

    def main():
        test_application = 'gdblib' + os.sep + 'testapplication' + os.sep + 'app'
        test_application_arguments = ''
        gdb = GDB()
        listener = Listener()
        gdb.connectApp(test_application)
        gdb.addBreakpoint('main.c', 20)
        breakpoints = gdb.getBreakpoints()
        gdb.addNewFileLocationListener(listener)
        gdb.run(test_application_arguments)
        gdb.step()
        gdb.next()
        gdb.deleteBreakpoint(1)
        gdb.disconnect()

    class Listener():
        def newFileLocation(self, newFileStr, newLine):
            print newFileStr + ':' + str(newLine)

    if __name__== 'main':
        main()

Todo

  • Add attach process support
  • Add core support
  • Implement more gdb commands
  • Any good suggestion you have

License

Gdb lib is licenced under a LGPL v3 license. Please see COPYING file for details.

Report a bug

If you find a bug in gdblib please let me know in the following page: https://github.com/skibyte/gdblib/issues

Something went wrong with that request. Please try again.