https://github.com/daskol/gdb-colour-filter
Colourify backtrace output in GDB with Python API
https://github.com/daskol/gdb-colour-filter
backtrace gdb python python3
Last synced: 9 months ago
JSON representation
Colourify backtrace output in GDB with Python API
- Host: GitHub
- URL: https://github.com/daskol/gdb-colour-filter
- Owner: daskol
- License: mit
- Created: 2018-04-04T13:30:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-25T18:06:51.000Z (about 6 years ago)
- Last Synced: 2025-03-17T23:02:49.884Z (9 months ago)
- Topics: backtrace, gdb, python, python3
- Language: Python
- Size: 245 KB
- Stars: 37
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.

## 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
```bash
git clone https://github.com/daskol/gdb-colour-filter.git .gdb/gdb-colour-filter
```
or just download `could_filter.py` in the specified directory.
```bash
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.
```bash
source ~/.gdb/gdb-colour-filter/colour_filter.py
```
## Credits
© Daniel Bershatsky \<[daniel.bershatsky@skolkovotech.ru](mailto:daniel.bershatsky@skolkovotech.ru)\>, 2018