aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-06-02 18:36:33 +0000
committerDavid Carlton <carlton@bactrian.org>2003-06-02 18:36:33 +0000
commit0cf566ec651d073db71dad1de50a0df77587fbd2 (patch)
treec5b585f3c676dbbefb78796b5a1281d8023891e6 /gdb/block.c
parentcdef89d01172a24cd4122ed71f781d4099225542 (diff)
downloadgdb-0cf566ec651d073db71dad1de50a0df77587fbd2.zip
gdb-0cf566ec651d073db71dad1de50a0df77587fbd2.tar.gz
gdb-0cf566ec651d073db71dad1de50a0df77587fbd2.tar.bz2
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.
Diffstat (limited to 'gdb/block.c')
-rw-r--r--gdb/block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/block.c b/gdb/block.c
index 09c51b6..98b6ccb 100644
--- a/gdb/block.c
+++ b/gdb/block.c
@@ -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);