sysdep.h revision 8fdd09b028426f92df614d6ebe5c56d99877febf
1/*
2 * This file is part of ltrace.
3 * Copyright (C) 2012,2013 Petr Machata, Red Hat Inc.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18 * 02110-1301 USA
19 */
20
21#ifndef LTRACE_SYSDEP_H
22#define LTRACE_SYSDEP_H
23
24#include <arch.h>
25#ifndef ARCH_HAVE_ADDRESS_TYPES
26/* We should in general be able to trace 64-bit processes with 32-bit
27 * ltrace (this is possible on PPC, and generally there should be no
28 * problem tracing x86_64 processes from x32 ltrace, though it isn't
29 * possible from i386 ltrace).  But ltrace is currently hopelessly
30 * infested with using void* for host address.  So keep with it, for
31 * now.  */
32typedef void *arch_addr_t;
33#endif
34
35#include <os.h>
36
37#ifndef ARCH_HAVE_LTELF_DATA
38struct arch_ltelf_data {
39};
40#endif
41
42#ifndef ARCH_HAVE_BREAKPOINT_DATA
43struct arch_breakpoint_data {
44};
45#endif
46
47#ifndef OS_HAVE_LIBRARY_SYMBOL_DATA
48struct os_library_symbol_data {
49};
50#endif
51
52#ifndef ARCH_HAVE_LIBRARY_SYMBOL_DATA
53struct arch_library_symbol_data {
54};
55#endif
56
57#ifndef OS_HAVE_LIBRARY_DATA
58struct os_library_data {
59};
60#endif
61
62#ifndef ARCH_HAVE_LIBRARY_DATA
63struct arch_library_data {
64};
65#endif
66
67#ifndef OS_HAVE_PROCESS_DATA
68struct os_process_data {
69};
70#endif
71
72#ifndef ARCH_HAVE_PROCESS_DATA
73struct arch_process_data {
74};
75#endif
76
77#endif /* LTRACE_SYSDEP_H */
78