mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 23:47:39 +01:00
Fix merge-conflict.
2005/05/17 14:14:23-07:00 hp.com!davidm (check_static_to_scratch): Check contents of AR.EC. (Logical change 1.293)
This commit is contained in:
parent
8a1e0a2bcd
commit
4f8a2291b4
1 changed files with 11 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* libunwind - a platform-independent unwind library
|
/* libunwind - a platform-independent unwind library
|
||||||
Copyright (C) 2005 Hewlett-Packard Co
|
Copyright (C) 2004-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.
|
||||||
|
@ -420,7 +420,7 @@ check_static_to_mem5 (unw_cursor_t *c, unw_word_t *vals)
|
||||||
static unw_word_t *
|
static unw_word_t *
|
||||||
check_static_to_scratch (unw_cursor_t *c, unw_word_t *vals)
|
check_static_to_scratch (unw_cursor_t *c, unw_word_t *vals)
|
||||||
{
|
{
|
||||||
unw_word_t r[4], nat[4];
|
unw_word_t r[4], nat[4], ec, expected;
|
||||||
unw_fpreg_t f4;
|
unw_fpreg_t f4;
|
||||||
int i, ret;
|
int i, ret;
|
||||||
|
|
||||||
|
@ -484,6 +484,15 @@ check_static_to_scratch (unw_cursor_t *c, unw_word_t *vals)
|
||||||
panic ("%s: f4=%016lx.%016lx instead of %lx!\n",
|
panic ("%s: f4=%016lx.%016lx instead of %lx!\n",
|
||||||
__FUNCTION__, f4.raw.bits[1], f4.raw.bits[0], r[0]);
|
__FUNCTION__, f4.raw.bits[1], f4.raw.bits[0], r[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((unw_get_reg (c, UNW_IA64_AR_EC, &ec)) < 0)
|
||||||
|
panic ("%s: failed to read register ar.ec, error=%d\n", __FUNCTION__, ret);
|
||||||
|
|
||||||
|
expected = vals[0] & 0x3f;
|
||||||
|
if (ec != expected)
|
||||||
|
panic ("%s: ar.ec=%016lx instead of %016lx!\n",
|
||||||
|
__FUNCTION__, ec, expected);
|
||||||
|
|
||||||
return vals;
|
return vals;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue