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.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/target.h')
-rw-r--r-- | gdb/target.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/target.h b/gdb/target.h index 446c0a9..68b269f 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -698,7 +698,7 @@ struct target_ops TARGET_DEFAULT_RETURN (NULL); virtual void log_command (const char *) TARGET_DEFAULT_IGNORE (); - virtual const target_section_table *get_section_table () + virtual const std::vector<target_section> *get_section_table () TARGET_DEFAULT_RETURN (default_get_section_table ()); /* Provide default values for all "must have" methods. */ @@ -2401,12 +2401,12 @@ const struct target_section *target_section_by_addr (struct target_ops *target, /* Return the target section table this target (or the targets beneath) currently manipulate. */ -extern const target_section_table *target_get_section_table +extern const std::vector<target_section> *target_get_section_table (struct target_ops *target); /* Default implementation of get_section_table for dummy_target. */ -extern const target_section_table *default_get_section_table (); +extern const std::vector<target_section> *default_get_section_table (); /* From mem-break.c */ |