mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 20:03:43 +01:00
Replace #ifdef UNW_DEBUG with #if UNW_DEBUG.
(Logical change 1.130)
This commit is contained in:
parent
cda74fe038
commit
35300d0616
5 changed files with 77 additions and 2 deletions
|
@ -0,0 +1,18 @@
|
|||
#include "unwind_i.h"
|
||||
|
||||
HIDDEN int hppa_needs_initialization = 1;
|
||||
|
||||
#if UNW_DEBUG
|
||||
HIDDEN int tdep_debug_level;
|
||||
#endif
|
||||
|
||||
HIDDEN void
|
||||
hppa_init (void)
|
||||
{
|
||||
extern void _ULhppa_local_addr_space_init (void);
|
||||
|
||||
mi_init();
|
||||
|
||||
_Uhppa_local_addr_space_init ();
|
||||
_ULhppa_local_addr_space_init ();
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2002 Hewlett-Packard Co
|
||||
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "unwind_i.h"
|
||||
|
||||
void
|
||||
unw_destroy_addr_space (unw_addr_space_t as)
|
||||
{
|
||||
#ifndef UNW_LOCAL_ONLY
|
||||
# if UNW_DEBUG
|
||||
memset (as, 0, sizeof (*as));
|
||||
# endif
|
||||
free (as);
|
||||
#endif
|
||||
}
|
|
@ -33,7 +33,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||
# include <sys/uc_access.h>
|
||||
#endif
|
||||
|
||||
#ifdef UNW_DEBUG
|
||||
#if UNW_DEBUG
|
||||
|
||||
HIDDEN const char *
|
||||
ia64_strloc (ia64_loc_t loc)
|
||||
|
|
|
@ -86,7 +86,7 @@ rbs_find_stacked (struct cursor *c, unw_word_t regs_to_skip,
|
|||
{
|
||||
unw_word_t nregs, bsp = c->bsp, curr = c->rbs_curr, n;
|
||||
unw_word_t left_edge = c->rbs_left_edge;
|
||||
#ifdef UNW_DEBUG
|
||||
#if UNW_DEBUG
|
||||
int reg = 32 + regs_to_skip;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#include "unwind_i.h"
|
||||
|
||||
HIDDEN int x86_needs_initialization = 1;
|
||||
|
||||
#if UNW_DEBUG
|
||||
HIDDEN int tdep_debug_level;
|
||||
#endif
|
||||
|
||||
HIDDEN void
|
||||
x86_init (void)
|
||||
{
|
||||
extern void _ULx86_local_addr_space_init (void);
|
||||
|
||||
mi_init();
|
||||
|
||||
_Ux86_local_addr_space_init ();
|
||||
_ULx86_local_addr_space_init ();
|
||||
}
|
Loading…
Reference in a new issue