Make amd64_x32_init_abi and amd64_init_abi argument constant

gdb:

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.
This commit is contained in:
Yao Qi 2017-07-25 15:25:38 +01:00
parent 133193b8ae
commit a04b53379a
3 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,11 @@
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

View File

@ -3006,7 +3006,7 @@ static const int amd64_record_regmap[] =
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;
@ -3198,7 +3198,7 @@ amd64_x32_pseudo_register_type (struct gdbarch *gdbarch, int regnum)
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);

View File

@ -102,13 +102,13 @@ extern void amd64_displaced_step_fixup (struct gdbarch *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