From: Steve Chamberlain Date: Tue, 9 Mar 1993 01:56:53 +0000 (+0000) Subject: * utils.c (quit): If using go32, still call error when quit seen. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ddf30c373c1b35e89c202917f27178ee5f3f2962;p=binutils-gdb.git * utils.c (quit): If using go32, still call error when quit seen. (pollquit): New function to poll keyboard for user interrupt, called from QUIT. * xm-go32.h (QUIT): Define to call pollquit. * h8300-tdep.c (examine_prologue): Use correct value for number of registers. --- diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c index 62ce3d3fc1c..d4341a525ec 100644 --- a/gdb/h8300-tdep.c +++ b/gdb/h8300-tdep.c @@ -217,15 +217,15 @@ examine_prologue (ip, limit, after_prolog_fp, fsr, fi) register struct pic_prologue_code *pcode; INSN_WORD insn_word; int size, offset; - unsigned int reg_save_depth = 2; /* Number of things pushed onto + unsigned int reg_save_depth = 2; /* Number of things pushed onto stack, starts at 2, 'cause the PC is already there */ unsigned int auto_depth = 0; /* Number of bytes of autos */ - char in_frame[8]; /* One for each reg */ + char in_frame[11]; /* One for each reg */ - memset (in_frame, 1, 8); + memset (in_frame, 1, 11); for (r = 0; r < 8; r++) { fsr->regs[r] = 0; diff --git a/gdb/xm-go32.h b/gdb/xm-go32.h index d8843a8d8ef..91f5d3553ab 100644 --- a/gdb/xm-go32.h +++ b/gdb/xm-go32.h @@ -27,3 +27,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define LSEEK_NOT_LINEAR #define CANT_FORK + +#undef QUIT +#define QUIT { pollquit(); }