mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 15:47:37 +01:00
Include <stdlib.h>.
(ia64_init): Initialize debug level from UNW_DEBUG_LEVEL environment variable. (Logical change 1.18)
This commit is contained in:
parent
e324c4c115
commit
af6fe37119
1 changed files with 11 additions and 0 deletions
|
@ -21,6 +21,8 @@ This exception does not however invalidate any other reasons why the
|
|||
executable file might be covered by the GNU General Public
|
||||
License. */
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "unwind_i.h"
|
||||
|
||||
struct ia64_global_unwind_state unw =
|
||||
|
@ -115,6 +117,15 @@ ia64_init (void)
|
|||
uint8_t *lep, *bep;
|
||||
long i;
|
||||
|
||||
#if IA64_UNW_DEBUG
|
||||
{
|
||||
const char *str = getenv ("UNW_DEBUG_LEVEL");
|
||||
|
||||
if (str)
|
||||
unw.debug_level = atoi (str);
|
||||
}
|
||||
#endif
|
||||
|
||||
unw.f0.raw.bits[0] = 0;
|
||||
unw.f0.raw.bits[1] = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue