Split arch_translate_address into this and arch_translate_address_dyn
The former is called when ltelf is available. The latter in dynamic context
when ltelf is not necessary anymore (or if the data is necessary, it will
have been copied out to struct library).
diff --git a/breakpoints.c b/breakpoints.c
index 2b1f304..9536266 100644
--- a/breakpoints.c
+++ b/breakpoints.c
@@ -16,7 +16,16 @@
#ifndef ARCH_HAVE_TRANSLATE_ADDRESS
int
-arch_translate_address(struct Process *proc,
+arch_translate_address_dyn(struct Process *proc,
+ target_address_t addr, target_address_t *ret)
+{
+ *ret = addr;
+ return 0;
+}
+
+struct ltelf;
+int
+arch_translate_address(struct ltelf *lte,
target_address_t addr, target_address_t *ret)
{
*ret = addr;