OSDN Git Service

2003-06-02 David Carlton <carlton@math.stanford.edu>
authorcarlton <carlton>
Mon, 2 Jun 2003 18:36:32 +0000 (18:36 +0000)
committercarlton <carlton>
Mon, 2 Jun 2003 18:36:32 +0000 (18:36 +0000)
* block.c (contained_in): Add 'const' to arguments.
(block_function): Ditto.
* block.h: Update declarations for block_function and
contained_in.

gdb/ChangeLog
gdb/block.c
gdb/block.h

index 2d58e68..f85e00c 100644 (file)
@@ -1,5 +1,12 @@
 2003-06-02  David Carlton  <carlton@math.stanford.edu>
 
+       * block.c (contained_in): Add 'const' to arguments.
+       (block_function): Ditto.
+       * block.h: Update declarations for block_function and
+       contained_in.
+
+2003-06-02  David Carlton  <carlton@math.stanford.edu>
+
        * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
        * c-valprint.c (c_val_print): Delete unneeded variable 's'.
        * p-valprint.c (pascal_val_print): Ditto.
index 09c51b6..98b6ccb 100644 (file)
@@ -44,7 +44,7 @@ static void block_initialize_namespace (struct block *block,
    Return zero otherwise. */
 
 int
-contained_in (struct block *a, struct block *b)
+contained_in (const struct block *a, const struct block *b)
 {
   if (!a || !b)
     return 0;
@@ -57,7 +57,7 @@ contained_in (struct block *a, struct block *b)
    lexical block, described by a struct block BL.  */
 
 struct symbol *
-block_function (struct block *bl)
+block_function (const struct block *bl)
 {
   while (BLOCK_FUNCTION (bl) == 0 && BLOCK_SUPERBLOCK (bl) != 0)
     bl = BLOCK_SUPERBLOCK (bl);
index 442fa4a..8334a3b 100644 (file)
@@ -187,9 +187,9 @@ struct blockvector
 #define        STATIC_BLOCK            1
 #define        FIRST_LOCAL_BLOCK       2
 
-extern struct symbol *block_function (struct block *);
+extern struct symbol *block_function (const struct block *);
 
-extern int contained_in (struct block *, struct block *);
+extern int contained_in (const struct block *, const struct block *);
 
 extern struct blockvector *blockvector_for_pc (CORE_ADDR, int *);