Arun Sharma
1787a2fd28
Add path and pathlen arguments to tdep_get_elf_image()
...
Signed-off-by: Andris Zeila <andris.zeila@accenture.com>
2010-05-15 12:14:09 -07:00
Arun Sharma
66b7335ff3
Adds missing register offsets for ARM
...
Signed-off-by: Andris Zeila <andris.zeila@accenture.com>
2010-05-15 11:56:37 -07:00
Giuseppe Scrivano
a67654e86f
[PATCH] Reduce scope of the eh_frame_end local variable
2010-04-14 12:11:29 -07:00
Konstantin Belousov
42bc15c72c
Provide proper register offsets in the gregset for FreeBSD/i386
2010-04-11 19:18:07 +03:00
Konstantin Belousov
a688d6c4c9
Remove unused variable.
2010-04-10 18:51:17 +03:00
Konstantin Belousov
6f7b335e89
Add my copyrights to several files that contain essential modifications
2010-04-10 01:42:26 +03:00
Konstantin Belousov
9bb9c972e6
Merge with origin/master
2010-03-31 16:01:38 +03:00
Arun Sharma
6203f1cd0f
Cleanup a mapped elf image.
...
Without this, we end up with mmap leaks. Thanks to Humberto Abdelnur
for suggesting this.
2010-03-26 15:54:14 -07:00
Konstantin Belousov
9f79621a29
Enough for now for ptrace backend
2010-03-08 20:55:50 +02:00
Konstantin Belousov
752ce15c4f
Preliminary version of freebsd syscall unwinder
2010-03-08 19:45:54 +02:00
Konstantin Belousov
d7eea91448
Cast caddr_t argument for ptrace
2010-03-07 12:27:03 +02:00
Konstantin Belousov
78cb28b4a6
PT_CONTINUE.
2010-03-06 16:20:47 +02:00
Konstantin Belousov
d4a4ddd23d
Provide access to the general regs on FreeBSD.
2010-03-06 16:17:21 +02:00
Konstantin Belousov
cf6ae3548f
Code to read/write user memory on FreeBSD
2010-03-06 15:04:56 +02:00
Konstantin Belousov
d11456ffbf
Code to read/write fpregs on FreeBSD
2010-03-06 14:55:11 +02:00
Konstantin Belousov
905034ce72
Initial attempt at the build infrastructure for FreeBSD.
2010-03-06 00:41:37 +02:00
Arun Sharma
6aec15799d
Fix ppc32 build.
...
Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
2009-04-13 11:44:45 -07:00
Bruna Moreira
1eddefc371
[ARM] This patch add some missing bits on ARM platform.
...
* src/arm/unwind_i (arm_lock, arm_local_resume): Define.
* src/ptrace/_UPT_find_proc_info.c: Handle ARM like X86 etc.
* tests/flush-cache.S (flush_cache): Add (dummy) ARM-version.
ARM does need executable stack, even on Linux...
Signed-off-by: Anderson Lizardo <anderson.lizardo@indt.org.br>
Signed-off-by: Bruna Moreira <bruna.moreira@indt.org.br>
2008-04-21 13:43:18 -06:00
Daniel Jacobowitz
3842dac733
Add initial ARM and MIPS support. To support this, also enable the
...
reading of .debug_frame sections (used in lieu of .eh_frame sections
when they're not available).
2008-02-04 17:16:37 -07:00
Jose Flavio Aguilar Paulino
4499bb29a6
[PPC32] First check-in to add preliminary support for Linux/PPC32.
2007-09-12 21:52:25 -06:00
Jose Flavio Aguilar Paulino
32e2187fab
[PPC64] Get "make check" to work on PPC64 Linux. Add a README entry
...
describing the expected results.
2007-08-27 09:11:37 -06:00
David Mosberger-Tang
e6b9f350f7
Introduce a tdep_get_func_addr_hook() in the ELF lookup_symbol()
...
routine and add address-space argument. This is needed because on
PPC64, a the function-name symbol refers to a function descriptor
(unlike, for example, on ia64, where the @fptr() operator is needed to
refer to a function descriptor). Thus, in order to look up the name
of a function, we need to dereference the function descriptor. To
make matters more "interesting", the function descriptors are normally
resolved by the dynamic linker, so we can't get their values from the
ELF file. Instead, we have to read them from the running image, hence
the need for the address-space argument.
2007-08-22 13:02:09 -06:00
Jose Flavio Aguilar Paulino
b33021e4b2
Add PPC64 support.
2007-08-02 09:59:43 -06:00
David Mosberger-Tang
8c94e12429
(_UPT_find_proc_info): Fix potential crash due to uninitialized pointer.
...
Be sure to clear pi->unwind_info when looking up the kernel table and
not needing the unwind-info. Otherwise, _UPT_put_unwind_info() may
erroneously call free() on the pointer, even though that space wasn't
malloc'd, leading to crashes..
2006-07-26 15:43:23 -06: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
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
07b01ad205
Include "libunwind_i.h" instead of "tdep.h" and "internal.h".
...
(Logical change 1.294)
2005-05-20 09:48:08 +00:00
mostang.com!davidm
10a269d6d0
Also enable DWARF code for UNW_TARGET_HPPA.
...
2004/11/23 16:59:56-08:00 mostang.com!davidm
(_UPTi_find_unwind_table): Implement first draft for x86/-64.
(Logical change 1.290)
2005-05-03 09:13:17 +00:00
mostang.com!davidm
4849af2d09
Adjust for "ia64_rse" to "rse" prefix change.
...
2004/11/23 16:59:56-08:00 mostang.com!davidm
(_UPT_access_reg): If the register is out of range, set errno
to EINVAL.
When encountering an error while accessing a register,
print the corresponding error string.
(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
e6446885f4
Initial revision
2005-05-03 09:13:17 +00:00
hp.com!davidm
b85ca59440
Auto merged
...
2004/12/02 18:37:47-08:00 hp.com!davidm
(get_list_addr): Even the "it's missing" version of this routine
must clear *countp to avoid spurious failures.
2004/11/03 11:45:24-08:00 hp.com!davidm
Auto merged
2004/10/21 16:06:28+02:00 homeip.net!davidm
(get_list_addr): Don't fail with -UNW_ENOINFO just because something
in /proc/maps isn't mappable.
(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
828d48662d
(UNW_HPPA_IP): New entry.
...
2004/12/02 00:40:45-08:00 mostang.com!davidm
(_UPT_reg_offset): Add minimal set of definitions for HPPA.
2004/11/23 16:59:56-08:00 mostang.com!davidm
Fix offset for UNW_X86_64_RBP.
(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
5b20c6e082
(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
ea7155ebfd
(get_list_addr): Clear ui->ei.image/ui->ei.size after unmapping the
...
image.
(Logical change 1.286)
2005-03-31 21:18:27 +00:00
hp.com!davidm
346b85ec54
(get_list_addr): Don't fail with -UNW_ENOINFO just because something
...
in /proc/maps isn't mappable.
(Logical change 1.279)
2004-11-03 19:44:44 +00:00
homeip.net!davidm
99784e02d3
(_UPTi_find_unwind_table): Provide dummy x86-64 implementation so
...
"make check" can be run.
(Logical change 1.253)
2004-08-20 11:23:15 +00:00
homeip.net!davidm
d8c89b8a01
(_UPT_reg_offset): Provide x86-64 register offsts (untested).
...
(Logical change 1.253)
2004-08-20 11:23:15 +00:00
hp.com!davidm
c4d1854621
(get_list_addrr): Don't forget to call maps_close() on error-return.
...
(Logical change 1.237)
2004-06-19 06:11:16 +00:00
hp.com!davidm
14a264e044
(get_list_addr): Add an empty implementation of unsupported platforms.
...
(Logical change 1.233)
2004-05-06 22:02:00 +00:00
mostang.com!davidm
f8bc3b80d1
(get_list_addr): New function.
...
(_UPT_get_dyn_info_list_addr): Factor platform-specific code into
separate inline-function. Enable that code for ia64 linux
only (e.g., on HP-UX it needs to use dlmodinfo()).
(Logical change 1.218)
2004-04-28 04:54:17 +00:00
mostang.com!davidm
18222990f2
(_UPT_get_dyn_info_list_addr): Pass size of path to maps_next().
...
(Logical change 1.199)
2004-03-31 07:38:06 +00:00
mostang.com!davidm
84109794bd
(_UPT_access_mem): Fix typo in Debug() macro calls.
...
(Logical change 1.174)
2004-02-19 08:01:52 +00:00
hp.com!davidm
4c9772769b
Update.
...
2004/01/27 21:49:09-08:00 hp.com!davidm
Rename: src/_UPT_get_dyn_info_list_addr.c -> src/ptrace/_UPT_get_dyn_info_list_addr.c
(Logical change 1.162)
2004-01-30 00:01:24 +00:00
hp.com!davidm
26465f4a7d
Update.
...
2004/01/27 21:49:09-08:00 hp.com!davidm
Rename: src/_UPT_find_proc_info.c -> src/ptrace/_UPT_find_proc_info.c
(Logical change 1.162)
2004-01-30 00:01:24 +00:00
hp.com!davidm
c5a37d6efc
Update.
...
2004/01/27 21:49:09-08:00 hp.com!davidm
Rename: src/_UPT_access_reg.c -> src/ptrace/_UPT_access_reg.c
(Logical change 1.162)
2004-01-30 00:01:24 +00:00
hp.com!davidm
3152b04bb4
Update.
...
2004/01/27 21:49:09-08:00 hp.com!davidm
Rename: src/_UPT_access_mem.c -> src/ptrace/_UPT_access_mem.c
(Logical change 1.162)
2004-01-30 00:01:24 +00:00
hp.com!davidm
19bda93f0a
Rename: src/_UPT_resume.c -> src/ptrace/_UPT_resume.c
...
(Logical change 1.162)
2004-01-30 00:01:24 +00:00
hp.com!davidm
46c0a3043e
Rename: src/_UPT_reg_offset.c -> src/ptrace/_UPT_reg_offset.c
...
(Logical change 1.162)
2004-01-30 00:01:24 +00:00
hp.com!davidm
95f6295191
Rename: src/_UPT_put_unwind_info.c -> src/ptrace/_UPT_put_unwind_info.c
...
(Logical change 1.162)
2004-01-30 00:01:24 +00:00
hp.com!davidm
16583d8ff6
Rename: src/_UPT_internal.h -> src/ptrace/_UPT_internal.h
...
(Logical change 1.162)
2004-01-30 00:01:24 +00:00