Committed after testing and independent approval/endorsement.
[deliverable/binutils-gdb.git] / gdb / libunwind-frame.h
CommitLineData
0e5d83e3
JJ
1/* Frame unwinder for frames with libunwind frame information.
2
3 Copyright 2003 Free Software Foundation, Inc.
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
21 Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA. */
23
24#ifdef HAVE_LIBUNWIND_H
25
26#ifndef LIBUNWIND_FRAME_H
27#define LIBUNWIND_FRAME_H 1
28
29#include "libunwind.h"
30
31struct frame_info;
32
33struct libunwind_descr
34{
35 int (*gdb2uw) (int);
36 int (*uw2gdb) (int);
37 int (*is_fpreg) (int);
38 void *accessors;
39};
40
41const struct frame_unwind *libunwind_frame_sniffer (struct frame_info *next_frame);
42
43void libunwind_frame_set_descr (struct gdbarch *arch, struct libunwind_descr *descr);
44
45void libunwind_frame_this_id (struct frame_info *next_frame, void **this_cache,
46 struct frame_id *this_id);
47void libunwind_frame_prev_register (struct frame_info *next_frame, void **this_cache,
48 int regnum, int *optimizedp,
49 enum lval_type *lvalp, CORE_ADDR *addrp,
50 int *realnump, void *valuep);
51CORE_ADDR libunwind_frame_base_address (struct frame_info *next_frame, void **this_cache);
52
53int libunwind_is_initialized (void);
54
55int libunwind_search_unwind_table (void *as, long ip, void *di,
56 void *pi, int need_unwind_info, void *args);
57
58unw_word_t libunwind_find_dyn_list (unw_addr_space_t, void *, size_t,
59 unw_word_t, unw_word_t, void *);
60
61#endif /* libunwind-frame.h */
62
63#endif /* HAVE_LIBUNWIND_H */
This page took 0.051706 seconds and 4 git commands to generate.