Add missing implementations of default callback
diff --git a/breakpoints.c b/breakpoints.c
index 5891ee7..84dac17 100644
--- a/breakpoints.c
+++ b/breakpoints.c
@@ -15,6 +15,16 @@
#include "proc.h"
#include "library.h"
+#ifndef ARCH_HAVE_TRANSLATE_ADDRESS
+int
+arch_translate_address(struct Process *proc,
+ target_address_t addr, target_address_t *ret)
+{
+ *ret = addr;
+ return 0;
+}
+#endif
+
void
breakpoint_on_hit(struct breakpoint *bp, struct Process *proc)
{
diff --git a/ltrace-elf.c b/ltrace-elf.c
index 5925e92..a609307 100644
--- a/ltrace-elf.c
+++ b/ltrace-elf.c
@@ -31,6 +31,11 @@
{
return 0;
}
+
+void
+arch_elf_destroy(struct ltelf *lte)
+{
+}
#endif
int
diff --git a/sysdeps/linux-gnu/ppc/arch.h b/sysdeps/linux-gnu/ppc/arch.h
index b2054e8..66281c9 100644
--- a/sysdeps/linux-gnu/ppc/arch.h
+++ b/sysdeps/linux-gnu/ppc/arch.h
@@ -24,6 +24,7 @@
#define ARCH_HAVE_LTELF_DATA
#define ARCH_HAVE_BREAKPOINT_DATA
#define ARCH_HAVE_LIBRARY_SYMBOL_DATA
+#define ARCH_HAVE_TRANSLATE_ADDRESS
struct library_symbol;
struct arch_ltelf_data {