PATCH - build winedbg on cygwin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I know no #ifdefs but there is one in stabs.c that does the same so i guess this one is ok.

Changelog: Cygwin porting fix

Index: gdbproxy.c
===================================================================
RCS file: /home/wine/wine/programs/winedbg/gdbproxy.c,v
retrieving revision 1.10
diff -u -r1.10 gdbproxy.c
--- gdbproxy.c 19 Apr 2003 21:27:47 -0000 1.10
+++ gdbproxy.c 1 May 2003 01:35:54 -0000
@@ -98,8 +98,9 @@
/* Unix environment */
unsigned long wine_segs[3]; /* load addresses of the ELF wine exec segments (text, bss and data) */
};
-
+#ifdef __ELF__
extern int read_elf_info(const char* filename, unsigned long tab[]);
+#endif


/* =============================================== *
 *       B A S I C   M A N I P U L A T I O N S     *
@@ -1994,7 +1995,9 @@
    strcpy(wine_path, ptr ? ptr : "wine");

    fprintf(stderr, "Using wine_path: %s\n", wine_path);
+#ifdef __ELF__
    read_elf_info(wine_path, gdbctx->wine_segs);
+#endif

    /* step 3: fire up gdb (if requested) */
    if (flags & 1)




[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux