diff options
Diffstat (limited to 'byterun/backtrace.c')
-rw-r--r-- | byterun/backtrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/byterun/backtrace.c b/byterun/backtrace.c index 4425ecd3a..2df3be510 100644 --- a/byterun/backtrace.c +++ b/byterun/backtrace.c @@ -101,7 +101,7 @@ static value read_debug_info(void) uint32 num_events, orig, i; value evl, l; - exec_name = caml_main_argv[0]; + exec_name = caml_exe_name; fd = attempt_open(&exec_name, &trail, 1); if (fd < 0) CAMLreturn(Val_false); read_section_descriptors(fd, &trail); |