diff options
author | Mark Alexander <marka@cygnus> | 1996-10-22 01:26:20 +0000 |
---|---|---|
committer | Mark Alexander <marka@cygnus> | 1996-10-22 01:26:20 +0000 |
commit | d8831024480595b93fa9c54f87478cf29f6a7508 (patch) | |
tree | 6c854ef090c48c19f4cd469cec03dcb41f4b8cf9 | |
parent | bf39474f1526af4e7b1b105a4c11d77fb1db7ad7 (diff) | |
download | gdb-d8831024480595b93fa9c54f87478cf29f6a7508.zip gdb-d8831024480595b93fa9c54f87478cf29f6a7508.tar.gz gdb-d8831024480595b93fa9c54f87478cf29f6a7508.tar.bz2 |
* mdebugread.c (parse_partial_symbols): Fix 64-bit
sign-extension problems in calculating psymtab addresses.
* buildsym.c (end_symtab): Use macro to pop context.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/buildsym.c | 3 | ||||
-rw-r--r-- | gdb/mdebugread.c | 8 |
3 files changed, 11 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dc0af83..b13a267 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Mon Oct 21 18:17:08 1996 Mark Alexander <marka@cygnus.com> + + * 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 02d7dfc..a80a8ff 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 49db557..3f67503 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: |