Skip to content

Colourify backtrace output in GDB with Python API

License

Notifications You must be signed in to change notification settings

daskol/gdb-colour-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GDB Colour Filter

colourify backtrace output in GDB with Python API

Overview

GDB Colour Filter implements frame filter for GDB Python API. There could be several chained filters. GDB calls this filter on each element(frame) of backtrace. All frame filter has a priority from the lowest (0) to the high. This filter is defined for the lowest priority so it is the last filter that is called before printing stack trace.

Colouring example

Installation

Installation is quite straight forward. It is needed only put color_filter.py in some directory and include it into your .gdbinit file. In order to do the first step one could clone whole repository

    git clone https://github.com/daskol/gdb-colour-filter.git .gdb/gdb-colour-filter

or just download could_filter.py in the specified directory.

    mkdir -p .gdb/gdb-colour-filter
    wget -O .gdb/gdb-colour-filter/colour_filter.py \
        https://raw.githubusercontent.com/daskol/gdb-colour-filter/master/colour_filter.py

After that colour_filter.py should be included in .gdbinit in following manner.

    source ~/.gdb/gdb-colour-filter/colour_filter.py

Credits

© Daniel Bershatsky <daniel.bershatsky@skolkovotech.ru>, 2018

About

Colourify backtrace output in GDB with Python API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages