From c5b4a945d280cd22e0027f6c764b9fb47ab7412e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 18 Jan 2012 16:15:30 +0000 Subject: [PATCH] Document out to trace applications inside gdb. When developing. --- README.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.markdown b/README.markdown index 7ca0df7..0a1bceb 100644 --- a/README.markdown +++ b/README.markdown @@ -96,6 +96,10 @@ to trace by using `glxtrace.so` as an ordinary `libGL.so` and injecting into See the `ld.so` man page for more information about `LD_PRELOAD` and `LD_LIBRARY_PATH` environment flags. +To trace the application inside gdb, invoke gdb as: + + gdb --ex 'set exec-wrapper env LD_PRELOAD=/path/to/glxtrace.so' --args /path/to/application + ### Mac OS X ### Run the application you want to trace as -- 2.43.0