From c33873d71960739dfb2788f363441decb70b7617 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Mon, 13 May 2024 12:30:13 +0200 Subject: [PATCH] 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. --- README_DEVELOPERS | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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. -- 2.47.2