[LTP] [PATCH 1/1] README: Document gdb debugging

Petr Vorel pvorel@suse.cz
Thu Oct 12 11:42:54 CEST 2023


From: Petr Vorel <petr.vorel@gmail.com>

Suggested-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
 README.md | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/README.md b/README.md
index fa9559398..adeac5fdf 100644
--- a/README.md
+++ b/README.md
@@ -215,6 +215,12 @@ SUSE also publishes a
 [smaller LTP container](https://registry.opensuse.org/cgi-bin/cooverview?srch_term=project%3D%5Ebenchmark+container%3D.*)
 that is not based on the Containerfile.
 
+Debugging with gdb
+==================
+
+To get stack trace of a crashing test in gdb it's useful to
+[`set follow-fork-mode child`](https://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_25.html).
+
 Developers corner
 =================
 
-- 
2.42.0



More information about the ltp mailing list