inline-frame.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* Definitions for inline frame support.
  2. Copyright (C) 2008-2022 Free Software Foundation, Inc.
  3. This file is part of GDB.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. #if !defined (INLINE_FRAME_H)
  15. #define INLINE_FRAME_H 1
  16. struct frame_info;
  17. struct frame_unwind;
  18. struct bpstat;
  19. struct process_stratum_target;
  20. /* The inline frame unwinder. */
  21. extern const struct frame_unwind inline_frame_unwind;
  22. /* Skip all inlined functions whose call sites are at the current PC.
  23. If non-NULL, STOP_CHAIN is used to determine whether a stop was caused by
  24. a user breakpoint. In that case, do not skip that inlined frame. This
  25. allows the inlined frame to be treated as if it were non-inlined from the
  26. user's perspective. GDB will stop "in" the inlined frame instead of
  27. the caller. */
  28. void skip_inline_frames (thread_info *thread, struct bpstat *stop_chain);
  29. /* Forget about any hidden inlined functions in PTID, which is new or
  30. about to be resumed. PTID may be minus_one_ptid (all processes of
  31. TARGET) or a PID (all threads in this process of TARGET). */
  32. void clear_inline_frame_state (process_stratum_target *target, ptid_t ptid);
  33. /* Forget about any hidden inlined functions in THREAD, which is new
  34. or about to be resumed. */
  35. void clear_inline_frame_state (thread_info *thread);
  36. /* Step into an inlined function by unhiding it. */
  37. void step_into_inline_frame (thread_info *thread);
  38. /* Return the number of hidden functions inlined into the current
  39. frame. */
  40. int inline_skipped_frames (thread_info *thread);
  41. /* If one or more inlined functions are hidden, return the symbol for
  42. the function inlined into the current frame. */
  43. struct symbol *inline_skipped_symbol (thread_info *thread);
  44. /* Return the number of functions inlined into THIS_FRAME. Some of
  45. the callees may not have associated frames (see
  46. skip_inline_frames). */
  47. int frame_inlined_callees (struct frame_info *this_frame);
  48. #endif /* !defined (INLINE_FRAME_H) */