2 * This file is part of ltrace.
3 * Copyright (C) 2012,2013 Petr Machata, Red Hat Inc.
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.
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.
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
21 #ifndef LTRACE_SYSDEP_H
22 #define LTRACE_SYSDEP_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
32 typedef void *arch_addr_t;
37 #ifndef ARCH_HAVE_LTELF_DATA
38 struct arch_ltelf_data {
42 #ifndef OS_HAVE_BREAKPOINT_DATA
43 struct os_breakpoint_data {
47 #ifndef ARCH_HAVE_BREAKPOINT_DATA
48 struct arch_breakpoint_data {
52 #ifndef OS_HAVE_LIBRARY_SYMBOL_DATA
53 struct os_library_symbol_data {
57 #ifndef ARCH_HAVE_LIBRARY_SYMBOL_DATA
58 struct arch_library_symbol_data {
62 #ifndef OS_HAVE_LIBRARY_DATA
63 struct os_library_data {
67 #ifndef ARCH_HAVE_LIBRARY_DATA
68 struct arch_library_data {
72 #ifndef OS_HAVE_PROCESS_DATA
73 struct os_process_data {
77 #ifndef ARCH_HAVE_PROCESS_DATA
78 struct arch_process_data {
82 #endif /* LTRACE_SYSDEP_H */