diff options
author | Petr Machata <pmachata@redhat.com> | 2012-03-28 02:39:49 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-04-19 01:34:04 +0200 |
commit | c67a6e62bc7e95f7f181a51c5b314ef10a6e231e (patch) | |
tree | f058d131c69d8ee501508a4105c93425a35009d9 | |
parent | ce40b3974d485837d130afc6b8034a83b3d03c5b (diff) | |
download | ltrace-c67a6e62bc7e95f7f181a51c5b314ef10a6e231e.tar.gz |
Add missing implementations of default callback
-rw-r--r-- | breakpoints.c | 10 | ||||
-rw-r--r-- | ltrace-elf.c | 5 | ||||
-rw-r--r-- | sysdeps/linux-gnu/ppc/arch.h | 1 |
3 files changed, 16 insertions, 0 deletions
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 @@ arch_elf_init(struct ltelf *lte) { 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 { |