From: Mark Wielaard Date: Mon, 13 May 2024 10:30:13 +0000 (+0200) Subject: README_DEVELOPERS: Replace b vgPlain_do_exec with b vgPlain_do_exec_inner X-Git-Tag: VALGRIND_3_24_0~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c33873d71960739dfb2788f363441decb70b7617;p=thirdparty%2Fvalgrind.git README_DEVELOPERS: Replace b vgPlain_do_exec with b vgPlain_do_exec_inner 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. --- diff --git a/README_DEVELOPERS b/README_DEVELOPERS index 3ab466a02..eeb594508 100644 --- a/README_DEVELOPERS +++ b/README_DEVELOPERS @@ -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.