From d8831024480595b93fa9c54f87478cf29f6a7508 Mon Sep 17 00:00:00 2001 From: Mark Alexander Date: Tue, 22 Oct 1996 01:26:20 +0000 Subject: [PATCH] * mdebugread.c (parse_partial_symbols): Fix 64-bit sign-extension problems in calculating psymtab addresses. * buildsym.c (end_symtab): Use macro to pop context. --- gdb/ChangeLog | 6 ++++++ gdb/buildsym.c | 3 +-- gdb/mdebugread.c | 8 ++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dc0af83596c..b13a267bddf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Mon Oct 21 18:17:08 1996 Mark Alexander + + * mdebugread.c (parse_partial_symbols): Fix 64-bit + sign-extension problems in calculating psymtab addresses. + * buildsym.c (end_symtab): Use macro to pop context. + Mon Oct 21 14:40:50 1996 Stu Grossman (grossman@critters.cygnus.com) * v850-tdep.c: Cleanup lots of things. Add many comments. diff --git a/gdb/buildsym.c b/gdb/buildsym.c index 02d7dfc0c91..a80a8ffb76d 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -811,8 +811,7 @@ end_symtab (end_addr, objfile, section) if (context_stack_depth > 0) { - context_stack_depth--; - cstk = &context_stack[context_stack_depth]; + cstk = pop_context(); /* Make a block for the local symbols within. */ finish_block (cstk->name, &local_symbols, cstk->old_blocks, cstk->start_addr, end_addr, objfile); diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 49db55778a9..3f67503e151 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -2567,7 +2567,7 @@ parse_partial_symbols (objfile, section_offsets) { if (sh.st == stProc || sh.st == stStaticProc) { - long procaddr; + CORE_ADDR procaddr; long isym; sh.value += ANOFFSET (section_offsets, SECT_OFF_TEXT); @@ -2594,7 +2594,7 @@ parse_partial_symbols (objfile, section_offsets) &sh); if (sh.st == stEnd) { - long high = procaddr + sh.value; + CORE_ADDR high = procaddr + sh.value; /* Kludge for Irix 5.2 zero fh->adr. */ if (!relocatable @@ -2708,8 +2708,8 @@ parse_partial_symbols (objfile, section_offsets) switch (sh.st) { - long high; - long procaddr; + CORE_ADDR high; + CORE_ADDR procaddr; int new_sdx; case stStaticProc: -- 2.30.2