Arun Sharma
781d5d5263
One time whitespace fixup.
...
for f in $(find src include -name '*.[ch]'); do
expand -t 8 $f > $tmp; mv $tmp $f;
done
2014-09-27 09:47:23 -07:00
Lassi Tuura
5f38f35d5d
Drop a call frame in tdep_trace and avoid a call to unw_step.
...
Dropping the extra frame for unw_backtrace itself using unw_step is
approximately 15% slower than skipping the frame in tdep_trace. So
drop the frame in the latter, and make the function a private
implementation detail for libunwind, not an exported interface.
Also moves unw_getcontext call back into unw_backtrace to avoid an
extra call frame in case slow_backtrace does not get inlined into
unw_backtrace.
2011-04-01 00:00:39 -07:00
Arun Sharma
7ff83c051e
Fix up compilation and test failures
2011-03-24 23:32:25 -07:00
Lassi Tuura
44a14d1364
Integrate fast trace into backtrace().
2011-03-24 22:33:55 -07:00
Lassi Tuura
9e98f15e9a
Fast back-trace for x86_64 for only collecting the call stack.
...
Adds new function to perform a pure stack walk without unwinding,
functionally similar to backtrace() but accelerated by an address
attribute cache the caller maintains across calls.
2011-03-24 22:33:17 -07:00
Arun Sharma
11ea1275bd
[dwarf] The sword() function in Gexpr.c doesn't do what's intended.
...
Yes, it casts to signed, but then converts right back to
unsigned via the return type. Fixed thus.
Signed-off-by: Richard Henderson <rth@redhat.com>
Signed-off-by: Arun Sharma <arun.sharma@google.com>
2006-07-26 22:12:10 -06:00
hp.com!davidm
b47b9aa232
UNW_IA64_BSP and UNW_IA64_SP are no longer read-only.
...
(Logical change 1.303)
2005-05-20 15:32:18 +00:00
mostang.com!davidm
ad6f2319b9
(unw_tdep_getcontext): On HP-UX, use getcontext() instead of
...
_Uia64_getcontext().
(Logical change 1.220)
2004-05-04 20:14:02 +00:00
mostang.com!davidm
a1ce4c307e
(unw_tdep_getcontext): Direct it to UNW_ARCH_OBJ(getcontext).
...
(Logical change 1.186)
2004-03-20 09:54:28 +00:00
mostang.com!davidm
1c00cf562e
(unw_tdep_save_loc): Add new member "nat_bitnr". Define the
...
other 7 bytes (which were always there in unw_save_loc_t due
to padding) as reserved for future use.
(Logical change 1.181)
2004-02-27 08:54:25 +00:00
mostang.com!davidm
7915b799c8
Drop argument names from prototypes to reduce namespace pollution.
...
Define libunwind routines such that it is possible to take their
addresses.
(Logical change 1.156)
2004-01-21 01:05:07 +00:00
mostang.com!davidm
47c32cd07f
(_Uia64_search_unwind_table): Make it an UNW_OBJ() instead.
...
(unw_search_ia64_unwind_table): Declare.
(Logical change 1.154)
2004-01-20 23:32:28 +00:00
hp.com!davidm
77b06d67aa
(unw_word_t): Declare it here.
...
(unw_tdep_proc_info_t): New type.
Include "libunwind-dynamic.h" here.
(Logical change 1.140)
2003-12-20 11:20:42 +00:00
hp.com!davidm
48723262f7
(_Uia64_find_dyn_list): Pass unw_dyn_info_t pointer instead of its members.
...
(Logical change 1.126)
2003-11-25 22:33:49 +00:00
hp.com!davidm
18626b8def
(UNW_IA64_AR_SSD): New alias for ar26.
...
(Logical change 1.91)
2003-07-08 22:29:34 +00:00
mostang.com!davidm
89c081cd84
On HP-UX, unset UNW_LOCAL_ONLY and defined UNW_GENERIC_ONLY, since it makes no
...
sense to do UNW_LOCAL_ONLY on this platform.
(Logical change 1.75)
2003-04-03 07:59:15 +00:00
mostang.com!davidm
337c0ad989
Add C++ wrapper.
...
(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm
47c70d7858
Include <inttypes.h> instead of <stdint.h>. HP-UX doesn't have the latter.
...
(unw_tdep_save_loc_t): Define a dummy member, so we're ANSI-C compliant (which doesn't
allow empty structs).
(Logical change 1.63)
2003-03-19 19:25:18 +00:00
mostang.com!davidm
a6e367131b
(UNW_TDEP_EH): Rename from UNW_TDEP_EH_ARG0.
...
(UNW_TDEP_EH_ARG1): Delete.
(UNW_TDEP_EH_ARG2): Ditto.
(UNW_TDEP_EH_ARG3): Ditto.
(UNT_TDEP_NUM_EH_REGS): New macro.
(Logical change 1.59)
2003-03-06 06:14:36 +00:00
mostang.com!davidm
9df94711bf
(_U_TDEP_QP_TRUE): New macro.
...
(UNW_IA64_RP): New register-name.
(Logical change 1.56)
2003-02-27 09:58:57 +00:00
hp.com!davidm
43652d9dea
(ia64): Undef this macro if it's defined (bug in Intel's ECC v7.0?).
...
(_Uia64_find_dyn_list): Add "gp" argument.
(Logical change 1.55)
2003-02-26 08:33:57 +00:00
mostang.com!davidm
8c2740cfe3
(unw_tdep_fpreg_t): New type.
...
(UNW_TDEP_EH_ARG0): Make it an alias for r15.
(UNW_TDEP_EH_ARG1): Make it an alias for r16.
(UNW_TDEP_EH_ARG2): Make it an alias for r17.
(UNW_TDEP_EH_ARG3): Make it an alias for r18.
(Logical change 1.45)
2003-02-08 10:10:59 +00:00
hp.com!davidm
644c919345
Rename UNW_IA64_AR_25 to UNW_IA64_AR_CSD, as per SDM v2.1.
...
(_Uia64_search_unwind_table): Declare.
(_Uia64_find_dyn_list): Declare as "extern".
(_Uia64_get_kernel_table): Declare.
(Logical change 1.43)
2003-01-28 03:40:06 +00:00
mostang.com!davidm
b5fe317cc8
(UNW_TDEP_CURSOR_LEN): Define.
...
(UNW_PI_FLAG_IA64_RBS_SWITCH_BIT): New macro.
(UNW_PI_FLAG_IA64_RBS_SWITCH): Ditto.
(Logical change 1.39)
2003-01-21 08:08:32 +00:00
mostang.com!davidm
93daa3b08d
(UNW_TARGET_IA64): Define.
...
(Logical change 1.32)
2002-12-19 07:16:50 +00:00
mostang.com!davidm
1c8ee38936
(_Uia64_find_dyn_list): Declare and document this ia64-specific helper routine.
...
(Logical change 1.31)
2002-12-18 05:18:40 +00:00
mostang.com!davidm
b29266f262
(unw_sysdep_search_unwind_table): Remove.
...
(Logical change 1.30)
2002-12-12 09:17:41 +00:00
mostang.com!davidm
b1c1f146cc
(struct unw_ia64_table): Delete.
...
(unw_sysdep_search_unwind_table): New macro.
(Logical change 1.29)
2002-12-03 08:19:58 +00:00
mostang.com!davidm
aca3843d6f
Switch to MIT license.
...
(Logical change 1.26)
2002-11-16 03:25:36 +00:00
mostang.com!davidm
74775e31d9
(unw_tdep_getcontext): Make it an expression returning zero (no error).
...
(Logical change 1.16)
2002-04-12 05:02:40 +00:00
hp.com!davidm
1f3b87ad50
Add multi-architecture support: include libunwind-common.h instead
...
of having a libunwind.h include the target-specific header.
(Logical change 1.12)
2002-04-05 23:37:55 +00:00
mostang.com!davidm
5c6360b856
(unw_tdep_is_fpreg): New macro.
...
(Logical change 1.11)
2002-04-04 19:04:09 +00:00
hp.com!davidm
f1d10c0fb3
(unw_tdep_save_loc_t): New type.
...
(Logical change 1.10)
2002-04-03 06:51:34 +00:00
mostang.com!davidm
99639fb162
Rename UNW_IA64_CURRENT_BSP to UNW_IA64_BSP.
...
(Logical change 1.9)
2002-04-01 23:01:22 +00:00
(none)!davidm
cd66944a2c
(unw_tdep_word_t): New type.
...
(ia64_regnum_t): Define well-known frame registers here and add
TDEP-aliases for use by libunwind.h.
(unw_ia64_table_t): Use unw_tdep_word_t instead of unw_word_t so this
file can be included by libunwind.h.
Change type of "array" member to void *. On OSes that support
ILP32, it may point to a 32-bit unwind table.
(Logical change 1.5)
2002-02-22 21:58:53 +00:00
mostang.com!davidm
7fbfe0a255
(Logical change 1.3)
2002-02-15 23:22:05 +00:00
mostang.com!davidm
63669f7ad4
Initial revision
2002-02-15 23:22:05 +00:00