From d656525850693915ae096893eb2a4072883a387f Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 7 Feb 2008 22:27:53 +0000 Subject: [PATCH] * ada-lang.c (symbol_completion_add): Make SV parameter a VEC** instead of just a VEC*. Update use of SV. (ada_make_symbol_completion_list): Update symbol_completion_add calls. --- gdb/ChangeLog | 6 ++++++ gdb/ada-lang.c | 16 ++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 667d33a724e..94b53dafdc9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2008-02-07 Joel Brobecker + + * ada-lang.c (symbol_completion_add): Make SV parameter a VEC** + instead of just a VEC*. Update use of SV. + (ada_make_symbol_completion_list): Update symbol_completion_add calls. + 2007-02-07 Joel Brobecker * NEWS: Put all new commands since gdb-6.7 together. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index b9326555ee4..2f0f55f5fb8 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -5479,7 +5479,7 @@ DEF_VEC_P (char_ptr); encoded). */ static void -symbol_completion_add (VEC(char_ptr) *sv, +symbol_completion_add (VEC(char_ptr) **sv, const char *sym_name, const char *text, int text_len, const char *orig_text, const char *word, @@ -5515,7 +5515,7 @@ symbol_completion_add (VEC(char_ptr) *sv, strcat (completion, match); } - VEC_safe_push (char_ptr, sv, completion); + VEC_safe_push (char_ptr, *sv, completion); } /* Return a list of possible symbol names completing TEXT0. The list @@ -5578,7 +5578,7 @@ ada_make_symbol_completion_list (char *text0, char *word) + ps->n_global_syms); psym++) { QUIT; - symbol_completion_add (completions, SYMBOL_LINKAGE_NAME (*psym), + symbol_completion_add (&completions, SYMBOL_LINKAGE_NAME (*psym), text, text_len, text0, word, wild_match, encoded); } @@ -5588,7 +5588,7 @@ ada_make_symbol_completion_list (char *text0, char *word) + ps->n_static_syms); psym++) { QUIT; - symbol_completion_add (completions, SYMBOL_LINKAGE_NAME (*psym), + symbol_completion_add (&completions, SYMBOL_LINKAGE_NAME (*psym), text, text_len, text0, word, wild_match, encoded); } @@ -5602,7 +5602,7 @@ ada_make_symbol_completion_list (char *text0, char *word) ALL_MSYMBOLS (objfile, msymbol) { QUIT; - symbol_completion_add (completions, SYMBOL_LINKAGE_NAME (msymbol), + symbol_completion_add (&completions, SYMBOL_LINKAGE_NAME (msymbol), text, text_len, text0, word, wild_match, encoded); } @@ -5616,7 +5616,7 @@ ada_make_symbol_completion_list (char *text0, char *word) ALL_BLOCK_SYMBOLS (b, iter, sym) { - symbol_completion_add (completions, SYMBOL_LINKAGE_NAME (sym), + symbol_completion_add (&completions, SYMBOL_LINKAGE_NAME (sym), text, text_len, text0, word, wild_match, encoded); } @@ -5631,7 +5631,7 @@ ada_make_symbol_completion_list (char *text0, char *word) b = BLOCKVECTOR_BLOCK (BLOCKVECTOR (s), GLOBAL_BLOCK); ALL_BLOCK_SYMBOLS (b, iter, sym) { - symbol_completion_add (completions, SYMBOL_LINKAGE_NAME (sym), + symbol_completion_add (&completions, SYMBOL_LINKAGE_NAME (sym), text, text_len, text0, word, wild_match, encoded); } @@ -5646,7 +5646,7 @@ ada_make_symbol_completion_list (char *text0, char *word) continue; ALL_BLOCK_SYMBOLS (b, iter, sym) { - symbol_completion_add (completions, SYMBOL_LINKAGE_NAME (sym), + symbol_completion_add (&completions, SYMBOL_LINKAGE_NAME (sym), text, text_len, text0, word, wild_match, encoded); } -- 2.30.2