2003-07-18 Andrew Cagney <cagney@redhat.com>
[external/binutils.git] / gdb / dwarf2-frame.h
1 /* Frame unwinder for frames with DWARF Call Frame Information.
2
3    Copyright 2003 Free Software Foundation, Inc.
4
5    Contributed by Mark Kettenis.
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 #ifndef DWARF2_FRAME_H
25 #define DWARF2_FRAME_H 1
26
27 struct objfile;
28 struct frame_info;
29
30 /* Return the frame unwind methods for the function that contains PC,
31    or NULL if it can't be handled by DWARF CFI frame unwinder.  */
32
33 const struct frame_unwind *dwarf2_frame_sniffer (struct frame_info *next_frame);
34
35 /* Return the frame base methods for the function that contains PC, or
36    NULL if it can't be handled by the DWARF CFI frame unwinder.  */
37
38 const struct frame_base *dwarf2_frame_base_sniffer (struct frame_info *next_frame);
39
40 /* Register the DWARF CFI for OBJFILE.  */
41
42 void dwarf2_frame_build_info (struct objfile *objfile);
43
44 #endif /* dwarf2-frame.h */