1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-13 20:08:12 +01:00
Commit graph

2980 commits

Author SHA1 Message Date
hp.com!davidm
9fac7579ee Don't include <string.h> and "tdep.h".
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
71acf1d00e Don't include <stdlib.h>.
Include "libunwind_i.h" instead of "tdep.h".

(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
03ba50ccaa Don't include <stdlib.h> and <string.h>.
Include "libunwind_i.h" instead of "tdep.h".

(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
fa2871946a Don't include <assert.h> and <stddef.h>.
Use ia64_get_abi_marker() instead of directly referencing c->last_abi_marker.
(linux_scratch_loc): When accessing an fp-reg, default to IA64_FPREG_LOC.
	Handle more registers for the Linux interrupt-frame case.
(tdep_access_reg): Use ia64_get_abi() instead of c->as->abi.
	Use ia64_is_big_endian() instead of c->as->big_endian.

(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
8bb167d4c1 Don't include <alloca.h> and <stdlib.h>.
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
5e5db2dada Adjust for renaming of file.
Drop include of <libunwind.h>.
Include "script.h" instead of "ia64/script.h".

}(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
0870c54c2a Adjust for renaming of file.
Drop include of <libunwind.h>.
Include "script.h" instead of "ia64/script.h".

2005/05/19 07:42:45-07:00 hp.com!davidm
Rename: include/tdep-ia64.h -> include/tdep-ia64/libunwind_i.h

(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
ce46ac7167 Adjust for renaming of file.
(tdep_put_unwind_info): Adjust for change of arguments.

}(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
bea50a5d41 Adjust for renaming of file.
(tdep_put_unwind_info): Adjust for change of arguments.

2005/05/19 07:42:45-07:00 hp.com!davidm
Rename: include/tdep-x86_64.h -> include/tdep-x86_64/libunwind_i.h

(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
47eca0fadf Adjust for renaming of file.
(tdep_put_unwind_info): Adjust for change of arguments.

2005/05/19 07:42:45-07:00 hp.com!davidm
Rename: include/tdep-x86.h -> include/tdep-x86/libunwind_i.h

(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
34e70b5937 Adjust for renaming of file.
}(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
dce55286ab Adjust for renaming of file.
2005/05/19 07:42:45-07:00 hp.com!davidm
Rename: include/tdep-hppa.h -> include/tdep-hppa/libunwind_i.h

(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
6980fa4f25 Adjust comment.
}(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
e5944788ad Adjust comment.
2005/05/19 08:13:00-07:00 hp.com!davidm
Rename: include/x86_64/dwarf-config.h -> include/tdep-x86_64/dwarf-config.h

(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
c446186670 Add include of <stdlib.h>.
}(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
5135d044ed Add include of <stdlib.h>.
2005/05/19 07:42:56-07:00 hp.com!davidm
Rename: include/internal.h -> include/libunwind_i.h

(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
6675be4926 (linux_interrupt): Enable this code for the kernel, too.
Use ia64_get_abi_marker() instead of c->abi_marker.
	Use ia64_set_abi() instead of storing directly to c->as->abi.

(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
ee6eeb4f7d (get_script_cache): Use HAVE_ATOMIC_H instead of __linux && __KERNEL__.
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
dca0c5af1a (Logical change 1.294) 2005-05-20 09:48:08 +00:00
hp.com!davidm
da5e9ba297 (ARRAY_SIZE): Rename from NELEMS.
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
94daa871ec Fix merge-conflict.
2005/05/17 14:14:24-07:00 hp.com!davidm
ia64: Fix AR.EC-handling for interrupt/signal-frames.

Call-frames created in response to an interruption are special because
CR.IFS contains only the current frame-marker, not the full function-state
(as normally saved in AR.PFS).  Thus, in those frames we cannot use CR.IFS
(as pointed to by c->cfm_loc) to access AR.EC.  Instead, we need to track
where AR.PFS was previously saved and use that location instead.  We do
this now via the c->ec_loc member: by default, it is set to c->cfm_loc, but
the ABI-specific handlers can override this default-value with something
else (such as the previous c->cfm_loc).

BKrev: 428a61f3a7DlCyx8iAN6oWxAsLuqVw
2005-05-17 21:28:19 +00:00
hp.com!davidm
4f8a2291b4 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)
2005-05-17 21:28:19 +00:00
hp.com!davidm
8a1e0a2bcd Auto merged
2005/05/17 14:14:23-07:00 hp.com!davidm
(tdep_access_reg): Access AR.EC via ec_loc instead of cfm_loc.

(Logical change 1.293)
2005-05-17 21:28:19 +00:00
hp.com!davidm
26fdb45d76 Auto merged
2005/05/17 14:14:23-07:00 hp.com!davidm
(linux_sigtramp): Add "prev_cfm_loc" argument.  Use it to set c->ec_loc.
(linux_interrupt): Likewise.
(hpux_sigtramp): Likewise.
(update_frame_state): Copy old cfm_loc to prev_cfm_loc and pass it to
	ABI-specific handlers.  Initialize c->ec_loc to c->cfm_loc by default.

(Logical change 1.293)
2005-05-17 21:28:19 +00:00
hp.com!davidm
c3e9383d30 (struct cursor): Add "ec_loc" member.
(Logical change 1.293)
2005-05-17 21:28:19 +00:00
hp.com!davidm
3d881cd0cb (save_static_to_scratch): Initialize ar.ec.
(Logical change 1.293)
2005-05-17 21:28:19 +00:00
hp.com!davidm
6a34a0f79c Regenerate.
(Logical change 1.292)
2005-05-17 13:24:49 +00:00
hp.com!davidm
344132b065 Merge wailua.hpl.hp.com:/home/davidm/src/unwind/libunwind-v0.98
into wailua.hpl.hp.com:/home/davidm/src/unwind/libunwind

2005/05/17 06:10:15-07:00 hp.com!davidm
ia64: Fix and clarify access to UNW_IA64_PR.

Access to the rotating portion of UNW_IA64_PR was busted.  Also, libunwind
incorrectly attempted to rotate this portion when it should work like the
"move predicates" instructions and access them in unrotated form.

BKrev: 4289f0a1ct0tnWPxRhGJtsqeWkLfyA
2005-05-17 13:24:49 +00:00
hp.com!davidm
0cae8247a8 Clarify that UNW_IA64_PR works like the "move predicates" instruction, i.e.,
it acesses the physical (unrotated) contents of p16-p63.

(Logical change 1.292)
2005-05-17 13:24:49 +00:00
hp.com!davidm
a6ba57d556 Auto merged
2005/05/17 06:10:13-07:00 hp.com!davidm
(tdep_access_reg): Don't rotate contents of UNW_IA64_PR.

(Logical change 1.292)
2005-05-17 13:24:49 +00:00
hp.com!davidm
e5426f4221 Auto merged
2005/05/17 06:10:13-07:00 hp.com!davidm
(save_pr): Declare
(check_pr): New function.
(all_funcs): Mention save_pr/check_pr.
(random_word): New function.
(check_pr): Likewise.
(check_rotate_regs): Call check_pr().
(run_check): Use random_word() instead of random() to get a word full of
	pseudo-random bits.

(Logical change 1.292)
2005-05-17 13:24:49 +00:00
hp.com!davidm
05feedabea (rotate_regs): Load up "pr" with first value. Preserve p63 across rotation.
(save_pr): New function.

(Logical change 1.292)
2005-05-17 13:24:49 +00:00
hp.com!davidm
8462f1f87d (pr_ltop): Remove.
(pr_ptol): Remove.

(Logical change 1.292)
2005-05-17 13:24:49 +00:00
hp.com!davidm
aac9a2c1b6 (tests/Gtest-concurrent): Use a smallish stack to make it more likely that
all threads can be created.

BKrev: 4279e622XkyQMUhPQmclWMQOQfJEug
2005-05-05 09:23:46 +00:00
hp.com!davidm
b0406d0a2a (doit): Set stack-size attribute to increase likelihood that we're able
to create NTHREADS threads.  With NTHREADS==128 and the stack-size
	rlimit set to "unlimited", the test is otherwise likely to fail because
	on ia64 it will default to using 32MB of stack per thread.

(Logical change 1.291)
2005-05-05 09:23:46 +00:00
mostang.com!davidm
23884c98cb Rename: src/sigsetjmp.c -> src/setjmp/sigsetjmp.c
}(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
4d7f2a5be7 Rename: src/sigsetjmp.c -> src/setjmp/sigsetjmp.c
(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
5ac5853589 Rename: src/setjmp.c -> src/setjmp/setjmp.c
}(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
8e06df0e52 Rename: src/setjmp.c -> src/setjmp/setjmp.c
(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
9bc79a618b Rename: src/dwarf/dwarf-eh.h -> include/dwarf-eh.h
}(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
836ee627e0 Rename: src/dwarf/dwarf-eh.h -> include/dwarf-eh.h
(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
06d223e924 Initial revision 2005-05-03 09:13:17 +00:00
mostang.com!davidm
a5e8408d47 Include <string.h> to get memset() declared.
(consume_some_stack_space): New function.
(main): Call consume_some_stack_space() before establishing the
	rlimit.  Otherwise, stack-expansion may bump into
	the address-space rlimit.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
4e833d43fc Include "setjmp_i.h".
Abstract ia64-specific code into bsp_match() routine.
Support any platform with at least 2 EH argument registers.

}(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
4f16756123 Include "setjmp_i.h".
Abstract ia64-specific code into bsp_match() routine.
Support any platform with at least 2 EH argument registers.

2004/12/06 01:33:16-08:00 mostang.com!davidm
Rename: src/longjmp.c -> src/setjmp/longjmp.c

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
203c0a5363 Include "setjmp_i.h".
Abstract ia64-specific code into bsp_match() and
resume_restores_sigmask() routines.

}(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
acf90b1f82 Include "setjmp_i.h".
Abstract ia64-specific code into bsp_match() and
resume_restores_sigmask() routines.

2004/12/06 01:33:01-08:00 mostang.com!davidm
Rename: src/siglongjmp.c -> src/setjmp/siglongjmp.c

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
fbab73e7e6 Improve comment.
(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
239ea4e7ea Implement for real. Note: this version is currently broken.
We don't pass sigmask the way this routine expects because it
can't work.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
7a5549f2d8 Drop "inline" since it's now part of ALWAYS_INLINE.
(Logical change 1.290)
2005-05-03 09:13:17 +00:00