From: José Fonseca Date: Wed, 18 Jan 2012 16:15:30 +0000 (+0000) Subject: Document out to trace applications inside gdb. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;ds=sidebyside;h=c5b4a945d280cd22e0027f6c764b9fb47ab7412e;hp=93911de1f9909f1c9c8e10a8745c66fa6c27cc63;p=apitrace Document out to trace applications inside gdb. When developing. --- 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