Skip to content

Commit d733f4f

Browse files
committed
Test
1 parent 39a5fcd commit d733f4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

profiler/src/ProfilerEngine/Datadog.Linux.ApiWrapper/functions_to_wrap.c

+3
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ void initLibrary(void)
296296
}
297297
}
298298

299+
printf("================> %s\n", crashHandler);
299300
if (crashHandler != NULL && crashHandler[0] != '\0')
300301
{
301302
char* enableMiniDump = real_getenv(DOTNET_DbgEnableMiniDump);
@@ -460,13 +461,15 @@ int execve(const char* pathname, char* const argv[], char* const envp[])
460461
{
461462
check_init();
462463

464+
printf("----- pathname %s\n", pathname);
463465
int callCustomCreatedump = ShouldCallCustomCreatedump(pathname, argv);
464466

465467
if (callCustomCreatedump == 0)
466468
{
467469
return __real_execve(pathname, argv, envp);
468470
}
469471

472+
printf("--------- call custom createdump \n");
470473
is_app_crashing = 1;
471474
// Execute the alternative crash handler, and prepend "createdump" to the arguments
472475

0 commit comments

Comments
 (0)