diff options
author | Petr Machata <pmachata@redhat.com> | 2013-11-04 19:56:42 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2013-11-05 01:58:07 +0100 |
commit | ba36f0ac51d194c599fd56457796e33e62c3220b (patch) | |
tree | 12534d854c73280ed76915cb3bd24f64fbae1847 | |
parent | ce011e2111524f8cc5e246f2bcfa9eb20984d4bf (diff) | |
download | ltrace-ba36f0ac51d194c599fd56457796e33e62c3220b.tar.gz |
Cleanups
-rw-r--r-- | sysdeps/linux-gnu/events.c | 3 | ||||
-rw-r--r-- | sysdeps/linux-gnu/ppc/plt.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/linux-gnu/events.c b/sysdeps/linux-gnu/events.c index 6cda97e..51c2cae 100644 --- a/sysdeps/linux-gnu/events.c +++ b/sysdeps/linux-gnu/events.c @@ -197,6 +197,7 @@ next_event(void) debug(DEBUG_EVENT, "event: NEW: pid=%d", pid); return &event; } + get_arch_dep(event.proc); debug(3, "event from pid %u", pid); struct process *leader = event.proc->leader; @@ -313,7 +314,7 @@ next_event(void) actually seen this on an Itanium machine on RHEL 5, I don't remember the exact kernel version anymore. ia64-sigill.s in the test suite tests this. Petr Machata 2011-06-08. */ - void * break_address + arch_addr_t break_address = event.proc->instruction_pointer - DECR_PC_AFTER_BREAK; if ((stop_signal == SIGSEGV || stop_signal == SIGILL) && leader != NULL diff --git a/sysdeps/linux-gnu/ppc/plt.c b/sysdeps/linux-gnu/ppc/plt.c index 8b8b68c..a43128b 100644 --- a/sysdeps/linux-gnu/ppc/plt.c +++ b/sysdeps/linux-gnu/ppc/plt.c @@ -205,7 +205,6 @@ arch_dynlink_done(struct process *proc) if (proc->e_machine == EM_PPC) ppc32_delayed_symbol(libsym); - fprintf(stderr, "activating %s\n", libsym->name); if (proc_activate_delayed_symbol(proc, libsym) < 0) return; @@ -483,7 +482,7 @@ arch_elf_init(struct ltelf *lte, struct library *lib) size_t count = vect_size(<e->plt_relocs); lte->arch.plt_stub_vma = glink_vma - - (GElf_Addr)count * PPC_PLT_STUB_SIZE; + - (GElf_Addr) count * PPC_PLT_STUB_SIZE; debug(1, "stub_vma is %#" PRIx64, lte->arch.plt_stub_vma); } else if (lte->ehdr.e_machine == EM_PPC64) { |