diff mbox

[6/9] Remove VEC definitions from linespec.c

Message ID 20180810232534.481-7-keiths@redhat.com
State New
Headers show

Commit Message

Keith Seitz Aug. 10, 2018, 11:25 p.m. UTC
Since they are now no longer necessary, this patch removes the typedefs
and VEC definitions for bound_minimal_symbol_d and symbolp.

gdb/ChangeLog:

	* linespec.c (symbolp): Remove typedef and VEC definitions.
	(bound_minimal_symbol_d): Likewise.
---
 gdb/ChangeLog  | 5 +++++
 gdb/linespec.c | 7 -------
 2 files changed, 5 insertions(+), 7 deletions(-)

Comments

Tom Tromey Aug. 11, 2018, 3:03 p.m. UTC | #1
>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:

Keith> Since they are now no longer necessary, this patch removes the typedefs
Keith> and VEC definitions for bound_minimal_symbol_d and symbolp.

Keith> gdb/ChangeLog:

Keith> 	* linespec.c (symbolp): Remove typedef and VEC definitions.
Keith> 	(bound_minimal_symbol_d): Likewise.

Nice.  This is ok.

Tom
diff mbox

Patch

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8e0bbd9a9f..8bd7ac01df 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@ 
 YYYY-MM-DD  Keith Seitz  <keiths@redhat.com>
 
+	* linespec.c (symbolp): Remove typedef and VEC definitions.
+	(bound_minimal_symbol_d): Likewise.
+
+YYYY-MM-DD  Keith Seitz  <keiths@redhat.com>
+
 	* linespec.c (decode_compound_collector::decode_compound_collector):
 	Remove initialization for `m_symtabs'.
 	(decode_compound_collector::release_symbols): Change return type
diff --git a/gdb/linespec.c b/gdb/linespec.c
index c3e5f484b8..dea02381b9 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -81,9 +81,6 @@  enum class linespec_complete_what
 
 typedef std::unique_ptr<std::vector<symtab *>> symtab_vector_up;
 
-typedef struct symbol *symbolp;
-DEF_VEC_P (symbolp);
-
 /* An address entry is used to ensure that any given location is only
    added to the result a single time.  It holds an address and the
    program space from which the address came.  */
@@ -94,10 +91,6 @@  struct address_entry
   CORE_ADDR addr;
 };
 
-typedef struct bound_minimal_symbol bound_minimal_symbol_d;
-
-DEF_VEC_O (bound_minimal_symbol_d);
-
 /* A linespec.  Elements of this structure are filled in by a parser
    (either parse_linespec or some other function).  The structure is
    then converted into SALs by convert_linespec_to_sals.  */