From 30cdb2a28077d9a0364b9ef6b231927c52436a6b Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 23 Feb 2022 08:17:08 -0500 Subject: devenv: Setup GDB auto-load scripts When the project instals GDB helper scripts, copy them into meson-private directory with the right tree layout and write a .gdbinit script to load them automatically. --- docs/markdown/snippets/devenv.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/devenv.md b/docs/markdown/snippets/devenv.md index 19a272c..1c401c1 100644 --- a/docs/markdown/snippets/devenv.md +++ b/docs/markdown/snippets/devenv.md @@ -8,3 +8,11 @@ and [`python.extension_module()`](Python-module.md#extension_module). If bash-completion scripts are being installed and the shell is bash, they will be automatically sourced. + +## Setup GDB auto-load for `meson devenv` + +When GDB helper scripts (*-gdb.py, *-gdb.gdb, and *-gdb.csm) are installed with +a library name that matches one being built, Meson adds the needed auto-load +commands into `/.gdbinit` file. When running gdb from top build +directory, that file is loaded by gdb automatically. + -- cgit v1.1