Skip to content

lubgr/hlgdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Highlight source code in GDB

Syntax highlighting for gdb with a python extension that uses pygments. This affects the commands list, next and step and is achieved by overriding their shortcuts l, n and s (thus, the default behavior is retained by invoking the full command).

Requirements

  • the pygments package for python
  • gdb version 7.6* or higher

Installation

Simple as that:

  • download the script and store it where you like
  • invoke it from your .gdbinit via source path/to/the/script

Languages

Currently, only C is supported, but it's easy to add new languages by modifying the script. Check out lexer types supported by pygments here.

Color scheme

The color scheme is adjustable, see the pygments docs on the choice of styles or the creation of custom schemes.

About

Highlight source code in gdb

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages