From 887432a5a562b3c5b743a4e9ef26f95f9ca772f7 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 18 Jan 2004 03:42:28 +0000 Subject: [PATCH] 2004-01-17 Andrew Cagney * mdebugread.c (compare_blocks): Make addr_diff a LONGEST. * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK enums. --- gdb/ChangeLog | 6 ++++++ gdb/block.h | 4 +--- gdb/mdebugread.c | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a2b4b5826a4..c8ccab5a3d7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2004-01-17 Andrew Cagney + + * mdebugread.c (compare_blocks): Make addr_diff a LONGEST. + * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK + enums. + 2004-01-17 Daniel Jacobowitz * remote.c: Update copyright years. diff --git a/gdb/block.h b/gdb/block.h index 38d037e0226..a36821305ca 100644 --- a/gdb/block.h +++ b/gdb/block.h @@ -139,9 +139,7 @@ struct blockvector /* Special block numbers */ -#define GLOBAL_BLOCK 0 -#define STATIC_BLOCK 1 -#define FIRST_LOCAL_BLOCK 2 +enum { GLOBAL_BLOCK = 0, STATIC_BLOCK = 1, FIRST_LOCAL_BLOCK = 2 }; extern struct symbol *block_function (const struct block *); diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 71474a9c48b..ae1ea7d6cd6 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -4509,7 +4509,7 @@ add_line (struct linetable *lt, int lineno, CORE_ADDR adr, int last) static int compare_blocks (const void *arg1, const void *arg2) { - int addr_diff; + LONGEST addr_diff; struct block **b1 = (struct block **) arg1; struct block **b2 = (struct block **) arg2; -- 2.30.2