summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhp.com!davidm <hp.com!davidm>2005-05-03 09:13:17 +0000
committerhp.com!davidm <hp.com!davidm>2005-05-03 09:13:17 +0000
commit05246dbab78434bdffa7384ee23dcdb156f32a59 (patch)
tree4b050d4a7075b6a8bbe6166145a8a87cf22521eb /tests
parent0dec41725c2182c6086e6ace553a2c0f1c74fdee (diff)
downloadlibunwind-05246dbab78434bdffa7384ee23dcdb156f32a59.tar.gz
Fix missing NELEMS -> ARRAY_SIZE rename.
2005/02/23 13:10:05-08:00 mostang.com!davidm Adjust for "ia64_rse" to "rse" prefix change. (Logical change 1.290)
Diffstat (limited to 'tests')
-rw-r--r--tests/Gia64-test-nat.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/Gia64-test-nat.c b/tests/Gia64-test-nat.c
index 47d7ad69..d6231afc 100644
--- a/tests/Gia64-test-nat.c
+++ b/tests/Gia64-test-nat.c
@@ -1,5 +1,5 @@
/* libunwind - a platform-independent unwind library
- Copyright (C) 2004 Hewlett-Packard Co
+ Copyright (C) 2005 Hewlett-Packard Co
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of libunwind.
@@ -125,8 +125,7 @@ sighandler (int signal, void *siginfo, void *context)
printf ("sighandler: signal %d sp=%p nat=%08lx pr=%lx\n",
signal, &sp, uc->uc_mcontext.sc_nat, uc->uc_mcontext.sc_pr);
sof = uc->uc_mcontext.sc_cfm & 0x7f;
- bsp = (unsigned long *) ia64_rse_skip_regs (uc->uc_mcontext.sc_ar_bsp,
- -sof);
+ bsp = (unsigned long *) rse_skip_regs (uc->uc_mcontext.sc_ar_bsp, -sof);
}
#elif defined(__hpux)
if (__uc_get_ar (uc, UNW_IA64_AR_BSP - UNW_IA64_AR, &bsp) != 0)
@@ -138,7 +137,7 @@ sighandler (int signal, void *siginfo, void *context)
flushrs ();
arg0 = (save_func_t **) *bsp;
- bsp = (unsigned long *) ia64_rse_skip_regs ((uint64_t) bsp, 1);
+ bsp = (unsigned long *) rse_skip_regs ((uint64_t) bsp, 1);
arg1 = (unsigned long *) *bsp;
(*arg0[0]) (arg0 + 1, arg1);
@@ -525,9 +524,9 @@ run_check (int test)
{
if (test == 1)
/* Make first test once go through each test... */
- index = i % NELEMS (all_funcs);
+ index = i % ARRAY_SIZE (all_funcs);
else
- index = random () % NELEMS (all_funcs);
+ index = random () % ARRAY_SIZE (all_funcs);
funcs[i] = all_funcs[index].func;
checks[i] = all_funcs[index].check;
}