1 /* Frame unwinder for frames with libunwind frame information.
3 Copyright (C) 2003, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5 Contributed by Jeff Johnston.
7 This file is part of GDB.
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 3 of the License, or
12 (at your option) any later version.
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.
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/>. */
22 #ifdef HAVE_LIBUNWIND_H
29 #ifndef LIBUNWIND_FRAME_H
30 #define LIBUNWIND_FRAME_H 1
32 #include "libunwind.h"
34 struct libunwind_descr
38 int (*is_fpreg) (int);
40 void *special_accessors;
43 int libunwind_frame_sniffer (const struct frame_unwind *self,
44 struct frame_info *this_frame,
47 int libunwind_sigtramp_frame_sniffer (const struct frame_unwind *self,
48 struct frame_info *this_frame,
51 void libunwind_frame_set_descr (struct gdbarch *arch, struct libunwind_descr *descr);
53 void libunwind_frame_this_id (struct frame_info *this_frame, void **this_cache,
54 struct frame_id *this_id);
55 struct value *libunwind_frame_prev_register (struct frame_info *this_frame,
56 void **this_cache, int regnum);
57 void libunwind_frame_dealloc_cache (struct frame_info *self, void *cache);
58 CORE_ADDR libunwind_frame_base_address (struct frame_info *this_frame,
61 int libunwind_is_initialized (void);
63 int libunwind_search_unwind_table (void *as, long ip, void *di,
64 void *pi, int need_unwind_info, void *args);
66 unw_word_t libunwind_find_dyn_list (unw_addr_space_t, unw_dyn_info_t *,
69 int libunwind_get_reg_special (struct gdbarch *gdbarch,
70 struct regcache *regcache,
71 int regnum, void *buf);
73 #endif /* libunwind-frame.h */
75 #endif /* HAVE_LIBUNWIND_H */