1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-07-01 13:31:43 +02:00

Update copyright year.

Minor formatting changes.

(Logical change 1.110)
This commit is contained in:
hp.com!davidm 2003-11-18 21:47:51 +00:00
parent c55348de6e
commit 6b6a0079e6

View file

@ -1,5 +1,5 @@
/* libunwind - a platform-independent unwind library /* libunwind - a platform-independent unwind library
Copyright (C) 2002 Hewlett-Packard Co Copyright (C) 2002-2003 Hewlett-Packard Co
Contributed by David Mosberger-Tang <davidm@hpl.hp.com> Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of libunwind. This file is part of libunwind.
@ -121,15 +121,12 @@ unw_step (unw_cursor_t *cursor)
struct cursor *c = (struct cursor *) cursor; struct cursor *c = (struct cursor *) cursor;
int ret; int ret;
if (unw_is_signal_frame(cursor)) if (unw_is_signal_frame(cursor))
{ {
/* Without SA_SIGINFO, */ /* c->esp points at the arguments to the handler. Without
/* c -> esp points at the arguments to the handler. */ SA_SIGINFO, the arguments consist of a signal number followed
/* This consists of a signal number followed by a */ by a struct sigcontext. With SA_SIGINFO, the arguments
/* struct sigcontext. */ consist a signal number, a siginfo *, and a ucontext *. */
/* With SA_SIGINFO, the arguments consists of the */
/* signal number, a siginfo *, and a ucontext * . */
unw_word_t siginfo_ptr_addr = c->esp + 4; unw_word_t siginfo_ptr_addr = c->esp + 4;
unw_word_t sigcontext_ptr_addr = c->esp + 8; unw_word_t sigcontext_ptr_addr = c->esp + 8;
unw_word_t siginfo_ptr, sigcontext_ptr; unw_word_t siginfo_ptr, sigcontext_ptr;
@ -152,11 +149,11 @@ unw_step (unw_cursor_t *cursor)
} }
else else
{ {
/* If SA_SIGINFO were not specified, we actually read */ /* If SA_SIGINFO were not specified, we actually read
/* various segment pointers instead. We believe that at */ various segment pointers instead. We believe that at
/* least fs and _fsh are always zero for linux, so it is */ least fs and _fsh are always zero for linux, so it is not
/* is not just unlikely, but impossible that we would end up */ just unlikely, but impossible that we would end up
/* here. */ here. */
esp_loc = X86_LOC (sigcontext_ptr + LINUX_UC_ESP_OFF, 0); esp_loc = X86_LOC (sigcontext_ptr + LINUX_UC_ESP_OFF, 0);
c->ebp_loc = X86_LOC (sigcontext_ptr + LINUX_UC_EBP_OFF, 0); c->ebp_loc = X86_LOC (sigcontext_ptr + LINUX_UC_EBP_OFF, 0);
c->eip_loc = X86_LOC (sigcontext_ptr + LINUX_UC_EIP_OFF, 0); c->eip_loc = X86_LOC (sigcontext_ptr + LINUX_UC_EIP_OFF, 0);