aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2007-02-09 20:52:16 +0000
committerGabriel Dos Reis <gdr@integrable-solutions.net>2007-02-09 20:52:16 +0000
commitb260b6c1289a49a1e8f50cd78566a3e17a960781 (patch)
tree838cd7bb1a95fbb36a8bfdd08efc4ff173a9a965 /gdb/ada-lang.c
parent0f5d55d8c4b3bc46db59117233cfa1697415c3d0 (diff)
downloadgdb-b260b6c1289a49a1e8f50cd78566a3e17a960781.zip
gdb-b260b6c1289a49a1e8f50cd78566a3e17a960781.tar.gz
gdb-b260b6c1289a49a1e8f50cd78566a3e17a960781.tar.bz2
2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
* ada-lang.c (remove_out_of_scope_renamings): Change third parameter's type to a pointer to const struct block. (ada_lookup_symbol_list): Don't cast away constness when calling remove_out_of_scope_renamings. 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net> * linux-nat.c (linux_nat_find_memory_regions): Don't check the address of 'filename'; it is always non null.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index a80ef41..afee231 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -4419,7 +4419,7 @@ renaming_is_visible (const struct symbol *sym, char *function_name)
static int
remove_out_of_scope_renamings (struct ada_symbol_info *syms,
- int nsyms, struct block *current_block)
+ int nsyms, const struct block *current_block)
{
struct symbol *current_function;
char *current_function_name;
@@ -4656,8 +4656,7 @@ done:
cache_symbol (name0, namespace, (*results)[0].sym, (*results)[0].block,
(*results)[0].symtab);
- ndefns = remove_out_of_scope_renamings (*results, ndefns,
- (struct block *) block0);
+ ndefns = remove_out_of_scope_renamings (*results, ndefns, block0);
return ndefns;
}