diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-10-10 15:47:41 +0000 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-10-19 10:57:51 -0400 |
commit | 25b5a04e858ae7c0dd859c082b35f63d9ee50feb (patch) | |
tree | 565967d8da985be9a01d4a4a169114287733a14d /gdb/target.c | |
parent | 4ac91b6bb82e82066ad10914121c75d7c99b7bbf (diff) | |
download | gdb-25b5a04e858ae7c0dd859c082b35f63d9ee50feb.zip gdb-25b5a04e858ae7c0dd859c082b35f63d9ee50feb.tar.gz gdb-25b5a04e858ae7c0dd859c082b35f63d9ee50feb.tar.bz2 |
gdb: remove target_section_table typedef
Remove this typedef. I think that hiding the real type (std::vector)
behind a typedef just hinders readability.
Change-Id: I80949da3392f60a2826c56c268e0ec6f503ad79f
Approved-By: Pedro Alves <pedro@palves.net>
Reviewed-By: Reviewed-By: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/target.c b/gdb/target.c index d721cf0..f688ff3 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -1347,7 +1347,7 @@ target_xfer_status_to_string (enum target_xfer_status status) }; -const target_section_table * +const std::vector<target_section> * target_get_section_table (struct target_ops *target) { return target->get_section_table (); @@ -1358,7 +1358,7 @@ target_get_section_table (struct target_ops *target) const struct target_section * target_section_by_addr (struct target_ops *target, CORE_ADDR addr) { - const target_section_table *table = target_get_section_table (target); + const std::vector<target_section> *table = target_get_section_table (target); if (table == NULL) return NULL; @@ -1373,7 +1373,7 @@ target_section_by_addr (struct target_ops *target, CORE_ADDR addr) /* See target.h. */ -const target_section_table * +const std::vector<target_section> * default_get_section_table () { return ¤t_program_space->target_sections (); @@ -1507,7 +1507,7 @@ memory_xfer_partial_1 (struct target_ops *ops, enum target_object object, if (pc_in_unmapped_range (memaddr, section)) { - const target_section_table *table = target_get_section_table (ops); + const std::vector<target_section> *table = target_get_section_table (ops); const char *section_name = section->the_bfd_section->name; memaddr = overlay_mapped_address (memaddr, section); @@ -1531,7 +1531,7 @@ memory_xfer_partial_1 (struct target_ops *ops, enum target_object object, if (secp != NULL && (bfd_section_flags (secp->the_bfd_section) & SEC_READONLY)) { - const target_section_table *table = target_get_section_table (ops); + const std::vector<target_section> *table = target_get_section_table (ops); return section_table_xfer_memory_partial (readbuf, writebuf, memaddr, len, xfered_len, *table); |