OLD | NEW |
1 /* Frame unwinder for frames with libunwind frame information. | 1 /* Frame unwinder for ia64 frames with libunwind frame information. |
2 | 2 |
3 Copyright (C) 2003, 2006-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2003, 2006-2012 Free Software Foundation, Inc. |
4 | 4 |
5 Contributed by Jeff Johnston. | 5 Contributed by Jeff Johnston. |
6 | 6 |
7 This file is part of GDB. | 7 This file is part of GDB. |
8 | 8 |
9 This program is free software; you can redistribute it and/or modify | 9 This program is free software; you can redistribute it and/or modify |
10 it under the terms of the GNU General Public License as published by | 10 it under the terms of the GNU General Public License as published by |
11 the Free Software Foundation; either version 3 of the License, or | 11 the Free Software Foundation; either version 3 of the License, or |
12 (at your option) any later version. | 12 (at your option) any later version. |
13 | 13 |
14 This program is distributed in the hope that it will be useful, | 14 This program is distributed in the hope that it will be useful, |
15 but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 GNU General Public License for more details. | 17 GNU General Public License for more details. |
18 | 18 |
19 You should have received a copy of the GNU General Public License | 19 You should have received a copy of the GNU General Public License |
20 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 20 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
21 | 21 |
22 #ifdef HAVE_LIBUNWIND_H | 22 #ifndef IA64_LIBUNWIND_TDEP_H |
| 23 #define IA64_LIBUNWIND_TDEP_H 1 |
23 | 24 |
24 struct frame_info; | 25 struct frame_info; |
25 struct frame_id; | 26 struct frame_id; |
26 struct regcache; | 27 struct regcache; |
27 struct gdbarch; | 28 struct gdbarch; |
| 29 struct frame_unwind; |
28 | 30 |
29 #ifndef LIBUNWIND_FRAME_H | 31 /* IA-64 is the only target that currently uses libunwind. If some |
30 #define LIBUNWIND_FRAME_H 1 | 32 other target wants to use it, we will need to do some abstracting |
31 | 33 in order to make it possible to have more than one |
32 #include "libunwind.h" | 34 ia64-libunwind-tdep instance. Including "libunwind.h" is wrong as |
| 35 that ends up including the libunwind-$(arch).h for the host gdb is |
| 36 running on. */ |
| 37 #include "libunwind-ia64.h" |
33 | 38 |
34 struct libunwind_descr | 39 struct libunwind_descr |
35 { | 40 { |
36 int (*gdb2uw) (int); | 41 int (*gdb2uw) (int); |
37 int (*uw2gdb) (int); | 42 int (*uw2gdb) (int); |
38 int (*is_fpreg) (int); | 43 int (*is_fpreg) (int); |
39 void *accessors; | 44 void *accessors; |
40 void *special_accessors; | 45 void *special_accessors; |
41 }; | 46 }; |
42 | 47 |
43 int libunwind_frame_sniffer (const struct frame_unwind *self, | 48 int libunwind_frame_sniffer (const struct frame_unwind *self, |
44 struct frame_info *this_frame, | 49 struct frame_info *this_frame, |
45 void **this_cache); | 50 void **this_cache); |
46 | 51 |
47 int libunwind_sigtramp_frame_sniffer (const struct frame_unwind *self, | 52 int libunwind_sigtramp_frame_sniffer (const struct frame_unwind *self, |
48 struct frame_info *this_frame, | 53 struct frame_info *this_frame, |
49 void **this_cache); | 54 void **this_cache); |
50 | 55 |
51 void libunwind_frame_set_descr (struct gdbarch *arch, | 56 void libunwind_frame_set_descr (struct gdbarch *arch, |
52 struct libunwind_descr *descr); | 57 struct libunwind_descr *descr); |
53 | 58 |
54 void libunwind_frame_this_id (struct frame_info *this_frame, void **this_cache, | 59 void libunwind_frame_this_id (struct frame_info *this_frame, void **this_cache, |
55 struct frame_id *this_id); | 60 struct frame_id *this_id); |
56 struct value *libunwind_frame_prev_register (struct frame_info *this_frame, | 61 struct value *libunwind_frame_prev_register (struct frame_info *this_frame, |
57 void **this_cache, int regnum); | 62 void **this_cache, int regnum); |
58 void libunwind_frame_dealloc_cache (struct frame_info *self, void *cache); | 63 void libunwind_frame_dealloc_cache (struct frame_info *self, void *cache); |
59 CORE_ADDR libunwind_frame_base_address (struct frame_info *this_frame, | |
60 void **this_cache); | |
61 | 64 |
62 int libunwind_is_initialized (void); | 65 int libunwind_is_initialized (void); |
63 | 66 |
64 int libunwind_search_unwind_table (void *as, long ip, void *di, | 67 int libunwind_search_unwind_table (void *as, long ip, void *di, |
65 void *pi, int need_unwind_info, void *args); | 68 void *pi, int need_unwind_info, void *args); |
66 | 69 |
67 unw_word_t libunwind_find_dyn_list (unw_addr_space_t, unw_dyn_info_t *, | 70 unw_word_t libunwind_find_dyn_list (unw_addr_space_t, unw_dyn_info_t *, |
68 void *); | 71 void *); |
69 | 72 |
70 int libunwind_get_reg_special (struct gdbarch *gdbarch, | 73 int libunwind_get_reg_special (struct gdbarch *gdbarch, |
71 struct regcache *regcache, | 74 struct regcache *regcache, |
72 int regnum, void *buf); | 75 int regnum, void *buf); |
73 | 76 |
74 #endif /* libunwind-frame.h */ | 77 #endif /* IA64_LIBUNWIND_TDEP_H */ |
75 | |
76 #endif /* HAVE_LIBUNWIND_H */ | |
OLD | NEW |