aboutsummaryrefslogtreecommitdiff
path: root/gdb/bfd-target.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-10-10 15:47:41 +0000
committerSimon Marchi <simon.marchi@efficios.com>2023-10-19 10:57:51 -0400
commit25b5a04e858ae7c0dd859c082b35f63d9ee50feb (patch)
tree565967d8da985be9a01d4a4a169114287733a14d /gdb/bfd-target.c
parent4ac91b6bb82e82066ad10914121c75d7c99b7bbf (diff)
downloadgdb-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/bfd-target.c')
-rw-r--r--gdb/bfd-target.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/bfd-target.c b/gdb/bfd-target.c
index 9e1b980..2aa2f96 100644
--- a/gdb/bfd-target.c
+++ b/gdb/bfd-target.c
@@ -50,7 +50,7 @@ public:
ULONGEST offset, ULONGEST len,
ULONGEST *xfered_len) override;
- const target_section_table *get_section_table () override;
+ const std::vector<target_section> *get_section_table () override;
private:
/* The BFD we're wrapping. */
@@ -59,7 +59,7 @@ private:
/* The section table build from the ALLOC sections in BFD. Note
that we can't rely on extracting the BFD from a random section in
the table, since the table can be legitimately empty. */
- target_section_table m_table;
+ std::vector<target_section> m_table;
};
target_xfer_status
@@ -82,7 +82,7 @@ target_bfd::xfer_partial (target_object object,
}
}
-const target_section_table *
+const std::vector<target_section> *
target_bfd::get_section_table ()
{
return &m_table;