Skip to content

Commit

Permalink
Fix build on FreeBSD i386
Browse files Browse the repository at this point in the history
The error message is as follows:
```
--- x86/Gos-freebsd.lo ---
x86/Gos-freebsd.c:127:10: error: use of undeclared identifier 'i'
    for (i = 0; i < DWARF_NUM_PRESERVED_REGS; ++i)
         ^
x86/Gos-freebsd.c:127:17: error: use of undeclared identifier 'i'
    for (i = 0; i < DWARF_NUM_PRESERVED_REGS; ++i)
                ^
x86/Gos-freebsd.c:127:49: error: use of undeclared identifier 'i'
    for (i = 0; i < DWARF_NUM_PRESERVED_REGS; ++i)
                                                ^
x86/Gos-freebsd.c:128:20: error: use of undeclared identifier 'i'
      c->dwarf.loc[i] = DWARF_NULL_LOC;
                   ^
4 errors generated.
*** [x86/Gos-freebsd.lo] Error code 1
```
  • Loading branch information
sunpoet authored and bregma committed Oct 14, 2023
1 parent d2d34f8 commit 24dc3b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/x86/Gos-freebsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ x86_handle_signal_frame (unw_cursor_t *cursor)
struct sigframe *sf;
uintptr_t uc_addr;
struct dwarf_loc esp_loc;
int i;

sf = (struct sigframe *)c->dwarf.cfa;
uc_addr = (uintptr_t)&(sf->sf_uc);
Expand Down

0 comments on commit 24dc3b0

Please sign in to comment.