Skip to content

Commit

Permalink
Print stack depth
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Jul 5, 2024
1 parent 0ad96de commit 8f7cbdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/harness/os/windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ static BOOL print_addr2line_address_location(HANDLE const hProcess, const DWORD6

sprintf(addr2line_cmd, "%.256s -f -p -e %.256s %lx", path_addr2line, program_name, (long int)address);

fprintf(stderr, "%d: ", stack_nbr++);
system(addr2line_cmd);
return TRUE;
}
Expand Down Expand Up @@ -154,6 +153,7 @@ static BOOL print_dbghelp_address_location(HANDLE const hProcess, const DWORD64
static void print_address_location(HANDLE hProcess, DWORD64 address) {
IMAGEHLP_MODULE64 module_info;

fprintf(stderr, "%d: ", stack_nbr++);
if (print_dbghelp_address_location(hProcess, address)) {
return;
}
Expand Down

0 comments on commit 8f7cbdf

Please sign in to comment.