aboutsummaryrefslogtreecommitdiff
path: root/gdb/mipsread.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-04-07 06:21:33 +0000
committerStu Grossman <grossman@cygnus>1992-04-07 06:21:33 +0000
commit391ca579f1e7b02b06f88a893e6696cb9d85938f (patch)
tree4858961918ef8dfe3afda7fdc7a587c3c666da9e /gdb/mipsread.c
parent27c28d61ceeb0c2de92cc493f8a794ab1b8b4b2d (diff)
downloadgdb-391ca579f1e7b02b06f88a893e6696cb9d85938f.zip
gdb-391ca579f1e7b02b06f88a893e6696cb9d85938f.tar.gz
gdb-391ca579f1e7b02b06f88a893e6696cb9d85938f.tar.bz2
* mipsread.c: Create a .gdbinfo pseudo-symbol for each
function also when parsing embedded stabs.
Diffstat (limited to 'gdb/mipsread.c')
-rw-r--r--gdb/mipsread.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index f063e33..4a3e45a 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -259,7 +259,7 @@ static void
sort_blocks PARAMS ((struct symtab *));
static int
-compare_blocks PARAMS ((struct block **, struct block **));
+compare_blocks PARAMS ((const void *, const void *));
static struct partial_symtab *
new_psymtab PARAMS ((char *, struct objfile *));
@@ -2610,10 +2610,12 @@ add_line(lt, lineno, adr, last)
/* Blocks with a smaller low bound should come first */
static int
-compare_blocks(b1, b2)
- struct block **b1, **b2;
+compare_blocks(arg1, arg2)
+ const void *arg1, *arg2;
{
register int addr_diff;
+ struct block **b1 = (struct block **) arg1;
+ struct block **b2 = (struct block **) arg2;
addr_diff = (BLOCK_START((*b1))) - (BLOCK_START((*b2)));
if (addr_diff == 0)