David Mosberger-Tang
69d85f7c14
Restore mi/Ldyn-remote.c.
2006-07-26 15:10:48 -06:00
David Mosberger-Tang
236e370dc5
Remove three Emacs backup-files which accidentially got checked into git.
2006-07-26 14:54:50 -06:00
David Mosberger-Tang
6daeeac60a
Revert "Initial revision"
...
This reverts e6446885f4
commit.
2006-07-26 14:53:49 -06:00
David Mosberger-Tang
a369768c27
Revert "Initial revision"
...
This reverts 06d223e924
commit.
2006-07-26 14:47:44 -06:00
David Mosberger-Tang
ca69fee8bb
Merge ../libunwind-v0.98
...
Conflicts:
include/dwarf_i.h
include/x86/jmpbuf.h
include/x86_64/jmpbuf.h
src/hppa/init.h
src/mi/Gget_fpreg.c
src/mi/Gset_fpreg.c
src/mi/strerror.c
2006-07-25 21:41:43 -06:00
David Mosberger-Tang
af2503e223
Fix bug in libunwind-ptrace which can cause reading of random data.
...
(maps_next): After reading less than a full buffer of data, copy
remaining data to the top of the buffer so as to maintain the
invariant that all data between mi->buf and mi->buf_end is valid.
This avoids maps_next() parsing uninitialized data.
2006-07-25 21:35:30 -06:00
David Mosberger-Tang
f176ad6fc6
Bring git v0.98.5 tree in sync with released v0.98.5.
...
Sadly, the conversion from Bitkeeper -> CVS -> git wasn't perfect. Or
so it seems.
2006-07-25 21:32:28 -06:00
hp.com!davidm
36a0275014
Allow write-access to UNW_IA64_BSP and UNW_REG_SP.
...
(Logical change 1.303)
2005-05-20 15:32:18 +00:00
hp.com!davidm
cf2a44ca49
Use update_nat() instead of equivalent open code.
...
(Logical change 1.301)
2005-05-20 14:58:46 +00:00
hp.com!davidm
f5de64f9f7
If r1 has been saved in an ABI-specific frame
...
(such as an interrupt frame), access the saved
value. Otherwise, pick it up from the unwind-info
for the matching IP.
(Logical change 1.300)
2005-05-20 14:50:54 +00:00
hp.com!davidm
399f120c96
Drop unused readonly variable.
...
(Logical change 1.299)
2005-05-20 14:13:01 +00:00
hp.com!davidm
3fa950e818
Remove early-out test when IP is zero.
...
(Logical change 1.298)
2005-05-20 13:35:32 +00:00
hp.com!davidm
19e3bf3ea6
(rbs_switch): Use rbs_get_base() to determine the size of the register
...
backing store.
(Logical change 1.297)
2005-05-20 13:13:07 +00:00
hp.com!davidm
9724ac492c
(common_init): Use rbs_get_base() to determine size of register-backing store.
...
(Logical change 1.297)
2005-05-20 13:13:07 +00:00
hp.com!davidm
080f8423d9
Read sp and bsp via ia64_get() and then pass them to common_init().
...
(Logical change 1.296)
2005-05-20 12:47:59 +00:00
hp.com!davidm
50bbc1fe3d
(set_as_arg): New function.
...
(get_initial_stack_pointers): Likewise.
(unw_init_local): Use new functions to make code more readable and add
Linux kernel support.
(Logical change 1.296)
2005-05-20 12:47:59 +00:00
hp.com!davidm
84bd124a24
(inlined_uc_addr): Remove UNW_IA64_AR_BSP. We no longer need this ugly hack
...
since the initial BSP is now passed directly into common_init().
(Logical change 1.296)
2005-05-20 12:47:59 +00:00
hp.com!davidm
4992f1c936
(common_init): Take initial sp and bsp values as arguments instead of
...
reading them via ia64_get().
(Logical change 1.296)
2005-05-20 12:47:59 +00:00
hp.com!davidm
97b483dcaa
Drop include of "mempool.h", which causes problems in the kernel, due to
...
a conflicting <linux/mempool.h>.
(SOS_MEMORY_SIZE): Move to libunwind_i.h.
(Logical change 1.295)
2005-05-20 11:28:16 +00:00
hp.com!davidm
1b63be3f89
(parse_dynamic): Make it a dummy-function of _U_dyn_op isn't defined, i.e.,
...
if libunwind-dynamic.h isn't in use (as is the case for the kernel at
the moment).
(Logical change 1.295)
2005-05-20 11:28:16 +00:00
hp.com!davidm
7894f0edc0
(ia64_strloc): Move to Grbs.c.
...
(Logical change 1.295)
2005-05-20 11:28:16 +00:00
hp.com!davidm
96407911ee
(ia64_strloc): Move here from Ginit.c so it can be shared with the kernel.
...
(Logical change 1.295)
2005-05-20 11:28:16 +00:00
hp.com!davidm
2e35dd035c
Regenerate.
...
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
3e8a50255c
Include from tdep-$(arch) directory after the normal incliude directory.
...
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
32385d36fd
Include "tdep-ia64/rse.h" instead of "ia64/rse.h".
...
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
1228462adc
Include "rse.h" instead of "ia64/rse.h".
...
Include "libunwind_i.h" instead of "internal.h" and "tdep.h".
Define rbs_cover_and_flush() only for the !UNW_REMOTE_ONLY case.
(ia64_is_big_endian): New macro.
(ia64_get_abi): Likewise.
(ia64_set_abi): Likewise.
(ia64_get_abi_marker): Likewise.
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
8e6f3c8485
Include "rse.h" instead of "ia64/rse.h".
...
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
83820a78d1
Include "libunwind_i.h" instead of "tdep.h".
...
Include "tdep-ia64/rse.h" instead of "ia64/rse.h".
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
67f90c24be
Include "libunwind_i.h" instead of "tdep.h".
...
Include "elfxx.c" instead of "elf64.c".
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
d9e100753f
Include "libunwind_i.h" instead of "tdep.h".
...
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
07b01ad205
Include "libunwind_i.h" instead of "tdep.h" and "internal.h".
...
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
670dd57e82
Include "libunwind_i.h" instead of "libunwind.h" and a whole bunch of standard
...
header files.
Use lock_release instead of mutex_unlock/sigprocmask calls.
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
5724bee8c2
Include "libunwind_i.h" instead of "internal.h".
...
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
19df6612fa
Include "libunwind_i.h" instead of "internal.h" and "tdep.h".
...
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
b7adf160ee
Include "dwarf_i.h" instead of "dwarf.h".
...
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
c027d98386
Don't include headers already included via unwind_i.h.
...
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
df3d6af467
Don't include <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
dda1a6d625
Don't include <string.h>.
...
Include "libunwind_i.h" instead of "internal.h" and "tdep.h".
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
379fb069d2
Don't include <string.h>, <unistd.h>, <sys/types.h>.
...
Include "libunwind_i.h" instead of "tdep.h".
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
hp.com!davidm
9e8ba174e6
Don't include <string.h> and <stdlib.h>.
...
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
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
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
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
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