+2017-07-25 Yao Qi <yao.qi@linaro.org>
+
+ * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
+ constant.
+ (amd64_x32_init_abi): Likewise.
+ * amd64-tdep.h (amd64_init_abi): Update declaration.
+ (amd64_x32_init_abi): Likewise.
+
2017-07-25 Yao Qi <yao.qi@linaro.org>
PR tdep/21717
void
amd64_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch,
- target_desc *default_tdesc)
+ const target_desc *default_tdesc)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
const struct target_desc *tdesc = info.target_desc;
void
amd64_x32_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch,
- target_desc *default_tdesc)
+ const target_desc *default_tdesc)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
tdesc, if INFO does not specify one. */
extern void amd64_init_abi (struct gdbarch_info info,
struct gdbarch *gdbarch,
- target_desc *default_tdesc);
+ const target_desc *default_tdesc);
/* Initialize the ABI for x32. Uses DEFAULT_TDESC as fallback tdesc,
if INFO does not specify one. */
extern void amd64_x32_init_abi (struct gdbarch_info info,
struct gdbarch *gdbarch,
- target_desc *default_tdesc);
+ const target_desc *default_tdesc);
extern const struct target_desc *amd64_target_description (uint64_t xcr0);
/* Fill register REGNUM in REGCACHE with the appropriate