aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-02-07 22:27:53 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-02-07 22:27:53 +0000
commitd656525850693915ae096893eb2a4072883a387f (patch)
tree6b33c8dc4e45fe28dd58ec224611c7252d6e9a84 /gdb
parent6d53d0afa0d71e2b2f69d6a53087ec0c8bb370f9 (diff)
downloadgdb-d656525850693915ae096893eb2a4072883a387f.zip
gdb-d656525850693915ae096893eb2a4072883a387f.tar.gz
gdb-d656525850693915ae096893eb2a4072883a387f.tar.bz2
* 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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/ada-lang.c16
2 files changed, 14 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 667d33a..94b53da 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2008-02-07 Joel Brobecker <brobecker@adacore.com>
+
+ * 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 <brobecker@adacore.com>
* NEWS: Put all new commands since gdb-6.7 together.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index b932655..2f0f55f 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);
}