GDB (xrefs)
Loading...
Searching...
No Matches
ia64-libunwind-tdep.h
Go to the documentation of this file.
1/* Frame unwinder for ia64 frames with libunwind frame information.
2
3 Copyright (C) 2003-2023 Free Software Foundation, Inc.
4
5 Contributed by Jeff Johnston.
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 3 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, see <http://www.gnu.org/licenses/>. */
21
22#ifndef IA64_LIBUNWIND_TDEP_H
23#define IA64_LIBUNWIND_TDEP_H 1
24
25class frame_info_ptr;
26struct frame_id;
27struct regcache;
28struct gdbarch;
29struct frame_unwind;
30
31/* IA-64 is the only target that currently uses libunwind. If some
32 other target wants to use it, we will need to do some abstracting
33 in order to make it possible to have more than one
34 ia64-libunwind-tdep instance. Including "libunwind.h" is wrong as
35 that ends up including the libunwind-$(arch).h for the host gdb is
36 running on. */
37#include "libunwind-ia64.h"
38
39#include "gdbarch.h"
40
42{
43 int (*gdb2uw) (int) = nullptr;
44 int (*uw2gdb) (int) = nullptr;
45 int (*is_fpreg) (int) = nullptr;
46 void *accessors = nullptr;
47 void *special_accessors = nullptr;
48};
49
50int libunwind_frame_sniffer (const struct frame_unwind *self,
51 frame_info_ptr this_frame,
52 void **this_cache);
53
55 frame_info_ptr this_frame,
56 void **this_cache);
57
58void libunwind_frame_set_descr (struct gdbarch *arch,
59 struct libunwind_descr *descr);
60
61void libunwind_frame_this_id (frame_info_ptr this_frame, void **this_cache,
62 struct frame_id *this_id);
64 void **this_cache, int regnum);
65void libunwind_frame_dealloc_cache (frame_info_ptr self, void *cache);
66
68
69int libunwind_search_unwind_table (void *as, long ip, void *di,
70 void *pi, int need_unwind_info, void *args);
71
72unw_word_t libunwind_find_dyn_list (unw_addr_space_t, unw_dyn_info_t *,
73 void *);
74
77 int regnum, void *buf);
78
79#endif /* IA64_LIBUNWIND_TDEP_H */
int regnum
struct value * libunwind_frame_prev_register(frame_info_ptr this_frame, void **this_cache, int regnum)
unw_word_t libunwind_find_dyn_list(unw_addr_space_t, unw_dyn_info_t *, void *)
void libunwind_frame_dealloc_cache(frame_info_ptr self, void *cache)
int libunwind_frame_sniffer(const struct frame_unwind *self, frame_info_ptr this_frame, void **this_cache)
void libunwind_frame_this_id(frame_info_ptr this_frame, void **this_cache, struct frame_id *this_id)
void libunwind_frame_set_descr(struct gdbarch *arch, struct libunwind_descr *descr)
int libunwind_search_unwind_table(void *as, long ip, void *di, void *pi, int need_unwind_info, void *args)
int libunwind_get_reg_special(struct gdbarch *gdbarch, readable_regcache *regcache, int regnum, void *buf)
int libunwind_sigtramp_frame_sniffer(const struct frame_unwind *self, frame_info_ptr this_frame, void **this_cache)
int libunwind_is_initialized(void)
Definition value.h:130