mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-02 20:52:55 +01:00
Fix a compiler warning
Signed-off-by: Paul Pluzhnikov <ppluzhnikov@google.com>
This commit is contained in:
parent
2b606faa21
commit
2f328202ee
1 changed files with 2 additions and 0 deletions
|
@ -81,11 +81,13 @@ tdep_stash_frame (struct dwarf_cursor *d, struct dwarf_reg_state *rs)
|
|||
their ucontext_t offsets. Confirm DWARF info agrees with the
|
||||
offsets we expect. */
|
||||
|
||||
#ifdef NDEBUG
|
||||
const unw_word_t uc = c->sigcontext_addr;
|
||||
|
||||
assert (DWARF_GET_LOC(d->loc[RIP]) - uc == UC_MCONTEXT_GREGS_RIP);
|
||||
assert (DWARF_GET_LOC(d->loc[RBP]) - uc == UC_MCONTEXT_GREGS_RBP);
|
||||
assert (DWARF_GET_LOC(d->loc[RSP]) - uc == UC_MCONTEXT_GREGS_RSP);
|
||||
#endif
|
||||
|
||||
Debug (4, " sigreturn frame\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue