X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=BUGS.markdown;h=d8258a7be883deae8069dda6e2fbc7da8a699a37;hb=d9d9d22837705de6a2c42ad3f9b23223a2b98fe0;hp=56049c1de24557e3901bc0c8b023509f3c9ef6be;hpb=2cca1ad5d2cdd192b69eee09f5f3b63f0fd939b6;p=apitrace diff --git a/BUGS.markdown b/BUGS.markdown index 56049c1..d8258a7 100644 --- a/BUGS.markdown +++ b/BUGS.markdown @@ -176,7 +176,8 @@ Linux/MacOSX ------------ Please rebuild apitrace with debugging information, by passing -`-DCMAKE_BUILD_TYPE=Debug` to cmake. +`-DCMAKE_BUILD_TYPE=Debug` to cmake, or editing its value in `CMakeCache.txt` +and rebuilding. To obtain a stack back-trace, run the application with gdb from a terminal: @@ -185,6 +186,10 @@ To obtain a stack back-trace, run the application with gdb from a terminal: ... (gdb) bt +On Linux, to trace an application inside gdb the `LD_PRELOAD` environment +variable should be set from within gdb like: + + gdb --ex 'set exec-wrapper env LD_PRELOAD=/path/to/glxtrace.so' --args application arg1 ... See also more detailed and Distro specific instructions: