Coder Social home page Coder Social logo

boost-gdb-pretty-printers's Introduction

GDB Pretty-Printers for the Boost Library

This repository is an extension to David Matei's and Ruediger Sonderfeld's work by including also a pretty printer for Boost's ublas vectors (boost::numeric::ublas::vector). The respective code can be found at the end of the printer.py file in the /boost folder.

For simplicity I've also included the libstdc++-v3 pretty printers for the STL objects in the /libstdcxx folder (taken from here)

A minimal example is also attached in the /example folder.

Installation

To install clone or download the content of this repository. Then add the following lines to your /.gdbinit file

python
import sys 
sys.path.insert(0, 'PATH_TO_REPOSITORY')
from libstdcxx.v6.printers import register_libstdcxx_printers
import boost.latest ### see note on Entry Points below
register_libstdcxx_printers (None)
boost.register_printers()
end

where PATH_TO_REPOSITORY is the absolute path to the files contained in this repository. If no .gdbinit file exists just create it. For simplicity I've included my own .gdbinit file, where the files of this repository are stored at '/home/lindorfer/gdb_printers/python'.

Example

Debug

boost-gdb-pretty-printers's People

Contributors

dominiklindorfer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

boost-gdb-pretty-printers's Issues

ImportError: No module named 'libstdcxx'

Hi,
I had done setup step by step, but start gdb, i got this error :

Traceback (most recent call last):
File "", line 3, in
ImportError: No module named 'libstdcxx'
/root/.gdbinit:703: Error in sourced command file:
Error while executing Python code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.