Petr Machata | e99af27 | 2012-10-26 00:29:52 +0200 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of ltrace. |
Petr Machata | 8fdd09b | 2013-10-11 15:08:30 +0200 | [diff] [blame] | 3 | * Copyright (C) 2012,2013 Petr Machata, Red Hat Inc. |
Petr Machata | e99af27 | 2012-10-26 00:29:52 +0200 | [diff] [blame] | 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 | |
Petr Machata | 50b9603 | 2012-03-24 04:56:52 +0100 | [diff] [blame] | 21 | #ifndef LTRACE_SYSDEP_H |
| 22 | #define LTRACE_SYSDEP_H |
Petr Machata | d3dc17b | 2012-03-21 03:23:25 +0100 | [diff] [blame] | 23 | |
Marc Kleine-Budde | 584929c | 2010-02-03 20:24:13 +0100 | [diff] [blame] | 24 | #include <arch.h> |
Petr Machata | 0f6e6d9 | 2012-10-26 23:42:17 +0200 | [diff] [blame] | 25 | #ifndef ARCH_HAVE_ADDRESS_TYPES |
| 26 | /* We should in general be able to trace 64-bit processes with 32-bit |
Petr Machata | 2f140bf | 2013-10-11 21:15:19 +0200 | [diff] [blame] | 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. */ |
Petr Machata | 0f6e6d9 | 2012-10-26 23:42:17 +0200 | [diff] [blame] | 32 | typedef void *arch_addr_t; |
| 33 | #endif |
| 34 | |
| 35 | #include <os.h> |
Petr Machata | d3dc17b | 2012-03-21 03:23:25 +0100 | [diff] [blame] | 36 | |
Petr Machata | 50b9603 | 2012-03-24 04:56:52 +0100 | [diff] [blame] | 37 | #ifndef ARCH_HAVE_LTELF_DATA |
| 38 | struct arch_ltelf_data { |
| 39 | }; |
| 40 | #endif |
| 41 | |
Petr Machata | 9f819d5 | 2013-10-16 14:46:24 +0200 | [diff] [blame] | 42 | #ifndef OS_HAVE_BREAKPOINT_DATA |
| 43 | struct os_breakpoint_data { |
| 44 | }; |
| 45 | #endif |
| 46 | |
Petr Machata | 50b9603 | 2012-03-24 04:56:52 +0100 | [diff] [blame] | 47 | #ifndef ARCH_HAVE_BREAKPOINT_DATA |
| 48 | struct arch_breakpoint_data { |
| 49 | }; |
| 50 | #endif |
| 51 | |
Petr Machata | 8fdd09b | 2013-10-11 15:08:30 +0200 | [diff] [blame] | 52 | #ifndef OS_HAVE_LIBRARY_SYMBOL_DATA |
| 53 | struct os_library_symbol_data { |
| 54 | }; |
| 55 | #endif |
| 56 | |
Petr Machata | e4e693b | 2012-03-27 03:10:53 +0200 | [diff] [blame] | 57 | #ifndef ARCH_HAVE_LIBRARY_SYMBOL_DATA |
| 58 | struct arch_library_symbol_data { |
| 59 | }; |
| 60 | #endif |
| 61 | |
Petr Machata | 8fdd09b | 2013-10-11 15:08:30 +0200 | [diff] [blame] | 62 | #ifndef OS_HAVE_LIBRARY_DATA |
| 63 | struct os_library_data { |
| 64 | }; |
| 65 | #endif |
| 66 | |
Petr Machata | 994ad6d | 2012-04-17 03:07:04 +0200 | [diff] [blame] | 67 | #ifndef ARCH_HAVE_LIBRARY_DATA |
| 68 | struct arch_library_data { |
| 69 | }; |
| 70 | #endif |
| 71 | |
Petr Machata | 0f6e6d9 | 2012-10-26 23:42:17 +0200 | [diff] [blame] | 72 | #ifndef OS_HAVE_PROCESS_DATA |
| 73 | struct os_process_data { |
Petr Machata | 744f255 | 2012-04-15 04:33:18 +0200 | [diff] [blame] | 74 | }; |
| 75 | #endif |
| 76 | |
Petr Machata | 0f6e6d9 | 2012-10-26 23:42:17 +0200 | [diff] [blame] | 77 | #ifndef ARCH_HAVE_PROCESS_DATA |
| 78 | struct arch_process_data { |
| 79 | }; |
Petr Machata | bac2da5 | 2012-05-29 00:42:59 +0200 | [diff] [blame] | 80 | #endif |
| 81 | |
Petr Machata | 50b9603 | 2012-03-24 04:56:52 +0100 | [diff] [blame] | 82 | #endif /* LTRACE_SYSDEP_H */ |