aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorGerion Entrup <gerion.entrup@flump.de>2019-10-02 14:51:02 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-10-04 01:10:07 +0300
commit7d01629580949a18960f79603fca1d0edb337aa1 (patch)
tree541fd27f5d2216722b03949ff46abf8413085c0b /docs/markdown/snippets
parent8d3fcb3dc4d7204a4646807f8b5191d79fb291e5 (diff)
downloadmeson-7d01629580949a18960f79603fca1d0edb337aa1.zip
meson-7d01629580949a18960f79603fca1d0edb337aa1.tar.gz
meson-7d01629580949a18960f79603fca1d0edb337aa1.tar.bz2
mtest: add gdb_path option
When using the '--gdb' argument of meson test the executed binary can now be specified with '--gdb-path'. Closing: #4373
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/add_gdb_path.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/markdown/snippets/add_gdb_path.md b/docs/markdown/snippets/add_gdb_path.md
new file mode 100644
index 0000000..873c3fc
--- /dev/null
+++ b/docs/markdown/snippets/add_gdb_path.md
@@ -0,0 +1,9 @@
+## The meson test program now accepts an additional "--gdb-path" argument to specify the GDB binary
+
+`meson test --gdb testname` invokes GDB with the specific test case. However, sometimes GDB is not in the path or a GDB replacement is wanted.
+Therefore, a `--gdb-path` argument was added to specify which binary is executed (per default `gdb`):
+
+```console
+$ meson test --gdb --gdb-path /my/special/location/for/gdb testname
+$ meson test --gdb --gdb-path cgdb testname
+```