X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fdebug-info-data%2FREADME.md;h=1c45c505436514dd5f341eebd5a3e6a9e459e986;hb=8bef670e9a8eaaf0d9032b79efe0d2443a1cf845;hp=6a4c36c301b20dc0caf951d1ce1bb02e60a2f838;hpb=3be61dc2eb9608e6d66d214cc8caba9456dabf81;p=babeltrace.git diff --git a/tests/debug-info-data/README.md b/tests/debug-info-data/README.md index 6a4c36c3..1c45c505 100644 --- a/tests/debug-info-data/README.md +++ b/tests/debug-info-data/README.md @@ -62,3 +62,20 @@ https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html $ objcopy --only-keep-debug libhello_debug_link_so libhello_debug_link_so.debug $ strip -g libhello_debug_link_so $ objcopy --add-gnu-debuglink=libhello_debug_link_so.debug libhello_debug_link_so + + +Test program +------------ +An executable linked to this library can be compiled from the `main.c` source file. +To compile it, you can do: + + $ ln -s libhello_so libhello.so + $ gcc -I. -o test main.c -L. -lhello_build_id -llttng-ust -ldl -Wl,--rpath=. + +The trace provided in this directory was generated with lttng-ust running this +program and stripped to contain only the bare minimum. When running babeltrace +with the `--debug-info-target-prefix` option pointing to the source tree of +Babeltrace, the `my_provider:my_first_tracepoint` events should contain this +information: + + debug_info = { bin = "libhello_so+0x166b", func = "baz+0x9c", src = "libhello.c:20" } }