mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-03-13 03:30:08 +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
|
their ucontext_t offsets. Confirm DWARF info agrees with the
|
||||||
offsets we expect. */
|
offsets we expect. */
|
||||||
|
|
||||||
|
#ifdef NDEBUG
|
||||||
const unw_word_t uc = c->sigcontext_addr;
|
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[RIP]) - uc == UC_MCONTEXT_GREGS_RIP);
|
||||||
assert (DWARF_GET_LOC(d->loc[RBP]) - uc == UC_MCONTEXT_GREGS_RBP);
|
assert (DWARF_GET_LOC(d->loc[RBP]) - uc == UC_MCONTEXT_GREGS_RBP);
|
||||||
assert (DWARF_GET_LOC(d->loc[RSP]) - uc == UC_MCONTEXT_GREGS_RSP);
|
assert (DWARF_GET_LOC(d->loc[RSP]) - uc == UC_MCONTEXT_GREGS_RSP);
|
||||||
|
#endif
|
||||||
|
|
||||||
Debug (4, " sigreturn frame\n");
|
Debug (4, " sigreturn frame\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue