Thu Sep 28 14:32:11 1995 steve chamberlain <sac@slash.cygnus.com>
* callback.[ch]: New files. * remote-rdp.c: Support for the ARM RDP monitor. * Makefile: Update. * arm-tdep.c (arm_othernames): New. (_initialize_arm_tdep): install 'othernames' command. (arm_nullified_insn, shifted_reg_val, arm_get_next_pc): New. * configure.in: Check for termios.h, termio.h and sgtty.h. (i[345]86-*-win32*): New host. * configure: Regenerated. * inflow.c: Clean up inclusions. * main.c (main): Check for WINGDB, not WIN32. * printcmd.c (do_examine): Put QUIT test in loop. * remote-hms.c (e7000_load): Delete. (hms_ops): Point to generic_load instead. * remote-hms.c (hms_ops): Point to generic_load. * remote-sim.c (sim_callback_write_stdout): Becomes gdbsim_write_stdout. (gdbsim_load): Call generic_load. * remote-utils.c (gr_load_image): Delete. * ser-unix.c (terminal.h): Include instead of havig own #if tree. (hardwire_flush_input): Reset input buffer too. * source.c (openp): If WIN32 then open file in binary mode. * terminal.h: Configure IO mechanism using autoconf defines if available and not overriden. * utils.c (quit, pollquit, notice_quit): WIN32 check becomes WINGDB check. * config/arm/arm.mt (TDEPFILES): Add remote-rdp.o * config/arm/tm-arm.h (TARGET_BYTE_ORDER): becomes TARGET_BYTE_ORDER_SELECTABLE. (ADDR_BITS_REMOVE): New. (ORIGINAL_REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): New. (INST_xx): New (FRAME_FIND_SAVED_REGS): Pass the right argument. (arm_get_next_pc): Declare. * mswin/prebuilt/*/bfdtarget.h (SELECT_ARCHITECTURES): Need leading &.
This commit is contained in:
parent
b91537be61
commit
dedcc91de6
18 changed files with 1886 additions and 181 deletions
|
@ -97,6 +97,8 @@ breakpoint.c
|
||||||
breakpoint.h
|
breakpoint.h
|
||||||
buildsym.c
|
buildsym.c
|
||||||
buildsym.h
|
buildsym.h
|
||||||
|
callback.c
|
||||||
|
callback.h
|
||||||
c-exp.y
|
c-exp.y
|
||||||
c-lang.c
|
c-lang.c
|
||||||
c-lang.h
|
c-lang.h
|
||||||
|
@ -266,6 +268,7 @@ remote-nindy.c
|
||||||
remote-nrom.c
|
remote-nrom.c
|
||||||
remote-os9k.c
|
remote-os9k.c
|
||||||
remote-pa.c
|
remote-pa.c
|
||||||
|
remote-rdp.c
|
||||||
remote-sim.c
|
remote-sim.c
|
||||||
remote-sim.h
|
remote-sim.h
|
||||||
remote-st.c
|
remote-st.c
|
||||||
|
|
|
@ -1,3 +1,40 @@
|
||||||
|
Thu Sep 28 14:32:11 1995 steve chamberlain <sac@slash.cygnus.com>
|
||||||
|
|
||||||
|
* callback.[ch]: New files.
|
||||||
|
* remote-rdp.c: Support for the ARM RDP monitor.
|
||||||
|
* Makefile: Update.
|
||||||
|
* arm-tdep.c (arm_othernames): New.
|
||||||
|
(_initialize_arm_tdep): install 'othernames' command.
|
||||||
|
(arm_nullified_insn, shifted_reg_val, arm_get_next_pc): New.
|
||||||
|
* configure.in: Check for termios.h, termio.h and sgtty.h.
|
||||||
|
(i[345]86-*-win32*): New host.
|
||||||
|
* configure: Regenerated.
|
||||||
|
* inflow.c: Clean up inclusions.
|
||||||
|
* main.c (main): Check for WINGDB, not WIN32.
|
||||||
|
* printcmd.c (do_examine): Put QUIT test in loop.
|
||||||
|
* remote-hms.c (e7000_load): Delete.
|
||||||
|
(hms_ops): Point to generic_load instead.
|
||||||
|
* remote-hms.c (hms_ops): Point to generic_load.
|
||||||
|
* remote-sim.c (sim_callback_write_stdout): Becomes
|
||||||
|
gdbsim_write_stdout.
|
||||||
|
(gdbsim_load): Call generic_load.
|
||||||
|
* remote-utils.c (gr_load_image): Delete.
|
||||||
|
* ser-unix.c (terminal.h): Include instead of havig
|
||||||
|
own #if tree.
|
||||||
|
(hardwire_flush_input): Reset input buffer too.
|
||||||
|
* source.c (openp): If WIN32 then open file in binary mode.
|
||||||
|
* terminal.h: Configure IO mechanism using autoconf defines if available and
|
||||||
|
not overriden.
|
||||||
|
* utils.c (quit, pollquit, notice_quit): WIN32 check becomes WINGDB check.
|
||||||
|
* config/arm/arm.mt (TDEPFILES): Add remote-rdp.o
|
||||||
|
* config/arm/tm-arm.h (TARGET_BYTE_ORDER): becomes TARGET_BYTE_ORDER_SELECTABLE.
|
||||||
|
(ADDR_BITS_REMOVE): New.
|
||||||
|
(ORIGINAL_REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): New.
|
||||||
|
(INST_xx): New
|
||||||
|
(FRAME_FIND_SAVED_REGS): Pass the right argument.
|
||||||
|
(arm_get_next_pc): Declare.
|
||||||
|
* mswin/prebuilt/*/bfdtarget.h (SELECT_ARCHITECTURES): Need leading &.
|
||||||
|
|
||||||
Wed Sep 27 10:14:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
|
Wed Sep 27 10:14:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
|
||||||
|
|
||||||
* valops.c (search_struct_field): Also allow "else" as a variant name,
|
* valops.c (search_struct_field): Also allow "else" as a variant name,
|
||||||
|
|
|
@ -346,7 +346,7 @@ TARGET_FLAGS_TO_PASS = \
|
||||||
# Links made at configuration time should not be specified here, since
|
# Links made at configuration time should not be specified here, since
|
||||||
# SFILES is used in building the distribution archive.
|
# SFILES is used in building the distribution archive.
|
||||||
|
|
||||||
SFILES = blockframe.c breakpoint.c buildsym.c c-exp.y c-lang.c \
|
SFILES = blockframe.c breakpoint.c buildsym.c callback.c c-exp.y c-lang.c \
|
||||||
c-typeprint.c c-valprint.c ch-exp.y ch-lang.c ch-typeprint.c \
|
c-typeprint.c c-valprint.c ch-exp.y ch-lang.c ch-typeprint.c \
|
||||||
ch-valprint.c coffread.c command.c complaints.c core.c cp-valprint.c \
|
ch-valprint.c coffread.c command.c complaints.c core.c cp-valprint.c \
|
||||||
dbxread.c demangle.c dwarfread.c \
|
dbxread.c demangle.c dwarfread.c \
|
||||||
|
@ -469,7 +469,7 @@ COMMON_OBS = version.o blockframe.o breakpoint.o findvar.o stack.o thread.o \
|
||||||
complaints.o typeprint.o \
|
complaints.o typeprint.o \
|
||||||
c-typeprint.o ch-typeprint.o f-typeprint.o m2-typeprint.o \
|
c-typeprint.o ch-typeprint.o f-typeprint.o m2-typeprint.o \
|
||||||
c-valprint.o cp-valprint.o ch-valprint.o f-valprint.o m2-valprint.o \
|
c-valprint.o cp-valprint.o ch-valprint.o f-valprint.o m2-valprint.o \
|
||||||
nlmread.o serial.o mdebugread.o os9kread.o top.o utils.o
|
nlmread.o serial.o mdebugread.o os9kread.o top.o utils.o callback.o
|
||||||
|
|
||||||
OBS = $(COMMON_OBS) $(ANNOTATE_OBS) main.o
|
OBS = $(COMMON_OBS) $(ANNOTATE_OBS) main.o
|
||||||
|
|
||||||
|
@ -925,7 +925,7 @@ ALLDEPFILES = 29k-share/udi/udip2soc.c 29k-share/udi/udr.c \
|
||||||
procfs.c pyr-tdep.c pyr-xdep.c \
|
procfs.c pyr-tdep.c pyr-xdep.c \
|
||||||
remote-adapt.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c \
|
remote-adapt.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c \
|
||||||
remote-hms.c remote-mips.c \
|
remote-hms.c remote-mips.c \
|
||||||
remote-mm.c remote-nindy.c remote-os9k.c remote-sim.c \
|
remote-mm.c remote-nindy.c remote-os9k.c remote-rdp.c remote-sim.c \
|
||||||
remote-st.c remote-utils.c dcache.c \
|
remote-st.c remote-utils.c dcache.c \
|
||||||
remote-udi.c remote-vx.c remote-vx29k.c \
|
remote-udi.c remote-vx.c remote-vx29k.c \
|
||||||
rs6000-nat.c rs6000-tdep.c \
|
rs6000-nat.c rs6000-tdep.c \
|
||||||
|
@ -1035,6 +1035,8 @@ breakpoint.o: breakpoint.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
|
||||||
buildsym.o: buildsym.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
|
buildsym.o: buildsym.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
|
||||||
objfiles.h symfile.h $(symtab_h)
|
objfiles.h symfile.h $(symtab_h)
|
||||||
|
|
||||||
|
callback.o: callback.c $(defs_h) callback.h
|
||||||
|
|
||||||
c-lang.o: c-lang.c c-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \
|
c-lang.o: c-lang.c c-lang.h $(defs_h) $(expression_h) $(gdbtypes_h) \
|
||||||
language.h parser-defs.h $(symtab_h)
|
language.h parser-defs.h $(symtab_h)
|
||||||
|
|
||||||
|
@ -1335,6 +1337,9 @@ regex.o: regex.c regex.h $(defs_h)
|
||||||
remote-adapt.o: remote-adapt.c $(wait_h) $(defs_h) $(gdbcore_h) \
|
remote-adapt.o: remote-adapt.c $(wait_h) $(defs_h) $(gdbcore_h) \
|
||||||
$(inferior_h) target.h terminal.h
|
$(inferior_h) target.h terminal.h
|
||||||
|
|
||||||
|
remote-rdp.o: remote-rdp.c $(wait_h) $(defs_h) $(gdbcore_h) \
|
||||||
|
$(inferior_h) remote-rdp.h
|
||||||
|
|
||||||
remote-bug.o: remote-bug.c $(wait_h) $(defs_h) $(gdbcore_h) \
|
remote-bug.o: remote-bug.c $(wait_h) $(defs_h) $(gdbcore_h) \
|
||||||
$(inferior_h) target.h terminal.h $(remote_utils_h)
|
$(inferior_h) target.h terminal.h $(remote_utils_h)
|
||||||
|
|
||||||
|
|
319
gdb/callback.c
Normal file
319
gdb/callback.c
Normal file
|
@ -0,0 +1,319 @@
|
||||||
|
/* Host callback routines for GDB.
|
||||||
|
Copyright 1995 Free Software Foundation, Inc.
|
||||||
|
Contributed by Cygnus Support.
|
||||||
|
|
||||||
|
This file is part of GDB.
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
|
||||||
|
/* This file provides a standard way for targets to talk to the host OS
|
||||||
|
level.
|
||||||
|
|
||||||
|
This interface will probably need a bit more banging to make it
|
||||||
|
smooth. Currently the simulator uses this file to provide the
|
||||||
|
callbacks for itself when it's built standalone, which is rather
|
||||||
|
ugly. */
|
||||||
|
|
||||||
|
#ifndef INSIDE_SIMULATOR
|
||||||
|
#include "defs.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "ansidecl.h"
|
||||||
|
#include "callback.h"
|
||||||
|
#ifdef ANSI_PROTOTYPES
|
||||||
|
#include <stdarg.h>
|
||||||
|
#else
|
||||||
|
#include <varargs.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* Set the callback copy of errno from what we see now. */
|
||||||
|
static int
|
||||||
|
wrap (p, val)
|
||||||
|
host_callback *p;
|
||||||
|
int val;
|
||||||
|
{
|
||||||
|
p->last_errno = errno;
|
||||||
|
return val;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Make sure the FD provided is ok. If not, return non -1
|
||||||
|
and set errno. */
|
||||||
|
|
||||||
|
static int
|
||||||
|
fdbad (p, fd)
|
||||||
|
host_callback *p;
|
||||||
|
int fd;
|
||||||
|
{
|
||||||
|
if (fd < 0 || fd > MAX_CALLBACK_FDS || !p->fdopen[fd])
|
||||||
|
{
|
||||||
|
p->last_errno = EINVAL;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
fdmap (p, fd)
|
||||||
|
host_callback *p;
|
||||||
|
int fd;
|
||||||
|
{
|
||||||
|
return p->fdmap[fd];
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
os_close (p, fd)
|
||||||
|
host_callback *p;
|
||||||
|
int fd;
|
||||||
|
{
|
||||||
|
return fdbad (p, fd) || wrap (p, close (fdmap (p, fd)));
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
os_get_errno (p)
|
||||||
|
host_callback *p;
|
||||||
|
{
|
||||||
|
/* !!! fixme, translate from host to taget errno value */
|
||||||
|
return p->last_errno;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
os_isatty (p, fd)
|
||||||
|
host_callback *p;
|
||||||
|
int fd;
|
||||||
|
{
|
||||||
|
return fdbad (p, fd) || wrap (p, isatty (fdmap (fd)));
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
os_lseek (p, fd, off, way)
|
||||||
|
host_callback *p;
|
||||||
|
int fd;
|
||||||
|
long off;
|
||||||
|
int way;
|
||||||
|
{
|
||||||
|
return fdbad (p, fd) || lseek (fdmap (p, fd), off, way);
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
os_open (p, name, flags)
|
||||||
|
host_callback *p;
|
||||||
|
const char *name;
|
||||||
|
int flags;
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < MAX_CALLBACK_FDS; i++)
|
||||||
|
{
|
||||||
|
if (!p->fdopen[i])
|
||||||
|
{
|
||||||
|
int f = open (name, flags);
|
||||||
|
if (f < 0)
|
||||||
|
{
|
||||||
|
p->last_errno = errno;
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
p->fdopen[i] = 1;
|
||||||
|
p->fdmap[i] = f;
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
p->last_errno = EMFILE;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
os_read (p, fd, buf, len)
|
||||||
|
host_callback *p;
|
||||||
|
int fd;
|
||||||
|
char *buf;
|
||||||
|
int len;
|
||||||
|
{
|
||||||
|
return fdbad (p, fd) || wrap (p, read (fdmap (p, fd), buf, len));
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
os_read_stdin (p, buf, len)
|
||||||
|
host_callback *p;
|
||||||
|
char *buf;
|
||||||
|
int len;
|
||||||
|
{
|
||||||
|
return wrap (p, read (0, buf, len));
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
os_write (p, fd, buf, len)
|
||||||
|
host_callback *p;
|
||||||
|
int fd;
|
||||||
|
const char *buf;
|
||||||
|
int len;
|
||||||
|
{
|
||||||
|
return fdbad (p, fd) || wrap (p, write (fdmap (p, fd), buf, len));
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ignore the grossness of INSIDE_SIMULATOR, it will go away one day. */
|
||||||
|
int
|
||||||
|
os_write_stdout (p, buf, len)
|
||||||
|
host_callback *p;
|
||||||
|
const char *buf;
|
||||||
|
int len;
|
||||||
|
{
|
||||||
|
#ifdef INSIDE_SIMULATOR
|
||||||
|
return os_write (1, buf, len);
|
||||||
|
#else
|
||||||
|
int i;
|
||||||
|
char b[2];
|
||||||
|
for (i = 0; i< len; i++)
|
||||||
|
{
|
||||||
|
b[0] = buf[i];
|
||||||
|
b[1] = 0;
|
||||||
|
if (target_output_hook)
|
||||||
|
target_output_hook (b);
|
||||||
|
else
|
||||||
|
fputs_filtered (b, gdb_stdout);
|
||||||
|
}
|
||||||
|
return len;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
os_rename (p, f1, f2)
|
||||||
|
host_callback *p;
|
||||||
|
const char *f1;
|
||||||
|
const char *f2;
|
||||||
|
{
|
||||||
|
return wrap (p, rename (f1, f2));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
os_system (p, s)
|
||||||
|
host_callback *p;
|
||||||
|
const char *s;
|
||||||
|
{
|
||||||
|
return wrap (p, system (s));
|
||||||
|
}
|
||||||
|
|
||||||
|
long
|
||||||
|
os_time (p, t)
|
||||||
|
host_callback *p;
|
||||||
|
long *t;
|
||||||
|
{
|
||||||
|
return wrap (p, time (t));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
os_unlink (p, f1)
|
||||||
|
host_callback *p;
|
||||||
|
const char *f1;
|
||||||
|
{
|
||||||
|
return wrap (p, unlink (f1));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
os_shutdown (p)
|
||||||
|
host_callback *p;
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < MAX_CALLBACK_FDS; i++)
|
||||||
|
{
|
||||||
|
if (p->fdopen[i] && !p->alwaysopen[i]) {
|
||||||
|
close (p->fdmap[i]);
|
||||||
|
p->fdopen[i] = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int os_init(p)
|
||||||
|
host_callback *p;
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
os_shutdown (p);
|
||||||
|
for (i= 0; i < 3; i++)
|
||||||
|
{
|
||||||
|
p->fdmap[i] = i;
|
||||||
|
p->fdopen[i] = 1;
|
||||||
|
p->alwaysopen[i] = 1;
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* !!fixme!!
|
||||||
|
This bit is ugly. When the interface has settled down I'll
|
||||||
|
move the whole file into sim/common and remove this bit. */
|
||||||
|
|
||||||
|
/* VARARGS */
|
||||||
|
void
|
||||||
|
#ifdef ANSI_PROTOTYPES
|
||||||
|
os_printf_filtered (host_callback *p, char *format, ...)
|
||||||
|
#else
|
||||||
|
os_printf_filtered (p, va_alist)
|
||||||
|
host_callback *p;
|
||||||
|
va_dcl
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
va_list args;
|
||||||
|
#ifdef ANSI_PROTOTYPES
|
||||||
|
va_start (args, format);
|
||||||
|
#else
|
||||||
|
char *format;
|
||||||
|
|
||||||
|
va_start (args);
|
||||||
|
format = va_arg (args, char *);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef INSIDE_SIMULATOR
|
||||||
|
vprintf (format, args);
|
||||||
|
#else
|
||||||
|
vfprintf_filtered (stdout, format, args);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
va_end (args);
|
||||||
|
}
|
||||||
|
|
||||||
|
host_callback default_callback =
|
||||||
|
{
|
||||||
|
os_close,
|
||||||
|
os_get_errno,
|
||||||
|
os_isatty,
|
||||||
|
os_lseek,
|
||||||
|
os_open,
|
||||||
|
os_read,
|
||||||
|
os_read_stdin,
|
||||||
|
os_rename,
|
||||||
|
os_system,
|
||||||
|
os_time,
|
||||||
|
os_unlink,
|
||||||
|
os_write,
|
||||||
|
os_write_stdout,
|
||||||
|
|
||||||
|
os_shutdown,
|
||||||
|
os_init,
|
||||||
|
|
||||||
|
os_printf_filtered,
|
||||||
|
|
||||||
|
0, /* last errno */
|
||||||
|
};
|
41
gdb/callback.h
Normal file
41
gdb/callback.h
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
#ifndef CALLBACK_H
|
||||||
|
#define CALLBACK_H
|
||||||
|
typedef struct host_callback_struct host_callback;
|
||||||
|
|
||||||
|
#define MAX_CALLBACK_FDS 10
|
||||||
|
|
||||||
|
struct host_callback_struct
|
||||||
|
{
|
||||||
|
int (*close) PARAMS ((host_callback *,int));
|
||||||
|
int (*get_errno) PARAMS ((host_callback *));
|
||||||
|
int (*isatty) PARAMS ((host_callback *, int));
|
||||||
|
int (*lseek) PARAMS ((host_callback *, int, long , int));
|
||||||
|
int (*open) PARAMS ((host_callback *, const char*, int mode));
|
||||||
|
int (*read) PARAMS ((host_callback *,int, char *, int));
|
||||||
|
int (*read_stdin) PARAMS (( host_callback *, char *, int));
|
||||||
|
int (*rename) PARAMS ((host_callback *, const char *, const char *));
|
||||||
|
int (*system) PARAMS ((host_callback *, const char *));
|
||||||
|
long (*time) PARAMS ((host_callback *, long *));
|
||||||
|
int (*unlink) PARAMS ((host_callback *, const char *));
|
||||||
|
int (*write) PARAMS ((host_callback *,int, const char *, int));
|
||||||
|
int (*write_stdout) PARAMS ((host_callback *, const char *, int));
|
||||||
|
|
||||||
|
|
||||||
|
/* Used when the target has gone away, so we can close open
|
||||||
|
handles and free memory etc etc. */
|
||||||
|
int (*shutdown) PARAMS ((host_callback *));
|
||||||
|
int (*init) PARAMS ((host_callback *));
|
||||||
|
|
||||||
|
/* Talk to the user on a console. */
|
||||||
|
void (*printf_filtered) PARAMS ((host_callback *, const char *, ...));
|
||||||
|
|
||||||
|
int last_errno; /* host format */
|
||||||
|
|
||||||
|
int fdmap[MAX_CALLBACK_FDS];
|
||||||
|
char fdopen[MAX_CALLBACK_FDS];
|
||||||
|
char alwaysopen[MAX_CALLBACK_FDS];
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
extern host_callback default_callback;
|
|
@ -1,5 +1,5 @@
|
||||||
# Target: Acorn RISC machine (ARM) with simulator
|
# Target: Acorn RISC machine (ARM) with simulator
|
||||||
TDEPFILES= arm-tdep.o
|
TDEPFILES= arm-tdep.o remote-rdp.o
|
||||||
TM_FILE= tm-arm.h
|
TM_FILE= tm-arm.h
|
||||||
|
|
||||||
SIM_OBS = remote-sim.o
|
SIM_OBS = remote-sim.o
|
||||||
|
|
|
@ -50,6 +50,7 @@ i386v.mt
|
||||||
i386v32.mh
|
i386v32.mh
|
||||||
i386v4.mh
|
i386v4.mh
|
||||||
i386v4.mt
|
i386v4.mt
|
||||||
|
i386win32.mh
|
||||||
linux.mh
|
linux.mh
|
||||||
linux.mt
|
linux.mt
|
||||||
nbsd.mh
|
nbsd.mh
|
||||||
|
@ -105,6 +106,7 @@ xm-i386sco.h
|
||||||
xm-i386v.h
|
xm-i386v.h
|
||||||
xm-i386v32.h
|
xm-i386v32.h
|
||||||
xm-i386v4.h
|
xm-i386v4.h
|
||||||
|
xm-i386win32.h
|
||||||
xm-linux.h
|
xm-linux.h
|
||||||
xm-nbsd.h
|
xm-nbsd.h
|
||||||
xm-ptx.h
|
xm-ptx.h
|
||||||
|
|
6
gdb/config/i386/i386win32.mh
Normal file
6
gdb/config/i386/i386win32.mh
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
MH_CFLAGS=
|
||||||
|
XDEPFILES=
|
||||||
|
XM_FILE=xm-i386win32.h
|
||||||
|
TERMCAP=
|
||||||
|
|
||||||
|
|
39
gdb/config/i386/xm-i386win32.h
Normal file
39
gdb/config/i386/xm-i386win32.h
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
/* Definitions for hosting on WIN32, for GDB.
|
||||||
|
Copyright 1995 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
This file is part of GDB.
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#define HOST_BYTE_ORDER LITTLE_ENDIAN
|
||||||
|
|
||||||
|
#include "fopen-bin.h"
|
||||||
|
|
||||||
|
#define CANT_FORK
|
||||||
|
|
||||||
|
|
||||||
|
#define GDBINIT_FILENAME "gdb.ini"
|
||||||
|
|
||||||
|
#define SLASH_P(X) ((X)=='\\' || (X) == '/')
|
||||||
|
#define ROOTED_P(X) ((SLASH_P((X)[0]))|| ((X)[1] ==':'))
|
||||||
|
#define SLASH_CHAR '/'
|
||||||
|
#define SLASH_STRING "/"
|
||||||
|
|
||||||
|
/* If we longjmp out of the signal handler we never get another one.
|
||||||
|
So disable immediate_quit inside request_quit */
|
||||||
|
#define REQUEST_QUIT
|
||||||
|
|
||||||
|
|
||||||
|
|
275
gdb/configure
vendored
275
gdb/configure
vendored
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated automatically using autoconf version 2.3
|
# Generated automatically using autoconf version 2.4.2
|
||||||
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
|
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This configure script is free software; the Free Software Foundation
|
# This configure script is free software; the Free Software Foundation
|
||||||
|
@ -39,6 +39,18 @@ target=NONE
|
||||||
verbose=
|
verbose=
|
||||||
x_includes=NONE
|
x_includes=NONE
|
||||||
x_libraries=NONE
|
x_libraries=NONE
|
||||||
|
bindir='${exec_prefix}/bin'
|
||||||
|
sbindir='${exec_prefix}/sbin'
|
||||||
|
libexecdir='${exec_prefix}/libexec'
|
||||||
|
datadir='${prefix}/share'
|
||||||
|
sysconfdir='${prefix}/etc'
|
||||||
|
sharedstatedir='${prefix}/com'
|
||||||
|
localstatedir='${prefix}/var'
|
||||||
|
libdir='${exec_prefix}/lib'
|
||||||
|
includedir='${prefix}/include'
|
||||||
|
oldincludedir='/usr/include'
|
||||||
|
infodir='${prefix}/info'
|
||||||
|
mandir='${prefix}/man'
|
||||||
|
|
||||||
# Initialize some other variables.
|
# Initialize some other variables.
|
||||||
subdirs=
|
subdirs=
|
||||||
|
@ -63,9 +75,14 @@ do
|
||||||
|
|
||||||
case "$ac_option" in
|
case "$ac_option" in
|
||||||
|
|
||||||
-build | --build | --buil | --bui | --bu | --b)
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
||||||
|
ac_prev=bindir ;;
|
||||||
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
||||||
|
bindir="$ac_optarg" ;;
|
||||||
|
|
||||||
|
-build | --build | --buil | --bui | --bu)
|
||||||
ac_prev=build ;;
|
ac_prev=build ;;
|
||||||
-build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
||||||
build="$ac_optarg" ;;
|
build="$ac_optarg" ;;
|
||||||
|
|
||||||
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
||||||
|
@ -75,6 +92,12 @@ do
|
||||||
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
||||||
cache_file="$ac_optarg" ;;
|
cache_file="$ac_optarg" ;;
|
||||||
|
|
||||||
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
||||||
|
ac_prev=datadir ;;
|
||||||
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
||||||
|
| --da=*)
|
||||||
|
datadir="$ac_optarg" ;;
|
||||||
|
|
||||||
-disable-* | --disable-*)
|
-disable-* | --disable-*)
|
||||||
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
||||||
# Reject names that are not valid shell variable names.
|
# Reject names that are not valid shell variable names.
|
||||||
|
@ -125,12 +148,26 @@ Configuration:
|
||||||
Directory and file names:
|
Directory and file names:
|
||||||
--prefix=PREFIX install architecture-independent files in PREFIX
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
||||||
[$ac_default_prefix]
|
[$ac_default_prefix]
|
||||||
--exec-prefix=PREFIX install architecture-dependent files in PREFIX
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
||||||
[same as prefix]
|
[same as prefix]
|
||||||
|
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
||||||
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
||||||
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
||||||
|
--datadir=DIR read-only architecture-independent data in DIR [PREFIX/share]
|
||||||
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
||||||
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com]
|
||||||
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
||||||
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
||||||
|
--includedir=DIR C header files in DIR [PREFIX/include]
|
||||||
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
||||||
|
--infodir=DIR info documentation in DIR [PREFIX/info]
|
||||||
|
--mandir=DIR man documentation in DIR [PREFIX/man]
|
||||||
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
||||||
--program-prefix=PREFIX prepend PREFIX to installed program names
|
--program-prefix=PREFIX prepend PREFIX to installed program names
|
||||||
--program-suffix=SUFFIX append SUFFIX to installed program names
|
--program-suffix=SUFFIX append SUFFIX to installed program names
|
||||||
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
||||||
|
EOF
|
||||||
|
cat << EOF
|
||||||
Host type:
|
Host type:
|
||||||
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
||||||
--host=HOST configure for HOST [guessed]
|
--host=HOST configure for HOST [guessed]
|
||||||
|
@ -151,6 +188,44 @@ EOF
|
||||||
-host=* | --host=* | --hos=* | --ho=*)
|
-host=* | --host=* | --hos=* | --ho=*)
|
||||||
host="$ac_optarg" ;;
|
host="$ac_optarg" ;;
|
||||||
|
|
||||||
|
-includedir | --includedir | --includedi | --included | --include \
|
||||||
|
| --includ | --inclu | --incl | --inc)
|
||||||
|
ac_prev=includedir ;;
|
||||||
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
||||||
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
||||||
|
includedir="$ac_optarg" ;;
|
||||||
|
|
||||||
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
||||||
|
ac_prev=infodir ;;
|
||||||
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
||||||
|
infodir="$ac_optarg" ;;
|
||||||
|
|
||||||
|
-libdir | --libdir | --libdi | --libd)
|
||||||
|
ac_prev=libdir ;;
|
||||||
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
||||||
|
libdir="$ac_optarg" ;;
|
||||||
|
|
||||||
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
||||||
|
| --libexe | --libex | --libe)
|
||||||
|
ac_prev=libexecdir ;;
|
||||||
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
||||||
|
| --libexe=* | --libex=* | --libe=*)
|
||||||
|
libexecdir="$ac_optarg" ;;
|
||||||
|
|
||||||
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
||||||
|
| --localstate | --localstat | --localsta | --localst \
|
||||||
|
| --locals | --local | --loca | --loc | --lo)
|
||||||
|
ac_prev=localstatedir ;;
|
||||||
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
||||||
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
||||||
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
||||||
|
localstatedir="$ac_optarg" ;;
|
||||||
|
|
||||||
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
||||||
|
ac_prev=mandir ;;
|
||||||
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
||||||
|
mandir="$ac_optarg" ;;
|
||||||
|
|
||||||
-nfp | --nfp | --nf)
|
-nfp | --nfp | --nf)
|
||||||
# Obsolete; use --without-fp.
|
# Obsolete; use --without-fp.
|
||||||
with_fp=no ;;
|
with_fp=no ;;
|
||||||
|
@ -163,6 +238,15 @@ EOF
|
||||||
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
||||||
no_recursion=yes ;;
|
no_recursion=yes ;;
|
||||||
|
|
||||||
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
||||||
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
||||||
|
| --oldin | --oldi | --old | --ol | --o)
|
||||||
|
ac_prev=oldincludedir ;;
|
||||||
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
||||||
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
||||||
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
||||||
|
oldincludedir="$ac_optarg" ;;
|
||||||
|
|
||||||
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
||||||
ac_prev=prefix ;;
|
ac_prev=prefix ;;
|
||||||
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
||||||
|
@ -203,6 +287,23 @@ EOF
|
||||||
| -silent | --silent | --silen | --sile | --sil)
|
| -silent | --silent | --silen | --sile | --sil)
|
||||||
silent=yes ;;
|
silent=yes ;;
|
||||||
|
|
||||||
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
||||||
|
ac_prev=sbindir ;;
|
||||||
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
||||||
|
| --sbi=* | --sb=*)
|
||||||
|
sbindir="$ac_optarg" ;;
|
||||||
|
|
||||||
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
||||||
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
||||||
|
| --sharedst | --shareds | --shared | --share | --shar \
|
||||||
|
| --sha | --sh)
|
||||||
|
ac_prev=sharedstatedir ;;
|
||||||
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
||||||
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
||||||
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
||||||
|
| --sha=* | --sh=*)
|
||||||
|
sharedstatedir="$ac_optarg" ;;
|
||||||
|
|
||||||
-site | --site | --sit)
|
-site | --site | --sit)
|
||||||
ac_prev=site ;;
|
ac_prev=site ;;
|
||||||
-site=* | --site=* | --sit=*)
|
-site=* | --site=* | --sit=*)
|
||||||
|
@ -213,6 +314,13 @@ EOF
|
||||||
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
||||||
srcdir="$ac_optarg" ;;
|
srcdir="$ac_optarg" ;;
|
||||||
|
|
||||||
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
||||||
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
||||||
|
ac_prev=sysconfdir ;;
|
||||||
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
||||||
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
||||||
|
sysconfdir="$ac_optarg" ;;
|
||||||
|
|
||||||
-target | --target | --targe | --targ | --tar | --ta | --t)
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
||||||
ac_prev=target ;;
|
ac_prev=target ;;
|
||||||
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
||||||
|
@ -222,7 +330,7 @@ EOF
|
||||||
verbose=yes ;;
|
verbose=yes ;;
|
||||||
|
|
||||||
-version | --version | --versio | --versi | --vers)
|
-version | --version | --versio | --versi | --vers)
|
||||||
echo "configure generated by autoconf version 2.3"
|
echo "configure generated by autoconf version 2.4.2"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
|
|
||||||
-with-* | --with-*)
|
-with-* | --with-*)
|
||||||
|
@ -387,9 +495,12 @@ fi
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||||
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='echo $CPP $CPPFLAGS 1>&5;
|
||||||
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
|
$CPP $CPPFLAGS'
|
||||||
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
|
ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
|
||||||
|
${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
|
||||||
|
ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
|
||||||
|
${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
|
||||||
|
|
||||||
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
||||||
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
||||||
|
@ -450,6 +561,7 @@ else
|
||||||
ac_cv_prog_gcc=no
|
ac_cv_prog_gcc=no
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
|
||||||
if test $ac_cv_prog_gcc = yes; then
|
if test $ac_cv_prog_gcc = yes; then
|
||||||
GCC=yes
|
GCC=yes
|
||||||
|
@ -467,6 +579,7 @@ fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
|
echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
|
||||||
if test $ac_cv_prog_gcc_g = yes; then
|
if test $ac_cv_prog_gcc_g = yes; then
|
||||||
CFLAGS="-g -O"
|
CFLAGS="-g -O"
|
||||||
|
@ -494,7 +607,7 @@ else
|
||||||
# On the NeXT, cc -E runs the code through the compiler's parser,
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
||||||
# not just through cpp.
|
# not just through cpp.
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 498 "configure"
|
#line 611 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
Syntax Error
|
Syntax Error
|
||||||
|
@ -508,7 +621,7 @@ else
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
CPP="${CC-cc} -E -traditional-cpp"
|
CPP="${CC-cc} -E -traditional-cpp"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 512 "configure"
|
#line 625 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
Syntax Error
|
Syntax Error
|
||||||
|
@ -527,13 +640,15 @@ fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
ac_cv_prog_CPP="$CPP"
|
ac_cv_prog_CPP="$CPP"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
CPP="$ac_cv_prog_CPP"
|
CPP="$ac_cv_prog_CPP"
|
||||||
|
else
|
||||||
|
ac_cv_prog_CPP="$CPP"
|
||||||
|
fi
|
||||||
echo "$ac_t""$CPP" 1>&6
|
echo "$ac_t""$CPP" 1>&6
|
||||||
|
|
||||||
echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
echo $ac_n "checking for AIX""... $ac_c" 1>&6
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 537 "configure"
|
#line 652 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#ifdef _AIX
|
#ifdef _AIX
|
||||||
yes
|
yes
|
||||||
|
@ -560,7 +675,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 564 "configure"
|
#line 679 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <minix/config.h>
|
#include <minix/config.h>
|
||||||
EOF
|
EOF
|
||||||
|
@ -678,10 +793,17 @@ else
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
IFS="$ac_save_ifs"
|
IFS="$ac_save_ifs"
|
||||||
# As a last resort, use the slow shell script.
|
|
||||||
test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
|
|
||||||
fi
|
fi
|
||||||
|
if test "${ac_cv_path_install+set}" = set; then
|
||||||
INSTALL="$ac_cv_path_install"
|
INSTALL="$ac_cv_path_install"
|
||||||
|
else
|
||||||
|
# As a last resort, use the slow shell script. We don't cache a
|
||||||
|
# path for INSTALL within a source directory, because that will
|
||||||
|
# break other packages using the cache if that directory is
|
||||||
|
# removed, or if the path is relative.
|
||||||
|
INSTALL="$ac_install_sh"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
echo "$ac_t""$INSTALL" 1>&6
|
echo "$ac_t""$INSTALL" 1>&6
|
||||||
|
|
||||||
|
@ -852,7 +974,7 @@ else
|
||||||
ac_cv_c_cross=yes
|
ac_cv_c_cross=yes
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 856 "configure"
|
#line 978 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
main(){return(0);}
|
main(){return(0);}
|
||||||
EOF
|
EOF
|
||||||
|
@ -865,15 +987,16 @@ fi
|
||||||
fi
|
fi
|
||||||
rm -fr conftest*
|
rm -fr conftest*
|
||||||
fi
|
fi
|
||||||
cross_compiling=$ac_cv_c_cross
|
|
||||||
echo "$ac_t""$ac_cv_c_cross" 1>&6
|
echo "$ac_t""$ac_cv_c_cross" 1>&6
|
||||||
|
cross_compiling=$ac_cv_c_cross
|
||||||
|
|
||||||
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
|
||||||
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 877 "configure"
|
#line 1000 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@ -895,7 +1018,7 @@ rm -f conftest*
|
||||||
if test $ac_cv_header_stdc = yes; then
|
if test $ac_cv_header_stdc = yes; then
|
||||||
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 899 "configure"
|
#line 1022 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
EOF
|
EOF
|
||||||
|
@ -913,7 +1036,7 @@ fi
|
||||||
if test $ac_cv_header_stdc = yes; then
|
if test $ac_cv_header_stdc = yes; then
|
||||||
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 917 "configure"
|
#line 1040 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
EOF
|
EOF
|
||||||
|
@ -934,7 +1057,7 @@ if test "$cross_compiling" = yes; then
|
||||||
ac_cv_header_stdc=no
|
ac_cv_header_stdc=no
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 938 "configure"
|
#line 1061 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
||||||
|
@ -955,6 +1078,7 @@ fi
|
||||||
rm -fr conftest*
|
rm -fr conftest*
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6
|
||||||
if test $ac_cv_header_stdc = yes; then
|
if test $ac_cv_header_stdc = yes; then
|
||||||
cat >> confdefs.h <<\EOF
|
cat >> confdefs.h <<\EOF
|
||||||
|
@ -963,7 +1087,7 @@ EOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for ac_hdr in memory.h string.h strings.h unistd.h
|
for ac_hdr in memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h
|
||||||
do
|
do
|
||||||
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
|
ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
|
||||||
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
||||||
|
@ -971,7 +1095,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 975 "configure"
|
#line 1099 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <$ac_hdr>
|
#include <$ac_hdr>
|
||||||
EOF
|
EOF
|
||||||
|
@ -989,7 +1113,7 @@ rm -f conftest*
|
||||||
fi
|
fi
|
||||||
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
||||||
echo "$ac_t""yes" 1>&6
|
echo "$ac_t""yes" 1>&6
|
||||||
ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
|
ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
|
||||||
cat >> confdefs.h <<EOF
|
cat >> confdefs.h <<EOF
|
||||||
#define $ac_tr_hdr 1
|
#define $ac_tr_hdr 1
|
||||||
EOF
|
EOF
|
||||||
|
@ -1004,7 +1128,7 @@ if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1008 "configure"
|
#line 1132 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -1045,6 +1169,7 @@ fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
|
echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
|
||||||
if test $ac_cv_header_stat_broken = yes; then
|
if test $ac_cv_header_stat_broken = yes; then
|
||||||
cat >> confdefs.h <<\EOF
|
cat >> confdefs.h <<\EOF
|
||||||
|
@ -1062,7 +1187,7 @@ else
|
||||||
ac_cv_func_mmap=no
|
ac_cv_func_mmap=no
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1066 "configure"
|
#line 1191 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
/* Thanks to Mike Haertel and Jim Avera for this test. */
|
/* Thanks to Mike Haertel and Jim Avera for this test. */
|
||||||
|
@ -1146,6 +1271,7 @@ fi
|
||||||
fi
|
fi
|
||||||
rm -fr conftest*
|
rm -fr conftest*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$ac_t""$ac_cv_func_mmap" 1>&6
|
echo "$ac_t""$ac_cv_func_mmap" 1>&6
|
||||||
if test $ac_cv_func_mmap = yes; then
|
if test $ac_cv_func_mmap = yes; then
|
||||||
cat >> confdefs.h <<\EOF
|
cat >> confdefs.h <<\EOF
|
||||||
|
@ -1160,8 +1286,8 @@ ENABLE_CLIBS=
|
||||||
ENABLE_OBS=
|
ENABLE_OBS=
|
||||||
|
|
||||||
# Check whether --enable-netrom or --disable-netrom was given.
|
# Check whether --enable-netrom or --disable-netrom was given.
|
||||||
|
if test "${enable_netrom+set}" = set; then
|
||||||
enableval="$enable_netrom"
|
enableval="$enable_netrom"
|
||||||
if test -n "$enableval"; then
|
|
||||||
case "${enableval}" in
|
case "${enableval}" in
|
||||||
yes) enable_netrom=yes ;;
|
yes) enable_netrom=yes ;;
|
||||||
no) enable_netrom=no ;;
|
no) enable_netrom=no ;;
|
||||||
|
@ -1178,8 +1304,8 @@ fi
|
||||||
ENABLE_GDBTK=
|
ENABLE_GDBTK=
|
||||||
|
|
||||||
# Check whether --enable-gdbtk or --disable-gdbtk was given.
|
# Check whether --enable-gdbtk or --disable-gdbtk was given.
|
||||||
|
if test "${enable_gdbtk+set}" = set; then
|
||||||
enableval="$enable_gdbtk"
|
enableval="$enable_gdbtk"
|
||||||
if test -n "$enableval"; then
|
|
||||||
case "${enableval}" in
|
case "${enableval}" in
|
||||||
yes) enable_gdbtk=yes ;;
|
yes) enable_gdbtk=yes ;;
|
||||||
no) enable_gdbtk=no ;;
|
no) enable_gdbtk=no ;;
|
||||||
|
@ -1196,8 +1322,8 @@ if test "${enable_gdbtk}" = "yes"; then
|
||||||
echo $ac_n "checking for X""... $ac_c" 1>&6
|
echo $ac_n "checking for X""... $ac_c" 1>&6
|
||||||
|
|
||||||
# Check whether --with-x or --without-x was given.
|
# Check whether --with-x or --without-x was given.
|
||||||
|
if test "${with_x+set}" = set; then
|
||||||
withval="$with_x"
|
withval="$with_x"
|
||||||
if test -n "$withval"; then
|
|
||||||
:
|
:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1225,10 +1351,12 @@ EOF
|
||||||
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
||||||
eval `make acfindx 2>/dev/null | grep -v make`
|
eval `make acfindx 2>/dev/null | grep -v make`
|
||||||
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
||||||
if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
|
for ac_extension in a so sl; do
|
||||||
then
|
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
||||||
ac_im_usrlibdir=$ac_im_libdir
|
test -f $ac_im_libdir/libX11.$ac_extension; then
|
||||||
|
ac_im_usrlibdir=$ac_im_libdir; break
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
# Screen out bogus values from the imake configuration.
|
# Screen out bogus values from the imake configuration.
|
||||||
case "$ac_im_incroot" in
|
case "$ac_im_incroot" in
|
||||||
/usr/include) ;;
|
/usr/include) ;;
|
||||||
|
@ -1248,7 +1376,7 @@ test -z "$x_direct_test_library" && x_direct_test_library=Xt
|
||||||
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
|
||||||
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1252 "configure"
|
#line 1380 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <$x_direct_test_include>
|
#include <$x_direct_test_include>
|
||||||
EOF
|
EOF
|
||||||
|
@ -1311,7 +1439,7 @@ rm -f conftest*
|
||||||
ac_save_LIBS="$LIBS"
|
ac_save_LIBS="$LIBS"
|
||||||
LIBS="-l$x_direct_test_library $LIBS"
|
LIBS="-l$x_direct_test_library $LIBS"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1315 "configure"
|
#line 1443 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
|
@ -1423,13 +1551,14 @@ else
|
||||||
# libraries we check for below, so use a different variable.
|
# libraries we check for below, so use a different variable.
|
||||||
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
|
||||||
echo $ac_n "checking for -lICE""... $ac_c" 1>&6
|
echo $ac_n "checking for -lICE""... $ac_c" 1>&6
|
||||||
if eval "test \"`echo '$''{'ac_cv_lib_ICE'+set}'`\" = set"; then
|
ac_lib_var=`echo ICE | tr '+./' 'p__'`
|
||||||
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
ac_save_LIBS="$LIBS"
|
ac_save_LIBS="$LIBS"
|
||||||
LIBS="-lICE $LIBS"
|
LIBS="-lICE $LIBS"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1433 "configure"
|
#line 1562 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
|
@ -1439,16 +1568,16 @@ IceConnectionNumber()
|
||||||
EOF
|
EOF
|
||||||
if eval $ac_link; then
|
if eval $ac_link; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_ICE=yes"
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||||
else
|
else
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_ICE=no"
|
eval "ac_cv_lib_$ac_lib_var=no"
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
LIBS="$ac_save_LIBS"
|
LIBS="$ac_save_LIBS"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if eval "test \"`echo '$ac_cv_lib_'ICE`\" = yes"; then
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
||||||
echo "$ac_t""yes" 1>&6
|
echo "$ac_t""yes" 1>&6
|
||||||
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
||||||
else
|
else
|
||||||
|
@ -1466,13 +1595,14 @@ fi
|
||||||
# libraries were built with DECnet support. And karl@cs.umb.edu says
|
# libraries were built with DECnet support. And karl@cs.umb.edu says
|
||||||
# the Alpha needs dnet_stub (dnet does not exist).
|
# the Alpha needs dnet_stub (dnet does not exist).
|
||||||
echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
|
echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
|
||||||
if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then
|
ac_lib_var=`echo dnet | tr '+./' 'p__'`
|
||||||
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
ac_save_LIBS="$LIBS"
|
ac_save_LIBS="$LIBS"
|
||||||
LIBS="-ldnet $LIBS"
|
LIBS="-ldnet $LIBS"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1476 "configure"
|
#line 1606 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
|
@ -1482,16 +1612,16 @@ dnet_ntoa()
|
||||||
EOF
|
EOF
|
||||||
if eval $ac_link; then
|
if eval $ac_link; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_dnet=yes"
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||||
else
|
else
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_dnet=no"
|
eval "ac_cv_lib_$ac_lib_var=no"
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
LIBS="$ac_save_LIBS"
|
LIBS="$ac_save_LIBS"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
||||||
echo "$ac_t""yes" 1>&6
|
echo "$ac_t""yes" 1>&6
|
||||||
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
||||||
else
|
else
|
||||||
|
@ -1500,13 +1630,14 @@ fi
|
||||||
|
|
||||||
if test $ac_cv_lib_dnet = no; then
|
if test $ac_cv_lib_dnet = no; then
|
||||||
echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
|
echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
|
||||||
if eval "test \"`echo '$''{'ac_cv_lib_dnet_stub'+set}'`\" = set"; then
|
ac_lib_var=`echo dnet_stub | tr '+./' 'p__'`
|
||||||
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
ac_save_LIBS="$LIBS"
|
ac_save_LIBS="$LIBS"
|
||||||
LIBS="-ldnet_stub $LIBS"
|
LIBS="-ldnet_stub $LIBS"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1510 "configure"
|
#line 1641 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
|
@ -1516,16 +1647,16 @@ dnet_ntoa()
|
||||||
EOF
|
EOF
|
||||||
if eval $ac_link; then
|
if eval $ac_link; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_dnet_stub=yes"
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||||
else
|
else
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_dnet_stub=no"
|
eval "ac_cv_lib_$ac_lib_var=no"
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
LIBS="$ac_save_LIBS"
|
LIBS="$ac_save_LIBS"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if eval "test \"`echo '$ac_cv_lib_'dnet_stub`\" = yes"; then
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
||||||
echo "$ac_t""yes" 1>&6
|
echo "$ac_t""yes" 1>&6
|
||||||
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
||||||
else
|
else
|
||||||
|
@ -1539,13 +1670,14 @@ fi
|
||||||
# Not sure which flavor of 386 UNIX this is, but it seems harmless to
|
# Not sure which flavor of 386 UNIX this is, but it seems harmless to
|
||||||
# check for it.
|
# check for it.
|
||||||
echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
|
echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
|
||||||
if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
|
ac_lib_var=`echo nsl | tr '+./' 'p__'`
|
||||||
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
ac_save_LIBS="$LIBS"
|
ac_save_LIBS="$LIBS"
|
||||||
LIBS="-lnsl $LIBS"
|
LIBS="-lnsl $LIBS"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1549 "configure"
|
#line 1681 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
|
@ -1555,16 +1687,16 @@ t_accept()
|
||||||
EOF
|
EOF
|
||||||
if eval $ac_link; then
|
if eval $ac_link; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_nsl=yes"
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||||
else
|
else
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_nsl=no"
|
eval "ac_cv_lib_$ac_lib_var=no"
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
LIBS="$ac_save_LIBS"
|
LIBS="$ac_save_LIBS"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
||||||
echo "$ac_t""yes" 1>&6
|
echo "$ac_t""yes" 1>&6
|
||||||
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
||||||
else
|
else
|
||||||
|
@ -1577,13 +1709,14 @@ fi
|
||||||
# But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
|
# But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
|
||||||
if test "`(uname) 2>/dev/null`" != IRIX; then
|
if test "`(uname) 2>/dev/null`" != IRIX; then
|
||||||
echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
|
echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
|
||||||
if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
|
ac_lib_var=`echo socket | tr '+./' 'p__'`
|
||||||
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
ac_save_LIBS="$LIBS"
|
ac_save_LIBS="$LIBS"
|
||||||
LIBS="-lsocket $LIBS"
|
LIBS="-lsocket $LIBS"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1587 "configure"
|
#line 1720 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
|
@ -1593,16 +1726,16 @@ socket()
|
||||||
EOF
|
EOF
|
||||||
if eval $ac_link; then
|
if eval $ac_link; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_socket=yes"
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||||
else
|
else
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_socket=no"
|
eval "ac_cv_lib_$ac_lib_var=no"
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
LIBS="$ac_save_LIBS"
|
LIBS="$ac_save_LIBS"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
|
||||||
echo "$ac_t""yes" 1>&6
|
echo "$ac_t""yes" 1>&6
|
||||||
X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
|
X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
|
||||||
else
|
else
|
||||||
|
@ -1640,7 +1773,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1644 "configure"
|
#line 1777 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <tk.h>
|
#include <tk.h>
|
||||||
EOF
|
EOF
|
||||||
|
@ -1742,7 +1875,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1746 "configure"
|
#line 1879 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <tclInt.h>
|
#include <tclInt.h>
|
||||||
EOF
|
EOF
|
||||||
|
@ -1889,7 +2022,7 @@ i[345]86-*-unixware) gdb_host=i386v4 ;;
|
||||||
i[345]86-*-sysv*) gdb_host=i386v ;;
|
i[345]86-*-sysv*) gdb_host=i386v ;;
|
||||||
i[345]86-*-isc*) gdb_host=i386v32 ;;
|
i[345]86-*-isc*) gdb_host=i386v32 ;;
|
||||||
i[345]86-*-os9k) gdb_host=i386os9k ;;
|
i[345]86-*-os9k) gdb_host=i386os9k ;;
|
||||||
|
i[345]86-*-win32*) gdb_host=i386win32 ;;
|
||||||
m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
|
m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
|
||||||
m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
|
m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
|
||||||
m68030-sony-*) gdb_host=news1000 ;;
|
m68030-sony-*) gdb_host=news1000 ;;
|
||||||
|
@ -2105,10 +2238,6 @@ mips*-dec-mach3*) gdb_target=mach3 ;;
|
||||||
mips*-dec-*) gdb_target=decstation ;;
|
mips*-dec-*) gdb_target=decstation ;;
|
||||||
mips64*el-*-ecoff*) gdb_target=idtl64 ;;
|
mips64*el-*-ecoff*) gdb_target=idtl64 ;;
|
||||||
mips64*-idt-ecoff*) gdb_target=idt64 ;;
|
mips64*-idt-ecoff*) gdb_target=idt64 ;;
|
||||||
# CYGNUS LOCAL jsmith
|
|
||||||
mips64*vr4300*el-*-elf*) gdb_target=vr4300el ;;
|
|
||||||
mips64*vr4300*-*-elf*) gdb_target=vr4300 ;;
|
|
||||||
# END CYGNUS LOCAL
|
|
||||||
mips64*el-*-elf*) gdb_target=idtl64 ;;
|
mips64*el-*-elf*) gdb_target=idtl64 ;;
|
||||||
mips64*-*-elf*) gdb_target=idt64 ;;
|
mips64*-*-elf*) gdb_target=idt64 ;;
|
||||||
mips*el-*-ecoff*) gdb_target=idtl ;;
|
mips*el-*-ecoff*) gdb_target=idtl ;;
|
||||||
|
@ -2341,7 +2470,7 @@ do
|
||||||
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
||||||
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
||||||
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
||||||
echo "$CONFIG_STATUS generated by autoconf version 2.3"
|
echo "$CONFIG_STATUS generated by autoconf version 2.4.2"
|
||||||
exit 0 ;;
|
exit 0 ;;
|
||||||
-help | --help | --hel | --he | --h)
|
-help | --help | --hel | --he | --h)
|
||||||
echo "\$ac_cs_usage"; exit 0 ;;
|
echo "\$ac_cs_usage"; exit 0 ;;
|
||||||
|
@ -2368,6 +2497,18 @@ s%@LIBS@%$LIBS%g
|
||||||
s%@exec_prefix@%$exec_prefix%g
|
s%@exec_prefix@%$exec_prefix%g
|
||||||
s%@prefix@%$prefix%g
|
s%@prefix@%$prefix%g
|
||||||
s%@program_transform_name@%$program_transform_name%g
|
s%@program_transform_name@%$program_transform_name%g
|
||||||
|
s%@bindir@%$bindir%g
|
||||||
|
s%@sbindir@%$sbindir%g
|
||||||
|
s%@libexecdir@%$libexecdir%g
|
||||||
|
s%@datadir@%$datadir%g
|
||||||
|
s%@sysconfdir@%$sysconfdir%g
|
||||||
|
s%@sharedstatedir@%$sharedstatedir%g
|
||||||
|
s%@localstatedir@%$localstatedir%g
|
||||||
|
s%@libdir@%$libdir%g
|
||||||
|
s%@includedir@%$includedir%g
|
||||||
|
s%@oldincludedir@%$oldincludedir%g
|
||||||
|
s%@infodir@%$infodir%g
|
||||||
|
s%@mandir@%$mandir%g
|
||||||
s%@CC@%$CC%g
|
s%@CC@%$CC%g
|
||||||
s%@CPP@%$CPP%g
|
s%@CPP@%$CPP%g
|
||||||
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
||||||
|
|
|
@ -16,7 +16,7 @@ AC_CANONICAL_SYSTEM
|
||||||
AC_ARG_PROGRAM
|
AC_ARG_PROGRAM
|
||||||
|
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_CHECK_HEADERS(memory.h string.h strings.h unistd.h)
|
AC_CHECK_HEADERS(memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h)
|
||||||
AC_HEADER_STAT
|
AC_HEADER_STAT
|
||||||
|
|
||||||
AC_FUNC_MMAP
|
AC_FUNC_MMAP
|
||||||
|
@ -135,7 +135,7 @@ i[345]86-*-unixware) gdb_host=i386v4 ;;
|
||||||
i[345]86-*-sysv*) gdb_host=i386v ;;
|
i[345]86-*-sysv*) gdb_host=i386v ;;
|
||||||
i[345]86-*-isc*) gdb_host=i386v32 ;;
|
i[345]86-*-isc*) gdb_host=i386v32 ;;
|
||||||
i[345]86-*-os9k) gdb_host=i386os9k ;;
|
i[345]86-*-os9k) gdb_host=i386os9k ;;
|
||||||
|
i[345]86-*-win32*) gdb_host=i386win32 ;;
|
||||||
m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
|
m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
|
||||||
m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
|
m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
|
||||||
m68030-sony-*) gdb_host=news1000 ;;
|
m68030-sony-*) gdb_host=news1000 ;;
|
||||||
|
|
|
@ -1342,7 +1342,7 @@ by a serial line.",
|
||||||
hms_insert_breakpoint, hms_remove_breakpoint, /* Breakpoints */
|
hms_insert_breakpoint, hms_remove_breakpoint, /* Breakpoints */
|
||||||
0, 0, 0, 0, 0, /* Terminal handling */
|
0, 0, 0, 0, 0, /* Terminal handling */
|
||||||
hms_kill, /* FIXME, kill */
|
hms_kill, /* FIXME, kill */
|
||||||
gr_load_image,
|
generic_load,
|
||||||
0, /* lookup_symbol */
|
0, /* lookup_symbol */
|
||||||
hms_create_inferior, /* create_inferior */
|
hms_create_inferior, /* create_inferior */
|
||||||
hms_mourn, /* mourn_inferior FIXME */
|
hms_mourn, /* mourn_inferior FIXME */
|
||||||
|
|
1200
gdb/remote-rdp.c
Normal file
1200
gdb/remote-rdp.c
Normal file
File diff suppressed because it is too large
Load diff
|
@ -96,24 +96,6 @@ int regno;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
|
||||||
sim_callback_write_stdout (arg, len)
|
|
||||||
char *arg;
|
|
||||||
int len;
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
char b[2];
|
|
||||||
for (i = 0; i< len; i++) {
|
|
||||||
b[0] = arg[i];
|
|
||||||
b[1] = 0;
|
|
||||||
if (target_output_hook)
|
|
||||||
target_output_hook (b);
|
|
||||||
else
|
|
||||||
fputs_filtered (b, gdb_stdout);
|
|
||||||
}
|
|
||||||
return len;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gdbsim_store_register (regno)
|
gdbsim_store_register (regno)
|
||||||
int regno;
|
int regno;
|
||||||
|
@ -169,7 +151,7 @@ gdbsim_load (prog, fromtty)
|
||||||
program_loaded = 1;
|
program_loaded = 1;
|
||||||
|
|
||||||
if (sim_load (prog, fromtty) != 0)
|
if (sim_load (prog, fromtty) != 0)
|
||||||
gr_load_image (prog, fromtty);
|
generic_load (prog, fromtty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -234,12 +216,9 @@ gdbsim_open (args, from_tty)
|
||||||
{
|
{
|
||||||
if (sr_get_debug ())
|
if (sr_get_debug ())
|
||||||
printf_filtered ("gdbsim_open: args \"%s\"\n", args ? args : "(null)");
|
printf_filtered ("gdbsim_open: args \"%s\"\n", args ? args : "(null)");
|
||||||
|
|
||||||
sim_open (args);
|
sim_open (args);
|
||||||
|
|
||||||
push_target (&gdbsim_ops);
|
push_target (&gdbsim_ops);
|
||||||
target_fetch_registers (-1);
|
target_fetch_registers (-1);
|
||||||
|
|
||||||
printf_filtered ("Connected to the simulator.\n");
|
printf_filtered ("Connected to the simulator.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -629,70 +629,6 @@ gr_store_word (addr, word)
|
||||||
dcache_poke (gr_get_dcache(), addr, word);
|
dcache_poke (gr_get_dcache(), addr, word);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* general purpose load a file specified on the command line
|
|
||||||
into target memory. */
|
|
||||||
|
|
||||||
void
|
|
||||||
gr_load_image (args, fromtty)
|
|
||||||
char *args;
|
|
||||||
int fromtty;
|
|
||||||
{
|
|
||||||
bfd *abfd;
|
|
||||||
|
|
||||||
asection *s;
|
|
||||||
struct cleanup *old_cleanups;
|
|
||||||
int delta = 4096;
|
|
||||||
char *buffer = xmalloc (delta);
|
|
||||||
|
|
||||||
abfd = bfd_openr (args, (char *) 0);
|
|
||||||
|
|
||||||
if (!abfd)
|
|
||||||
/* FIXME: should be using bfd_errmsg, not assuming it was
|
|
||||||
bfd_error_system_call. */
|
|
||||||
perror_with_name (args);
|
|
||||||
|
|
||||||
/* FIXME: should be checking for errors from bfd_close (for one thing,
|
|
||||||
on error it does not free all the storage associated with the
|
|
||||||
bfd). */
|
|
||||||
old_cleanups = make_cleanup (bfd_close, abfd);
|
|
||||||
|
|
||||||
QUIT;
|
|
||||||
|
|
||||||
if (!bfd_check_format (abfd, bfd_object))
|
|
||||||
error ("It doesn't seem to be an object file.\n");
|
|
||||||
|
|
||||||
for (s = abfd->sections; s && !quit_flag; s = s->next)
|
|
||||||
{
|
|
||||||
if (bfd_get_section_flags (abfd, s) & SEC_LOAD)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
printf_filtered ("%s\t: 0x%4x .. 0x%4x ",
|
|
||||||
s->name, s->vma, s->vma + s->_raw_size);
|
|
||||||
fflush (stdout);
|
|
||||||
for (i = 0; i < s->_raw_size && !quit_flag; i += delta)
|
|
||||||
{
|
|
||||||
int sub_delta = delta;
|
|
||||||
if (sub_delta > s->_raw_size - i)
|
|
||||||
sub_delta = s->_raw_size - i;
|
|
||||||
QUIT;
|
|
||||||
bfd_get_section_contents (abfd, s, buffer, i, sub_delta);
|
|
||||||
target_write_memory (s->vma + i, buffer, sub_delta);
|
|
||||||
printf_filtered ("*");
|
|
||||||
fflush (stdout);
|
|
||||||
}
|
|
||||||
printf_filtered ("\n");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
free (buffer);
|
|
||||||
write_pc (bfd_get_start_address (abfd));
|
|
||||||
if (!bfd_close (abfd))
|
|
||||||
warning ("cannot close \"%s\": %s",
|
|
||||||
args, bfd_errmsg (bfd_get_error ()));
|
|
||||||
discard_cleanups (old_cleanups);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_initialize_sr_support ()
|
_initialize_sr_support ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,14 +21,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#include "serial.h"
|
#include "serial.h"
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include "terminal.h"
|
||||||
#if !defined (HAVE_TERMIOS) && !defined (HAVE_TERMIO) && !defined (HAVE_SGTTY)
|
#ifdef HAVE_UNISTD_H
|
||||||
#define HAVE_SGTTY
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_TERMIOS
|
#ifdef HAVE_TERMIOS
|
||||||
#include <termios.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
struct hardwire_ttystate
|
struct hardwire_ttystate
|
||||||
{
|
{
|
||||||
|
@ -37,7 +35,6 @@ struct hardwire_ttystate
|
||||||
#endif /* termios */
|
#endif /* termios */
|
||||||
|
|
||||||
#ifdef HAVE_TERMIO
|
#ifdef HAVE_TERMIO
|
||||||
#include <termio.h>
|
|
||||||
|
|
||||||
/* It is believed that all systems which have added job control to SVR3
|
/* It is believed that all systems which have added job control to SVR3
|
||||||
(e.g. sco) have also added termios. Even if not, trying to figure out
|
(e.g. sco) have also added termios. Even if not, trying to figure out
|
||||||
|
@ -55,8 +52,6 @@ struct hardwire_ttystate
|
||||||
too if it existed on all systems. */
|
too if it existed on all systems. */
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include <sgtty.h>
|
|
||||||
|
|
||||||
struct hardwire_ttystate
|
struct hardwire_ttystate
|
||||||
{
|
{
|
||||||
struct sgttyb sgttyb;
|
struct sgttyb sgttyb;
|
||||||
|
@ -296,6 +291,9 @@ static int
|
||||||
hardwire_flush_input (scb)
|
hardwire_flush_input (scb)
|
||||||
serial_t scb;
|
serial_t scb;
|
||||||
{
|
{
|
||||||
|
scb->bufcnt = 0;
|
||||||
|
scb->bufp = scb->buf;
|
||||||
|
|
||||||
#ifdef HAVE_TERMIOS
|
#ifdef HAVE_TERMIOS
|
||||||
return tcflush (scb->fd, TCIFLUSH);
|
return tcflush (scb->fd, TCIFLUSH);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -15,7 +15,7 @@ GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
#if !defined(__GO32__) && !defined(WIN32)
|
#if !defined(__GO32__) && !defined(WIN32)
|
||||||
|
@ -536,7 +536,7 @@ quit ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if defined(__GO32__)||defined(WIN32)
|
#if defined(__GO32__)||defined(WINGDB)
|
||||||
|
|
||||||
/* In the absence of signals, poll keyboard for a quit.
|
/* In the absence of signals, poll keyboard for a quit.
|
||||||
Called from #define QUIT pollquit() in xm-go32.h. */
|
Called from #define QUIT pollquit() in xm-go32.h. */
|
||||||
|
@ -565,7 +565,7 @@ pollquit()
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#if defined(__GO32__)||defined(WIN32)
|
#if defined(__GO32__)||defined(WINGDB)
|
||||||
void notice_quit()
|
void notice_quit()
|
||||||
{
|
{
|
||||||
if (kbhit ())
|
if (kbhit ())
|
||||||
|
@ -597,7 +597,6 @@ request_quit (signo)
|
||||||
int signo;
|
int signo;
|
||||||
{
|
{
|
||||||
quit_flag = 1;
|
quit_flag = 1;
|
||||||
|
|
||||||
/* Restore the signal handler. Harmless with BSD-style signals, needed
|
/* Restore the signal handler. Harmless with BSD-style signals, needed
|
||||||
for System V-style signals. So just always do it, rather than worrying
|
for System V-style signals. So just always do it, rather than worrying
|
||||||
about USG defines and stuff like that. */
|
about USG defines and stuff like that. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue