2003-06-02 David Carlton <carlton@math.stanford.edu>
authorDavid Carlton <carlton@bactrian.org>
Mon, 2 Jun 2003 18:36:33 +0000 (18:36 +0000)
committerDavid Carlton <carlton@bactrian.org>
Mon, 2 Jun 2003 18:36:33 +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 2d58e685de875ce373ca7a9d79f0ac01d29f69aa..f85e00c00afb81abb0cfe660c30acc9e6348b2f7 100644 (file)
@@ -1,3 +1,10 @@
+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'.
index 09c51b69c47b266284b14336c47163134355c706..98b6ccbb84b43903f495e262baf9cd0f4b12e195 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 442fa4a86e46ee9518be7ea4d459179ef1165050..8334a3bca124b68c8348b79e678abb073a8f2642 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 *);
 
This page took 0.029584 seconds and 4 git commands to generate.