1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-25 16:47:38 +01:00

eh_elf: adopt Makefile.am

This commit is contained in:
Théophile Bastian 2018-06-01 11:19:44 +02:00
parent 4fb0baaa89
commit 7f70295713
5 changed files with 33 additions and 5 deletions

View file

@ -53,6 +53,7 @@ extern int _UPT_access_fpreg (unw_addr_space_t, unw_regnum_t, unw_fpreg_t *,
extern int _UPT_get_proc_name (unw_addr_space_t, unw_word_t, char *, size_t,
unw_word_t *, void *);
extern int _UPT_resume (unw_addr_space_t, unw_cursor_t *, void *);
extern int _UPT_get_pid (void *);
extern unw_accessors_t _UPT_accessors;

View file

@ -48,7 +48,8 @@ libunwind_ptrace_la_SOURCES = \
ptrace/_UPT_create.c ptrace/_UPT_destroy.c \
ptrace/_UPT_find_proc_info.c ptrace/_UPT_get_dyn_info_list_addr.c \
ptrace/_UPT_put_unwind_info.c ptrace/_UPT_get_proc_name.c \
ptrace/_UPT_reg_offset.c ptrace/_UPT_resume.c
ptrace/_UPT_reg_offset.c ptrace/_UPT_resume.c \
ptrace/_UPT_get_pid.c
noinst_HEADERS += ptrace/_UPT_internal.h
### libunwind-coredump:
@ -186,6 +187,16 @@ libunwind_elfxx_la_LIBADD = $(LIBLZMA)
noinst_LTLIBRARIES += $(LIBUNWIND_ELF)
libunwind_la_LIBADD += $(LIBUNWIND_ELF)
libunwind_eh_elf_la_SOURCES = \
eh_elf/eh_elf.c \
eh_elf/memory_map.c
libunwind_eh_elf_la_LIBADD = $(DLLIB)
noinst_LTLIBRARIES += libunwind-eh-elf.la
libunwind_la_LIBADD += libunwind-eh-elf.la
# The list of files that go into libunwind and libunwind-aarch64:
noinst_HEADERS += aarch64/init.h aarch64/offsets.h aarch64/unwind_i.h
libunwind_la_SOURCES_aarch64_common = $(libunwind_la_SOURCES_common) \

View file

@ -12,5 +12,21 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
************************************************/
#include "eh_elf_i.h"
#include "eh_elf.h"
int eh_elf_init_local() {
return mmap_init_local();
}
int eh_elf_init_pid(pid_t pid) {
return mmap_init_pid(pid);
}
void eh_elf_clear() {
mmap_clear();
}
int eh_elf_step_cursor(struct cursor *cursor) {
// TODO implement
return 0;
}

View file

@ -33,10 +33,10 @@ int eh_elf_init_local();
int eh_elf_init_pid(pid_t pid);
/// Cleanup everything that was allocated by eh_elf_init_*
void eh_elf_clean();
void eh_elf_clear();
/** Step the cursor using eh_elf mechanisms.
*
* Return 0 if everything went file, otherwise, return a negative value.
* Return 0 if everything went fine, otherwise, return a negative value.
**/
int eh_elf_step_cursor(struct cursor *cursor);

View file

@ -42,7 +42,7 @@ unw_init_remote (unw_cursor_t *cursor, unw_addr_space_t as, void *as_arg)
Debug (1, "(cursor=%p)\n", c);
eh_elf_init_pid(as.acc.get_pid(as_arg));
eh_elf_init_pid(as->acc.get_pid(as_arg));
c->dwarf.as = as;
if (as == unw_local_addr_space)