1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-22 07:37:38 +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:
mostang.com!davidm 2002-04-25 06:47:29 +00:00
parent e324c4c115
commit af6fe37119

View file

@ -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;