From 3496b7456212818953a6b39a0ea0b278ee5de913 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Thu, 22 Oct 1992 02:26:04 +0000 Subject: [PATCH] * i386v-nat.c: Remove space from front of #endif. * irix4-nat.c: Remove externs of registers[], include inferior.h instead. * mips-nat.c: Explicitly initialize zerobuf to 0! * mips-tdep.c (init_extra_frame_info): Undo John's last change. Always setup fci->frame, even if it's non-zero. Too many places depend upon this behavior (and I have to get a release out the door)! * mipsread.c (parse_partial_symbols, psymtab_to_symtab_1): Set processing_gcc_compilation if we find the embedded stabs marker. This fixes several bugs with finding the location of short or char function parameters passed on the stack. --- gdb/ChangeLog | 15 +++++++++++++++ gdb/i386v-nat.c | 2 +- gdb/irix4-nat.c | 3 +-- gdb/mips-nat.c | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 12d21f1eb20..94afd30b1d5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,18 @@ +Wed Oct 21 19:08:20 1992 Stu Grossman (grossman at cygnus.com) + + * i386v-nat.c: Remove space from front of #endif. + * irix4-nat.c: Remove externs of registers[], include inferior.h + instead. + * mips-nat.c: Explicitly initialize zerobuf to 0! + * mips-tdep.c (init_extra_frame_info): Undo John's last change. + Always setup fci->frame, even if it's non-zero. Too many places + depend upon this behavior (and I have to get a release out the + door)! + * mipsread.c (parse_partial_symbols, psymtab_to_symtab_1): Set + processing_gcc_compilation if we find the embedded stabs marker. + This fixes several bugs with finding the location of short or char + function parameters passed on the stack. + Wed Oct 21 17:46:07 1992 K. Richard Pixley (rich@sendai.cygnus.com) Native support for sun4sol2. diff --git a/gdb/i386v-nat.c b/gdb/i386v-nat.c index f43b87eb52f..3598d3a03f1 100644 --- a/gdb/i386v-nat.c +++ b/gdb/i386v-nat.c @@ -159,7 +159,7 @@ i386_float_info () perror_with_name ("read from core file"); skip = 0; } - #endif /* 0 */ +#endif /* 0 */ fpstatep = (struct fpstate *)(buf + skip); print_387_status (fpstatep->status, (struct env387 *)fpstatep->state); diff --git a/gdb/irix4-nat.c b/gdb/irix4-nat.c index 97b63dc3a85..c524c99349a 100644 --- a/gdb/irix4-nat.c +++ b/gdb/irix4-nat.c @@ -21,6 +21,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "defs.h" +#include "inferior.h" #include #include @@ -61,7 +62,6 @@ fill_gregset (gregsetp, regno) { int regi; register greg_t *regp = (greg_t *)(gregsetp->gp_regs); - extern char registers[]; /* same FIXME as above wrt 32*/ for (regi = 0; regi < 32; regi++) @@ -111,7 +111,6 @@ fill_fpregset (fpregsetp, regno) { int regi; char *from, *to; - extern char registers[]; for (regi = FP0_REGNUM; regi < FP0_REGNUM + 32; regi++) { diff --git a/gdb/mips-nat.c b/gdb/mips-nat.c index ee37c7d5b36..d7c28b54874 100644 --- a/gdb/mips-nat.c +++ b/gdb/mips-nat.c @@ -59,7 +59,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ : regno >= FP0_REGNUM ? FPR_BASE + (regno - FP0_REGNUM) \ : 0) -static char zerobuf[MAX_REGISTER_RAW_SIZE]; +static char zerobuf[MAX_REGISTER_RAW_SIZE] = {0}; /* Get all registers from the inferior */ -- 2.30.2