Commit | Line | Data |
---|---|---|
0e5d83e3 JJ |
1 | /* Frame unwinder for frames with libunwind frame information. |
2 | ||
6aba47ca | 3 | Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc. |
0e5d83e3 JJ |
4 | |
5 | Contributed by Jeff Johnston. | |
6 | ||
7 | This file is part of GDB. | |
8 | ||
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 | |
11 | the Free Software Foundation; either version 2 of the License, or | |
12 | (at your option) any later version. | |
13 | ||
14 | This program is distributed in the hope that it will be useful, | |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | GNU General Public License for more details. | |
18 | ||
19 | You should have received a copy of the GNU General Public License | |
20 | along with this program; if not, write to the Free Software | |
197e01b6 EZ |
21 | Foundation, Inc., 51 Franklin Street, Fifth Floor, |
22 | Boston, MA 02110-1301, USA. */ | |
0e5d83e3 JJ |
23 | |
24 | #ifdef HAVE_LIBUNWIND_H | |
25 | ||
5439edaa AC |
26 | struct frame_info; |
27 | struct frame_id; | |
45ecac4b | 28 | struct regcache; |
c5a27d9c | 29 | struct gdbarch; |
5439edaa | 30 | |
0e5d83e3 JJ |
31 | #ifndef LIBUNWIND_FRAME_H |
32 | #define LIBUNWIND_FRAME_H 1 | |
33 | ||
34 | #include "libunwind.h" | |
35 | ||
0e5d83e3 JJ |
36 | struct libunwind_descr |
37 | { | |
38 | int (*gdb2uw) (int); | |
39 | int (*uw2gdb) (int); | |
40 | int (*is_fpreg) (int); | |
41 | void *accessors; | |
c5a27d9c | 42 | void *special_accessors; |
0e5d83e3 JJ |
43 | }; |
44 | ||
45 | const struct frame_unwind *libunwind_frame_sniffer (struct frame_info *next_frame); | |
c5a27d9c | 46 | const struct frame_unwind *libunwind_sigtramp_frame_sniffer (struct frame_info *next_frame); |
0e5d83e3 JJ |
47 | |
48 | void libunwind_frame_set_descr (struct gdbarch *arch, struct libunwind_descr *descr); | |
49 | ||
50 | void libunwind_frame_this_id (struct frame_info *next_frame, void **this_cache, | |
51 | struct frame_id *this_id); | |
52 | void libunwind_frame_prev_register (struct frame_info *next_frame, void **this_cache, | |
53 | int regnum, int *optimizedp, | |
54 | enum lval_type *lvalp, CORE_ADDR *addrp, | |
f1b4b38e | 55 | int *realnump, gdb_byte *valuep); |
272dfcfd | 56 | void libunwind_frame_dealloc_cache (struct frame_info *self, void *cache); |
0e5d83e3 JJ |
57 | CORE_ADDR libunwind_frame_base_address (struct frame_info *next_frame, void **this_cache); |
58 | ||
59 | int libunwind_is_initialized (void); | |
60 | ||
61 | int libunwind_search_unwind_table (void *as, long ip, void *di, | |
62 | void *pi, int need_unwind_info, void *args); | |
63 | ||
503ff15d KB |
64 | unw_word_t libunwind_find_dyn_list (unw_addr_space_t, unw_dyn_info_t *, |
65 | void *); | |
66 | ||
45ecac4b UW |
67 | int libunwind_get_reg_special (struct gdbarch *gdbarch, |
68 | struct regcache *regcache, | |
69 | int regnum, void *buf); | |
c5a27d9c | 70 | |
0e5d83e3 JJ |
71 | #endif /* libunwind-frame.h */ |
72 | ||
73 | #endif /* HAVE_LIBUNWIND_H */ |