gdb/ia64-libunwind-tdep.h - gdb

Data types defined

Macros defined

Source code

  1. /* Frame unwinder for ia64 frames with libunwind frame information.

  2.    Copyright (C) 2003-2015 Free Software Foundation, Inc.

  3.    Contributed by Jeff Johnston.

  4.    This file is part of GDB.

  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 3 of the License, or
  8.    (at your option) any later version.

  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.

  13.    You should have received a copy of the GNU General Public License
  14.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  15. #ifndef IA64_LIBUNWIND_TDEP_H
  16. #define IA64_LIBUNWIND_TDEP_H 1

  17. struct frame_info;
  18. struct frame_id;
  19. struct regcache;
  20. struct gdbarch;
  21. struct frame_unwind;

  22. /* IA-64 is the only target that currently uses libunwind.  If some
  23.    other target wants to use it, we will need to do some abstracting
  24.    in order to make it possible to have more than one
  25.    ia64-libunwind-tdep instance.  Including "libunwind.h" is wrong as
  26.    that ends up including the libunwind-$(arch).h for the host gdb is
  27.    running on.  */
  28. #include "libunwind-ia64.h"

  29. struct libunwind_descr
  30. {
  31.   int (*gdb2uw) (int);
  32.   int (*uw2gdb) (int);
  33.   int (*is_fpreg) (int);
  34.   void *accessors;
  35.   void *special_accessors;
  36. };

  37. int libunwind_frame_sniffer (const struct frame_unwind *self,
  38.                              struct frame_info *this_frame,
  39.                              void **this_cache);

  40. int libunwind_sigtramp_frame_sniffer (const struct frame_unwind *self,
  41.                                       struct frame_info *this_frame,
  42.                                       void **this_cache);

  43. void libunwind_frame_set_descr (struct gdbarch *arch,
  44.                                 struct libunwind_descr *descr);

  45. void libunwind_frame_this_id (struct frame_info *this_frame, void **this_cache,
  46.                               struct frame_id *this_id);
  47. struct value *libunwind_frame_prev_register (struct frame_info *this_frame,
  48.                                              void **this_cache, int regnum);
  49. void libunwind_frame_dealloc_cache (struct frame_info *self, void *cache);

  50. int libunwind_is_initialized (void);

  51. int libunwind_search_unwind_table (void *as, long ip, void *di,
  52.                                    void *pi, int need_unwind_info, void *args);

  53. unw_word_t libunwind_find_dyn_list (unw_addr_space_t, unw_dyn_info_t *,
  54.                                     void *);

  55. int libunwind_get_reg_special (struct gdbarch *gdbarch,
  56.                                struct regcache *regcache,
  57.                                int regnum, void *buf);

  58. #endif /* IA64_LIBUNWIND_TDEP_H */