diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-07-25 15:25:38 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2017-07-25 15:25:38 +0100 |
commit | a04b53379a18c66376b4130dc3b4936e6433a0e5 (patch) | |
tree | 0f0aac372a4c76eeb32adb9153037b84b1efd3a7 /gdb/amd64-tdep.c | |
parent | 133193b8aef9f74abce69ec84beca227dbd7f9a4 (diff) | |
download | gdb-a04b53379a18c66376b4130dc3b4936e6433a0e5.zip gdb-a04b53379a18c66376b4130dc3b4936e6433a0e5.tar.gz gdb-a04b53379a18c66376b4130dc3b4936e6433a0e5.tar.bz2 |
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.
Diffstat (limited to 'gdb/amd64-tdep.c')
-rw-r--r-- | gdb/amd64-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 6171bc5..f647402 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -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); |