diff options
author | Petr Machata <pmachata@redhat.com> | 2012-05-29 00:42:59 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-08-29 19:03:17 +0200 |
commit | bac2da505ee174b7fb984b975c5938f88f0dbab2 (patch) | |
tree | 8435ec7dae6d5cc5284822a2e2378f33f192d5d4 /breakpoints.c | |
parent | 26ef4cadd7d5ed7a525bd88cf9d0f05fc07f69de (diff) | |
download | ltrace-bac2da505ee174b7fb984b975c5938f88f0dbab2.tar.gz |
Move target_address_t to arch.h, rename to arch_addr_t
Note that the placement under arch.h is currently conceptual only. Since
no backend defines ARCH_HAVE_ADDRESS_TYPES, it's actually in sysdep.h in
all cases.
Diffstat (limited to 'breakpoints.c')
-rw-r--r-- | breakpoints.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/breakpoints.c b/breakpoints.c index 8dc09df..e7120ee 100644 --- a/breakpoints.c +++ b/breakpoints.c @@ -20,7 +20,7 @@ #ifndef ARCH_HAVE_TRANSLATE_ADDRESS int arch_translate_address_dyn(struct Process *proc, - target_address_t addr, target_address_t *ret) + arch_addr_t addr, arch_addr_t *ret) { *ret = addr; return 0; @@ -29,7 +29,7 @@ arch_translate_address_dyn(struct Process *proc, struct ltelf; int arch_translate_address(struct ltelf *lte, - target_address_t addr, target_address_t *ret) + arch_addr_t addr, arch_addr_t *ret) { *ret = addr; return 0; @@ -95,7 +95,7 @@ arch_breakpoint_clone(struct breakpoint *retp, struct breakpoint *sbp) static void breakpoint_init_base(struct breakpoint *bp, struct Process *proc, - target_address_t addr, struct library_symbol *libsym) + arch_addr_t addr, struct library_symbol *libsym) { bp->cbs = NULL; bp->addr = addr; @@ -110,7 +110,7 @@ breakpoint_init_base(struct breakpoint *bp, struct Process *proc, * need process for anything. */ int breakpoint_init(struct breakpoint *bp, struct Process *proc, - target_address_t addr, struct library_symbol *libsym) + arch_addr_t addr, struct library_symbol *libsym) { breakpoint_init_base(bp, proc, addr, libsym); return arch_breakpoint_init(proc, bp); @@ -357,7 +357,7 @@ disable_all_breakpoints(Process *proc) { * for one structure. */ struct entry_breakpoint { struct breakpoint super; - target_address_t dyn_addr; + arch_addr_t dyn_addr; }; static void @@ -366,7 +366,7 @@ entry_breakpoint_on_hit(struct breakpoint *a, struct Process *proc) struct entry_breakpoint *bp = (void *)a; if (proc == NULL || proc->leader == NULL) return; - target_address_t dyn_addr = bp->dyn_addr; + arch_addr_t dyn_addr = bp->dyn_addr; delete_breakpoint(proc, bp->super.addr); linkmap_init(proc, dyn_addr); arch_dynlink_done(proc); @@ -374,7 +374,7 @@ entry_breakpoint_on_hit(struct breakpoint *a, struct Process *proc) int entry_breakpoint_init(struct Process *proc, - struct entry_breakpoint *bp, target_address_t addr, + struct entry_breakpoint *bp, arch_addr_t addr, struct library *lib) { int err; |