Compare commits

...

9 Commits

Author SHA1 Message Date
fbdb61ccc4 Add gdb std pretty printers in Linux Mint 19 2021-01-19 10:41:18 +00:00
b988470185 Remove cgdb config 2020-02-11 20:45:27 +00:00
b0d3d25a8c Effectively disable gdb safe script blocking 2019-07-05 15:34:43 +01:00
b51ac00e81 Fix HOME and END key bindings 2019-05-22 10:52:25 +01:00
cecbcddd2b Enable gdb pretty printing for libstdc++
gdb 7.0 added support for python pretty printers, libstdc++ provides
python pretty printers but they are not loaded by default on LinuxMint
18. Load them but only for this distro as upstream Debian enables them
by default and loading them multiple times will throw an exception.
2018-11-07 11:53:45 +00:00
f60c762bc2 Allow loading .gdbinit in home directory 2018-11-01 12:33:38 +00:00
9ee8392390 Don't save gdb history 2018-10-23 16:31:09 +01:00
7937e2415a Add .gdbinit config 2018-10-23 14:14:04 +01:00
758714a357 Don't override standout only italic 2018-08-22 12:18:30 +01:00
6 changed files with 24 additions and 8 deletions

View File

@@ -6,4 +6,4 @@
- symlink: - symlink:
- {src: inputrc, dst: ~/.inputrc} - {src: inputrc, dst: ~/.inputrc}
- {src: editrc, dst: ~/.editrc} - {src: editrc, dst: ~/.editrc}
- {src: cgdbrc, dst: ~/.cgdb/cgdbrc} - {src: gdbinit, dst: ~/.gdbinit}

1
cgdbrc
View File

@@ -1 +0,0 @@
:set cgdbmodekey=<C-s>

17
gdbinit Normal file
View File

@@ -0,0 +1,17 @@
set print pretty on
set auto-load safe-path /
# Enable C++ std pretty printing in LinuxMint 18.X, 19.X
# https://sourceware.org/gdb/wiki/STLSupport
python
from platform import linux_distribution
from sys import path
distro = linux_distribution()
if 'LinuxMint' == distro[0] and '18' in distro[1]:
path.insert(0, '/usr/share/gcc-5/python')
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers(None)
if 'LinuxMint' == distro[0] and '19' in distro[1]:
path.insert(0, '/usr/share/gcc-8/python')
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers(None)
end

View File

@@ -1,4 +1,4 @@
screen-256color|xterm 256 colors italic bold, screen-256color|xterm 256 colors +italic,
sitm=\E[3m, ritm=\E[23m, sitm=\E[3m, ritm=\E[23m,
smso=\E[7m, rmso=\E[27m, khome=\E[1~, kend=\E[4~,
use=xterm-256color, use=xterm-256color,

View File

@@ -1,4 +1,4 @@
tmux-256color|xterm 256 italic bold, tmux-256color|xterm 256 color +italic,
sitm=\E[3m, ritm=\E[23m, sitm=\E[3m, ritm=\E[23m,
smso=\E[7m, rmso=\E[27m, khome=\E[1~, kend=\E[4~,
use=xterm-256color, use=xterm-256color,

View File

@@ -1,4 +1,4 @@
xterm-256color|xterm 256 colors italic bold, xterm-256color|xterm 256 colors +italic,
sitm=\E[3m, ritm=\E[23m, sitm=\E[3m, ritm=\E[23m,
smso=\E[7m, rmso=\E[27m, khome=\E[1~, kend=\E[4~,
use=xterm-256color, use=xterm-256color,