aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2017-12-05 16:30:27 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2017-12-05 16:30:27 -0500
commitf0cddbef410cb626ea87b3a954bd4e3d7526115e (patch)
tree3dc66856aabee85a9ada32465fc0eb0e4928090b /gdb/ChangeLog
parentd05200d155f065b93e2dc353a7d33408c7574e9c (diff)
downloadgdb-f0cddbef410cb626ea87b3a954bd4e3d7526115e.zip
gdb-f0cddbef410cb626ea87b3a954bd4e3d7526115e.tar.gz
gdb-f0cddbef410cb626ea87b3a954bd4e3d7526115e.tar.bz2
Make tdesc_arch_data::arch_regs an std::vector
Make tdesc_arch_data::arch_regs be an std::vector of tdesc_arch_reg objects. On particularity is that the tdesc_arch_data linked to a gdbarch is allocated on the gdbarch's obstack. To be safe, I did not change it and called placement-new on the area returned by OBSTACK_ZALLOC. gdb/ChangeLog: * target-descriptions.c (tdesc_arch_reg): Remove typedef. (struct tdesc_arch_reg): Add constructor. (DEF_VEC_O (tdesc_arch_reg)): Remove. (struct tdesc_arch_data): Initialize fields. <arch_regs>: Change type to std::vector. (target_find_description): Adjust. (tdesc_find_type): Adjust. (tdesc_data_init): Call tdesc_arch_data constructor. (tdesc_data_alloc): Allocate tdesc_arch_data with new. (tdesc_data_cleanup): Free data with delete. (tdesc_numbered_register): Adjust. (tdesc_find_arch_register): Adjust. (tdesc_use_registers): Adjust.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog16
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index dde3229..2c4e428 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,21 @@
2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
+ * target-descriptions.c (tdesc_arch_reg): Remove typedef.
+ (struct tdesc_arch_reg): Add constructor.
+ (DEF_VEC_O (tdesc_arch_reg)): Remove.
+ (struct tdesc_arch_data): Initialize fields.
+ <arch_regs>: Change type to std::vector.
+ (target_find_description): Adjust.
+ (tdesc_find_type): Adjust.
+ (tdesc_data_init): Call tdesc_arch_data constructor.
+ (tdesc_data_alloc): Allocate tdesc_arch_data with new.
+ (tdesc_data_cleanup): Free data with delete.
+ (tdesc_numbered_register): Adjust.
+ (tdesc_find_arch_register): Adjust.
+ (tdesc_use_registers): Adjust.
+
+2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
+
* target-descriptions.c (tdesc_type_field): Remove typedef.
(DEF_VEC_O (tdesc_type_field)): Remove.
(struct tdesc_type_field): Add constructor.