From 9157711b6e3dbfe5713bbd3f9bc7cb6eff65d96e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Sat, 6 Jan 2024 03:48:49 +0000 Subject: [PATCH] strace GetProgramExecutableName --- libc/calls/getprogramexecutablename.greg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/calls/getprogramexecutablename.greg.c b/libc/calls/getprogramexecutablename.greg.c index 24e01adc8..819e6755e 100644 --- a/libc/calls/getprogramexecutablename.greg.c +++ b/libc/calls/getprogramexecutablename.greg.c @@ -25,6 +25,7 @@ #include "libc/errno.h" #include "libc/fmt/libgen.h" #include "libc/intrin/getenv.internal.h" +#include "libc/intrin/strace.internal.h" #include "libc/limits.h" #include "libc/macros.internal.h" #include "libc/nt/runtime.h" @@ -261,5 +262,6 @@ static void InitProgramExecutableName(void) { */ char *GetProgramExecutableName(void) { cosmo_once(&g_prog.once, InitProgramExecutableName); + STRACE("GetProgramExecutableName() → %#s", __program_executable_name); return __program_executable_name; }