2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Fri, 9 Feb 2007 20:52:16 +0000 (20:52 +0000)
committerGabriel Dos Reis <gdr@integrable-solutions.net>
Fri, 9 Feb 2007 20:52:16 +0000 (20:52 +0000)
        * 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.

gdb/ChangeLog
gdb/ada-lang.c
gdb/linux-nat.c

index e91174874b8ca57f222ae634b15e01b5337f9ea2..cb5163d76a61ae292bc2f248f3abc97d2f072542 100644 (file)
@@ -1,3 +1,15 @@
+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.
+
 2007-02-09  Joel Brobecker  <brobecker@adacore.com>
 
        * exec.c (add_to_section_table): Do not discard empty sections.
index a80ef41334a2b535e78979acff647dc36dcdf74c..afee231811ca46f44f2f52faf87ae0684c6e8db8 100644 (file)
@@ -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;
 }
index 0162e7e1686b9dd38119e8ceae52de9c44cb25a2..80771a7cc7ed60786de59d81ef0fded238ded0f3 100644 (file)
@@ -2553,7 +2553,7 @@ linux_nat_find_memory_regions (int (*func) (CORE_ADDR,
                            size, paddr_nz (addr),
                            read ? 'r' : ' ',
                            write ? 'w' : ' ', exec ? 'x' : ' ');
-         if (filename && filename[0])
+         if (filename[0])
            fprintf_filtered (gdb_stdout, " for %s", filename);
          fprintf_filtered (gdb_stdout, "\n");
        }