aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-10-26 23:42:17 +0200
committerPetr Machata <pmachata@redhat.com>2012-10-26 23:42:17 +0200
commit0f6e6d9861ce790cb8b7d07aca28a5878d705359 (patch)
treef5a51847c9fb1095b19c092e697850939c29a908 /sysdeps
parentd3202de1176057520f49b5e6231b8774f6b6b31f (diff)
downloadltrace-0f6e6d9861ce790cb8b7d07aca28a5878d705359.tar.gz
Add os_process_data and related
This is meant to be the same for per-OS configuration as arch_process_data is for per-arch configuration.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/linux-gnu/Makefile.am8
-rw-r--r--sysdeps/linux-gnu/os.h19
-rw-r--r--sysdeps/sysdep.h24
3 files changed, 36 insertions, 15 deletions
diff --git a/sysdeps/linux-gnu/Makefile.am b/sysdeps/linux-gnu/Makefile.am
index 85ad110..43c103e 100644
--- a/sysdeps/linux-gnu/Makefile.am
+++ b/sysdeps/linux-gnu/Makefile.am
@@ -42,12 +42,8 @@ ___libos_la_SOURCES = \
___libos_la_LIBADD = \
libcpu.la
-noinst_HEADERS = \
- arch_syscallent.h \
- signalent1.h \
- syscallent1.h \
- trace.h \
- events.h
+noinst_HEADERS = arch_syscallent.h signalent1.h syscallent1.h trace.h \
+ events.h os.h
EXTRA_DIST = \
arch_mksyscallent \
diff --git a/sysdeps/linux-gnu/os.h b/sysdeps/linux-gnu/os.h
new file mode 100644
index 0000000..76940eb
--- /dev/null
+++ b/sysdeps/linux-gnu/os.h
@@ -0,0 +1,19 @@
+/*
+ * This file is part of ltrace.
+ * Copyright (C) 2012 Petr Machata
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
diff --git a/sysdeps/sysdep.h b/sysdeps/sysdep.h
index 224eeaf..e8e287f 100644
--- a/sysdeps/sysdep.h
+++ b/sysdeps/sysdep.h
@@ -22,6 +22,16 @@
#define LTRACE_SYSDEP_H
#include <arch.h>
+#ifndef ARCH_HAVE_ADDRESS_TYPES
+/* We should in general be able to trace 64-bit processes with 32-bit
+ * ltrace. (At least PPC has several PTRACE requests related to
+ * tracing 64-on-32, so presumably it should be possible.) But ltrace
+ * is currently hopelessly infested with using void* for host address.
+ * So keep with it, for now. */
+typedef void *arch_addr_t;
+#endif
+
+#include <os.h>
#ifndef ARCH_HAVE_LTELF_DATA
struct arch_ltelf_data {
@@ -43,18 +53,14 @@ struct arch_library_data {
};
#endif
-#ifndef ARCH_HAVE_PROCESS_DATA
-struct arch_process_data {
+#ifndef OS_HAVE_PROCESS_DATA
+struct os_process_data {
};
#endif
-#ifndef ARCH_HAVE_ADDRESS_TYPES
-/* We should in general be able to trace 64-bit processes with 32-bit
- * ltrace. (At least PPC has several PTRACE requests related to
- * tracing 64-on-32, so presumably it should be possible.) But ltrace
- * is currently hopelessly infested with using void* for host address.
- * So keep with it, for now. */
-typedef void *arch_addr_t;
+#ifndef ARCH_HAVE_PROCESS_DATA
+struct arch_process_data {
+};
#endif
#endif /* LTRACE_SYSDEP_H */