forked from Imagelibrary/binutils-gdb
* gnu-regex.c: Eliminate obsolete check for _MSC_VER.
* utils.c (notice_quit): Remove dummy function only used for _MSC_VER. * values.c (unpack_double): Remove obsolete check for _MSC_VER. * defs.h: Ditto. * m32r-rom.c: Ditto. * p-exp.y: Ditto. * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for faster compilation. (get_ds_base): Remove _MSC_VER version of this function. * nindy-share/ttyflush.c: Ditto. X * rdi-share/host.h: Ditto. X * ser-go32.c (dos_readchar): Remove call to obsolete function. * remote-sim.c (gdb_os_poll_quit): Ditto. * remote-e7000.c (expect): Remove obsolete #if 0'ed code. * main.c (captured_main): Eliminate special Cygwin checks. * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
This commit is contained in:
18
gdb/main.c
18
gdb/main.c
@@ -90,10 +90,6 @@ static void print_gdb_help (struct ui_file *);
|
||||
extern int enable_external_editor;
|
||||
extern char *external_editor_command;
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
#include <sys/cygwin.h> /* for cygwin32_conv_to_posix_path */
|
||||
#endif
|
||||
|
||||
/* Call command_loop. If it happens to return, pass that through as a
|
||||
non-zero return status. */
|
||||
|
||||
@@ -534,21 +530,7 @@ extern int gdbtk_test (char *);
|
||||
*before* all the command line arguments are processed; it sets
|
||||
global parameters, which are independent of what file you are
|
||||
debugging or what directory you are in. */
|
||||
#ifdef __CYGWIN__
|
||||
{
|
||||
char *tmp = getenv ("HOME");
|
||||
|
||||
if (tmp != NULL)
|
||||
{
|
||||
homedir = (char *) alloca (PATH_MAX + 1);
|
||||
cygwin32_conv_to_posix_path (tmp, homedir);
|
||||
}
|
||||
else
|
||||
homedir = NULL;
|
||||
}
|
||||
#else
|
||||
homedir = getenv ("HOME");
|
||||
#endif
|
||||
if (homedir)
|
||||
{
|
||||
homeinit = (char *) alloca (strlen (homedir) +
|
||||
|
||||
Reference in New Issue
Block a user