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/exec.h | |
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/exec.h')
-rw-r--r-- | gdb/exec.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -32,7 +32,7 @@ struct objfile; /* Builds a section table, given args BFD. */ -extern target_section_table build_section_table (struct bfd *); +extern std::vector<target_section> build_section_table (struct bfd *); /* VFORK_CHILD is a child vforked and its program space is shared with its parent. This pushes the exec target on that inferior's target stack if @@ -75,7 +75,7 @@ extern enum target_xfer_status section_table_xfer_memory_partial (gdb_byte *, const gdb_byte *, ULONGEST, ULONGEST, ULONGEST *, - const target_section_table &, + const std::vector<target_section> &, gdb::function_view<bool (const struct target_section *)> match_cb = nullptr); @@ -95,7 +95,7 @@ extern void exec_set_section_address (const char *, int, CORE_ADDR); special cased --- it's filename is omitted; if it is the executable file, its entry point is printed. */ -extern void print_section_info (const target_section_table *table, +extern void print_section_info (const std::vector<target_section> *table, bfd *abfd); /* Helper function that attempts to open the symbol file at EXEC_FILE_HOST. |