xref: /dflybsd-src/contrib/gdb-7/gdb/inline-frame.h (revision de8e141f24382815c10a4012d209bbbf7abf1112)
15796c8dcSSimon Schubert /* Definitions for inline frame support.
25796c8dcSSimon Schubert 
3*ef5ccd6cSJohn Marino    Copyright (C) 2008-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 (INLINE_FRAME_H)
215796c8dcSSimon Schubert #define INLINE_FRAME_H 1
225796c8dcSSimon Schubert 
235796c8dcSSimon Schubert struct frame_info;
245796c8dcSSimon Schubert struct frame_unwind;
255796c8dcSSimon Schubert 
265796c8dcSSimon Schubert /* The inline frame unwinder.  */
275796c8dcSSimon Schubert 
28c50c785cSJohn Marino extern const struct frame_unwind inline_frame_unwind;
295796c8dcSSimon Schubert 
305796c8dcSSimon Schubert /* Skip all inlined functions whose call sites are at the current PC.
315796c8dcSSimon Schubert    Frames for the hidden functions will not appear in the backtrace until the
325796c8dcSSimon Schubert    user steps into them.  */
335796c8dcSSimon Schubert 
345796c8dcSSimon Schubert void skip_inline_frames (ptid_t ptid);
355796c8dcSSimon Schubert 
365796c8dcSSimon Schubert /* Forget about any hidden inlined functions in PTID, which is new or
375796c8dcSSimon Schubert    about to be resumed.  If PTID is minus_one_ptid, forget about all
385796c8dcSSimon Schubert    hidden inlined functions.  */
395796c8dcSSimon Schubert 
405796c8dcSSimon Schubert void clear_inline_frame_state (ptid_t ptid);
415796c8dcSSimon Schubert 
425796c8dcSSimon Schubert /* Step into an inlined function by unhiding it.  */
435796c8dcSSimon Schubert 
445796c8dcSSimon Schubert void step_into_inline_frame (ptid_t ptid);
455796c8dcSSimon Schubert 
465796c8dcSSimon Schubert /* Return the number of hidden functions inlined into the current
475796c8dcSSimon Schubert    frame.  */
485796c8dcSSimon Schubert 
495796c8dcSSimon Schubert int inline_skipped_frames (ptid_t ptid);
505796c8dcSSimon Schubert 
515796c8dcSSimon Schubert /* If one or more inlined functions are hidden, return the symbol for
525796c8dcSSimon Schubert    the function inlined into the current frame.  */
535796c8dcSSimon Schubert 
545796c8dcSSimon Schubert struct symbol *inline_skipped_symbol (ptid_t ptid);
555796c8dcSSimon Schubert 
565796c8dcSSimon Schubert /* Return the number of functions inlined into THIS_FRAME.  Some of
575796c8dcSSimon Schubert    the callees may not have associated frames (see
585796c8dcSSimon Schubert    skip_inline_frames).  */
595796c8dcSSimon Schubert 
605796c8dcSSimon Schubert int frame_inlined_callees (struct frame_info *this_frame);
615796c8dcSSimon Schubert 
625796c8dcSSimon Schubert #endif /* !defined (INLINE_FRAME_H) */
63