This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GDB errors


On Tue, Nov 06, 2001 at 09:11:54PM +0000, Alan Hourihane wrote:
>On Tue, Nov 06, 2001 at 03:44:05PM -0500, Christopher Faylor wrote:
>> Right.  gdb doesn't use automake.
>> 
>> You should look at the gdb web page, if you haven't already.  It should
>> have some instructions on building.
>> 
>> http://sources.redhat.com/gdb/
>> 
>I did poke around, but it's certainly not obvious for building
>instructions.
>
>It seems that expect/pty_termios.c is currently broken too. *slave_name
>is defined at line 134 and 175, it also breaks at 379 due to duplicate
>definitions.
>
>I've patched it (patch below for your perusal Chris) and it's now building, 
>we'll see......

Something must be wrong because Cygwin doesn't have openpty.

I've just rerun configure and expect's expect_cf.h doesn't define
HAVE_OPENPTY.

However, you don't have to build expect for gdb.

You can just remove the expect and dejagnu directories if you aren't going
to be running the gdb testsuite.

cgf

>(No doubt the patch needs tweaking).
>
>Index: pty_termios.c
>===================================================================
>RCS file: /cvs/src/src/expect/pty_termios.c,v
>retrieving revision 1.3
>diff -u -r1.3 pty_termios.c
>--- pty_termios.c	2001/09/11 19:24:03	1.3
>+++ pty_termios.c	2001/11/06 21:10:45
>@@ -133,6 +133,7 @@
> 
> #if defined(HAVE__GETPTY) || defined(HAVE_PTC_PTS) || defined(HAVE_PTMX)
> static char *slave_name;
>+static char *master_name;
> #endif
> 
> #if defined(HAVE_GETPTY)
>@@ -170,8 +171,10 @@
> #endif /* HAVE_SCO_CLIST_PTYS */
> 
> #ifdef HAVE_OPENPTY
>+#if 0
> static char master_name[64];
> static char slave_name[64];
>+#endif
> #endif
> 
> char *exp_pty_slave_name;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]