]> git.cworth.org Git - apitrace/commitdiff
Document out to trace applications inside gdb.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Wed, 18 Jan 2012 16:15:30 +0000 (16:15 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Wed, 18 Jan 2012 16:15:30 +0000 (16:15 +0000)
When developing.

README.markdown

index 7ca0df7be6609550439b390b03a5b96f12b58d47..0a1bcebab065ecf85aa12ac15aa085ab45506417 100644 (file)
@@ -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