From: Simon Marchi Date: Thu, 20 May 2021 19:57:21 +0000 (-0400) Subject: gdb: remove linespec_p typedef X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=1487a14ec2bf4e1c412729b6efea211255568bfc;p=deliverable%2Fbinutils-gdb.git gdb: remove linespec_p typedef I guess this was used with the old VEC implementation, but there is no reason to have this typedef anymore. gdb/ChangeLog: * linespec.c (linespec_p): Remove. Replace all uses with "linespec *". Change-Id: I4cea59ae1cd46985da9c08d3a69686846b1ad028 --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 916b17e395..c45fcd4074 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-05-20 Simon Marchi + + * linespec.c (linespec_p): Remove. Replace all uses with + "linespec *". + 2021-05-20 Alexandra Hájková Pedro Alves diff --git a/gdb/linespec.c b/gdb/linespec.c index 03a11fda21..d088801952 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -117,7 +117,6 @@ struct linespec std::vector *function_symbols; } labels; }; -typedef struct linespec *linespec_p; /* A canonical linespec represented as a symtab-related string. @@ -360,7 +359,7 @@ static void initialize_defaults (struct symtab **default_symtab, CORE_ADDR linespec_expression_to_pc (const char **exp_ptr); static std::vector decode_objc (struct linespec_state *self, - linespec_p ls, + linespec *ls, const char *arg); static std::vector symtabs_from_filename @@ -401,13 +400,13 @@ static std::vector static std::vector decode_digits_ordinary (struct linespec_state *self, - linespec_p ls, + linespec *ls, int line, linetable_entry **best_entry); static std::vector decode_digits_list_mode (struct linespec_state *self, - linespec_p ls, + linespec *ls, struct symtab_and_line val); static void minsym_found (struct linespec_state *self, struct objfile *objfile, @@ -2063,7 +2062,7 @@ linespec_parse_basic (linespec_parser *parser) locations. */ static void -canonicalize_linespec (struct linespec_state *state, const linespec_p ls) +canonicalize_linespec (struct linespec_state *state, const linespec *ls) { struct event_location *canon; struct explicit_location *explicit_loc; @@ -2107,7 +2106,7 @@ canonicalize_linespec (struct linespec_state *state, const linespec_p ls) static std::vector create_sals_line_offset (struct linespec_state *self, - linespec_p ls) + linespec *ls) { int use_default = 0; @@ -2254,7 +2253,7 @@ convert_address_location_to_sals (struct linespec_state *self, /* Create and return SALs from the linespec LS. */ static std::vector -convert_linespec_to_sals (struct linespec_state *state, linespec_p ls) +convert_linespec_to_sals (struct linespec_state *state, linespec *ls) { std::vector sals; @@ -2392,7 +2391,7 @@ convert_linespec_to_sals (struct linespec_state *state, linespec_p ls) static void convert_explicit_location_to_linespec (struct linespec_state *self, - linespec_p result, + linespec *result, const char *source_filename, const char *function_name, symbol_name_match_type fname_match_type, @@ -2464,7 +2463,7 @@ convert_explicit_location_to_linespec (struct linespec_state *self, static std::vector convert_explicit_location_to_sals (struct linespec_state *self, - linespec_p result, + linespec *result, const struct explicit_location *explicit_loc) { convert_explicit_location_to_linespec (self, result, @@ -3403,7 +3402,7 @@ linespec_expression_to_pc (const char **exp_ptr) the existing C++ code to let the user choose one. */ static std::vector -decode_objc (struct linespec_state *self, linespec_p ls, const char *arg) +decode_objc (struct linespec_state *self, linespec *ls, const char *arg) { struct collect_info info; std::vector symbol_names; @@ -4092,7 +4091,7 @@ find_label_symbols (struct linespec_state *self, static std::vector decode_digits_list_mode (struct linespec_state *self, - linespec_p ls, + linespec *ls, struct symtab_and_line val) { gdb_assert (self->list_mode); @@ -4126,7 +4125,7 @@ decode_digits_list_mode (struct linespec_state *self, static std::vector decode_digits_ordinary (struct linespec_state *self, - linespec_p ls, + linespec *ls, int line, struct linetable_entry **best_entry) {