1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2025-03-09 02:00:07 +01:00

Adjust for sigset_t to intrmask_t renaming.

(Logical change 1.290)
This commit is contained in:
mostang.com!davidm 2005-05-03 09:13:17 +00:00
parent 9f3360a546
commit 7fbb8a9593
4 changed files with 17 additions and 17 deletions

View file

@ -1,5 +1,5 @@
/* libunwind - a platform-independent unwind library /* libunwind - a platform-independent unwind library
Copyright (C) 2002-2004 Hewlett-Packard Co Copyright (C) 2002-2005 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.
@ -65,13 +65,13 @@ tdep_init (void)
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x3e,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
}; };
sigset_t saved_sigmask; intrmask_t saved_mask;
uint8_t *lep, *bep; uint8_t *lep, *bep;
long i; long i;
sigfillset (&unwi_full_sigmask); sigfillset (&unwi_full_mask);
sigprocmask (SIG_SETMASK, &unwi_full_sigmask, &saved_sigmask); sigprocmask (SIG_SETMASK, &unwi_full_mask, &saved_mask);
mutex_lock (&unw.lock); mutex_lock (&unw.lock);
{ {
if (!tdep_needs_initialization) if (!tdep_needs_initialization)
@ -121,5 +121,5 @@ tdep_init (void)
} }
out: out:
mutex_unlock (&unw.lock); mutex_unlock (&unw.lock);
sigprocmask (SIG_SETMASK, &saved_sigmask, NULL); sigprocmask (SIG_SETMASK, &saved_mask, NULL);
} }

View file

@ -1,5 +1,5 @@
/* libunwind - a platform-independent unwind library /* libunwind - a platform-independent unwind library
Copyright (C) 2002-2004 Hewlett-Packard Co Copyright (C) 2002-2005 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.
@ -29,7 +29,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "internal.h" #include "internal.h"
#include "tdep.h" #include "tdep.h"
HIDDEN sigset_t unwi_full_sigmask; HIDDEN intrmask_t unwi_full_mask;
static const char rcsid[] UNUSED = static const char rcsid[] UNUSED =
"$Id: " PACKAGE_STRING " --- report bugs to " PACKAGE_BUGREPORT " $"; "$Id: " PACKAGE_STRING " --- report bugs to " PACKAGE_BUGREPORT " $";

View file

@ -1,5 +1,5 @@
/* libunwind - a platform-independent unwind library /* libunwind - a platform-independent unwind library
Copyright (c) 2003 Hewlett-Packard Development Company, L.P. Copyright (c) 2003, 2005 Hewlett-Packard Development Company, L.P.
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.
@ -43,11 +43,11 @@ HIDDEN uint8_t dwarf_to_unw_regnum_map[19] =
HIDDEN void HIDDEN void
tdep_init (void) tdep_init (void)
{ {
sigset_t saved_sigmask; intrmask_t saved_mask;
sigfillset (&unwi_full_sigmask); sigfillset (&unwi_full_mask);
sigprocmask (SIG_SETMASK, &unwi_full_sigmask, &saved_sigmask); sigprocmask (SIG_SETMASK, &unwi_full_mask, &saved_mask);
mutex_lock (&x86_lock); mutex_lock (&x86_lock);
{ {
if (!tdep_needs_initialization) if (!tdep_needs_initialization)
@ -65,5 +65,5 @@ tdep_init (void)
} }
out: out:
mutex_unlock (&x86_lock); mutex_unlock (&x86_lock);
sigprocmask (SIG_SETMASK, &saved_sigmask, NULL); sigprocmask (SIG_SETMASK, &saved_mask, NULL);
} }

View file

@ -1,5 +1,5 @@
/* libunwind - a platform-independent unwind library /* libunwind - a platform-independent unwind library
Copyright (c) 2003 Hewlett-Packard Development Company, L.P. Copyright (c) 2003, 2005 Hewlett-Packard Development Company, L.P.
Contributed by David Mosberger-Tang <davidm@hpl.hp.com> Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
Modified for x86_64 by Max Asbock <masbock@us.ibm.com> Modified for x86_64 by Max Asbock <masbock@us.ibm.com>
@ -57,11 +57,11 @@ HIDDEN uint8_t dwarf_to_unw_regnum_map[17] =
HIDDEN void HIDDEN void
tdep_init (void) tdep_init (void)
{ {
sigset_t saved_sigmask; intrmask_t saved_mask;
sigfillset (&unwi_full_sigmask); sigfillset (&unwi_full_mask);
sigprocmask (SIG_SETMASK, &unwi_full_sigmask, &saved_sigmask); sigprocmask (SIG_SETMASK, &unwi_full_mask, &saved_mask);
mutex_lock (&x86_64_lock); mutex_lock (&x86_64_lock);
{ {
if (!tdep_needs_initialization) if (!tdep_needs_initialization)
@ -79,5 +79,5 @@ tdep_init (void)
} }
out: out:
mutex_unlock (&x86_64_lock); mutex_unlock (&x86_64_lock);
sigprocmask (SIG_SETMASK, &saved_sigmask, NULL); sigprocmask (SIG_SETMASK, &saved_mask, NULL);
} }