aboutsummaryrefslogtreecommitdiff
path: root/ltrace-elf.h
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-12-17 03:20:34 +0100
committerPetr Machata <pmachata@redhat.com>2012-12-17 03:20:34 +0100
commit929bd57ca202fd2f2e8485ebf65d683e664f67b5 (patch)
treec286cdcc9dd72faa6a6d99eeae92a82b71a0257d /ltrace-elf.h
parent5cde20b3588001c9c3a51e0e7b902fff58393706 (diff)
downloadltrace-929bd57ca202fd2f2e8485ebf65d683e664f67b5.tar.gz
struct Process becomes struct process
This is for consistency with other structures, and ultimately with Linux coding style. The typedef ("Process") was dropped as well for this reason. This opportunity was used to fix coding style around the impacted lines.
Diffstat (limited to 'ltrace-elf.h')
-rw-r--r--ltrace-elf.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/ltrace-elf.h b/ltrace-elf.h
index 1a1321e..f0b7c90 100644
--- a/ltrace-elf.h
+++ b/ltrace-elf.h
@@ -26,11 +26,9 @@
#include <gelf.h>
#include <stdlib.h>
-#include "sysdep.h"
-struct Process;
-struct library;
-struct library_symbol;
+#include "forward.h"
+#include "sysdep.h"
/* XXX Ok, the original idea was to separate the low-level ELF data
* from the abstract "struct library" object, but we use some of the
@@ -73,12 +71,12 @@ void do_close_elf(struct ltelf *lte);
/* XXX is it possible to put breakpoints in VDSO and VSYSCALL
* pseudo-libraries? For now we assume that all libraries can be
* opened via a filesystem. BASE is ignored for ET_EXEC files. */
-int ltelf_read_library(struct library *lib, struct Process *proc,
+int ltelf_read_library(struct library *lib, struct process *proc,
const char *filename, GElf_Addr bias);
/* Create a library object representing the main binary. The entry
* point address is stored to *ENTRYP. */
-struct library *ltelf_read_main_binary(struct Process *proc, const char *path);
+struct library *ltelf_read_main_binary(struct process *proc, const char *path);
/* Create a default PLT entry. This can be used instead (or in
* addition to) returning plt_default from arch_elf_add_plt_entry.
@@ -87,7 +85,7 @@ struct library *ltelf_read_main_binary(struct Process *proc, const char *path);
* the symbol to LTE. arch_elf_add_plt_entry has the chance to adjust
* symbol internals to its liking, and then return either plt_default
* or plt_ok. */
-int default_elf_add_plt_entry(struct Process *proc, struct ltelf *lte,
+int default_elf_add_plt_entry(struct process *proc, struct ltelf *lte,
const char *a_name, GElf_Rela *rela, size_t ndx,
struct library_symbol **ret);