diff options
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 5175ef7..6accbd2 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -1,6 +1,6 @@ /* Dynamic architecture support for GDB, the GNU debugger. - Copyright (C) 1998-2024 Free Software Foundation, Inc. + Copyright (C) 1998-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -18,8 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef GDBARCH_H -#define GDBARCH_H +#ifndef GDB_GDBARCH_H +#define GDB_GDBARCH_H #include <vector> #include "frame.h" @@ -30,6 +30,7 @@ #include "displaced-stepping.h" #include "gdbsupport/gdb-checked-static-cast.h" #include "registry.h" +#include "solib.h" struct floatformat; struct ui_file; @@ -59,6 +60,7 @@ struct ui_out; struct inferior; struct x86_xsave_layout; struct solib_ops; +struct core_file_exec_context; #include "regcache.h" @@ -209,7 +211,7 @@ gdbarch_tdep (struct gdbarch *gdbarch) information obtained from INFO.ABFD or the global defaults. The ARCHES parameter is a linked list (sorted most recently used) - of all the previously created architures for this architecture + of all the previously created architectures for this architecture family. The (possibly NULL) ARCHES->gdbarch can used to access values from the previously selected architecture for this architecture family. @@ -316,7 +318,7 @@ extern obstack *gdbarch_obstack (gdbarch *arch); extern char *gdbarch_obstack_strdup (struct gdbarch *arch, const char *string); -/* Helper function. Force an update of the current architecture. +/* Helper function. Force an update of INF's architecture. The actual architecture selected is determined by INFO, ``(gdb) set architecture'' et.al., the existing architecture and BFD's default @@ -325,8 +327,7 @@ extern char *gdbarch_obstack_strdup (struct gdbarch *arch, const char *string); Returns non-zero if the update succeeds. */ -extern int gdbarch_update_p (struct gdbarch_info info); - +extern int gdbarch_update_p (inferior *inf, gdbarch_info info); /* Helper function. Find an architecture matching info. @@ -370,7 +371,7 @@ gdbarch_num_cooked_regs (gdbarch *arch) return gdbarch_num_regs (arch) + gdbarch_num_pseudo_regs (arch); } -/* Return true if stacks for ARCH grow down, otherwise return true. */ +/* Return true if stacks for ARCH grow down, otherwise return false. */ static inline bool gdbarch_stack_grows_down (gdbarch *arch) @@ -378,4 +379,4 @@ gdbarch_stack_grows_down (gdbarch *arch) return gdbarch_inner_than (arch, 1, 2); } -#endif +#endif /* GDB_GDBARCH_H */ |