xref: /dflybsd-src/contrib/gdb-7/gdb/sentinel-frame.h (revision de8e141f24382815c10a4012d209bbbf7abf1112)
15796c8dcSSimon Schubert /* Code dealing with register stack frames, for GDB, the GNU debugger.
25796c8dcSSimon Schubert 
3*ef5ccd6cSJohn Marino    Copyright (C) 2003-2013 Free Software Foundation, Inc.
45796c8dcSSimon Schubert 
55796c8dcSSimon Schubert    This file is part of GDB.
65796c8dcSSimon Schubert 
75796c8dcSSimon Schubert    This program is free software; you can redistribute it and/or modify
85796c8dcSSimon Schubert    it under the terms of the GNU General Public License as published by
95796c8dcSSimon Schubert    the Free Software Foundation; either version 3 of the License, or
105796c8dcSSimon Schubert    (at your option) any later version.
115796c8dcSSimon Schubert 
125796c8dcSSimon Schubert    This program is distributed in the hope that it will be useful,
135796c8dcSSimon Schubert    but WITHOUT ANY WARRANTY; without even the implied warranty of
145796c8dcSSimon Schubert    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
155796c8dcSSimon Schubert    GNU General Public License for more details.
165796c8dcSSimon Schubert 
175796c8dcSSimon Schubert    You should have received a copy of the GNU General Public License
185796c8dcSSimon Schubert    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
195796c8dcSSimon Schubert 
205796c8dcSSimon Schubert #if !defined (SENTINEL_FRAME_H)
215796c8dcSSimon Schubert #define SENTINEL_FRAME_H 1
225796c8dcSSimon Schubert 
235796c8dcSSimon Schubert struct frame_unwind;
245796c8dcSSimon Schubert struct regcache;
255796c8dcSSimon Schubert 
265796c8dcSSimon Schubert /* Implement the sentinel frame.  The sentinel frame terminates the
275796c8dcSSimon Schubert    inner most end of the frame chain.  If unwound, it returns the
285796c8dcSSimon Schubert    information need to construct an inner-most frame.  */
295796c8dcSSimon Schubert 
305796c8dcSSimon Schubert /* Pump prime the sentinel frame's cache.  Since this needs the
315796c8dcSSimon Schubert    REGCACHE provide that here.  */
325796c8dcSSimon Schubert 
335796c8dcSSimon Schubert extern void *sentinel_frame_cache (struct regcache *regcache);
345796c8dcSSimon Schubert 
355796c8dcSSimon Schubert /* At present there is only one type of sentinel frame.  */
365796c8dcSSimon Schubert 
37c50c785cSJohn Marino extern const struct frame_unwind sentinel_frame_unwind;
385796c8dcSSimon Schubert 
395796c8dcSSimon Schubert #endif /* !defined (SENTINEL_FRAME_H)  */
40