]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
README_DEVELOPERS: Replace b vgPlain_do_exec with b vgPlain_do_exec_inner
authorMark Wielaard <mark@klomp.org>
Mon, 13 May 2024 10:30:13 +0000 (12:30 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 13 May 2024 10:32:17 +0000 (12:32 +0200)
When building with --enable-lto vgPlain_do_exec is optimized out.
So replace the breakpoint example with vgPlain_do_exec_inner and
add a note that this is just an example and internal symbol names
might change or get optimized out.

README_DEVELOPERS

index 3ab466a02bd8510df4b5a507a8f32106adf566bd..eeb594508ae440266913b58c353deef756f452bf 100644 (file)
@@ -152,9 +152,13 @@ without too much problem by following these steps:
 
 (4) Set any breakpoints you want and proceed as normal for gdb. The
     macro VG_(FUNC) is expanded to vgPlain_FUNC, so If you want to set
-    a breakpoint VG_(do_exec), you could do like this in GDB:
+    a breakpoint VG_(do_exec_inner), you could do like this in GDB:
 
-    (gdb) b vgPlain_do_exec
+    (gdb) b vgPlain_do_exec_inner
+
+    Note: This is just an example, for various reasons internal
+          function names might be renamed or optimized out
+          (for example when building with --enable-lto).
 
 (5) Run the tool with required options (the --tool option is required
     for correct setup), e.g.