X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Farch-utils.c;h=52a08daa3b9aa266046d1ae7335c71829664c04d;hb=96a86c01d119372f4af5aff2501d3104e6c1a8e3;hp=cd9bd66430bfdc871d751828515b3b6fb9f581e5;hpb=1d509aa625f891e20b37b8cee4659771e87b1ba4;p=binutils-gdb.git diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index cd9bd66430b..52a08daa3b9 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -1,6 +1,6 @@ /* Dynamic architecture support for GDB, the GNU debugger. - Copyright (C) 1998-2018 Free Software Foundation, Inc. + Copyright (C) 1998-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -20,7 +20,6 @@ #include "defs.h" #include "arch-utils.h" -#include "buildsym.h" #include "gdbcmd.h" #include "inferior.h" /* enum CALL_DUMMY_LOCATION et al. */ #include "infrun.h" @@ -33,7 +32,7 @@ #include "language.h" #include "symtab.h" -#include "version.h" +#include "common/version.h" #include "floatformat.h" @@ -768,6 +767,8 @@ gdbarch_info_fill (struct gdbarch_info *info) if (info->byte_order == BFD_ENDIAN_UNKNOWN) info->byte_order = default_byte_order; info->byte_order_for_code = info->byte_order; + /* Wire the default to the last selected byte order. */ + default_byte_order = info->byte_order; /* "(gdb) set osabi ...". Handled by gdbarch_lookup_osabi. */ /* From the manual override, or from file. */ @@ -946,7 +947,7 @@ default_guess_tracepoint_registers (struct gdbarch *gdbarch, regs = (gdb_byte *) alloca (register_size (gdbarch, pc_regno)); store_unsigned_integer (regs, register_size (gdbarch, pc_regno), gdbarch_byte_order (gdbarch), addr); - regcache_raw_supply (regcache, pc_regno, regs); + regcache->raw_supply (pc_regno, regs); } int @@ -987,6 +988,14 @@ default_in_indirect_branch_thunk (gdbarch *gdbarch, CORE_ADDR pc) return false; } +/* See arch-utils.h. */ + +ULONGEST +default_type_align (struct gdbarch *gdbarch, struct type *type) +{ + return 0; +} + void _initialize_gdbarch_utils (void) {