delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/29/19:01:33

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: [Update] Re: GDB on Win2k doesn't work for me.
References: <20000626163802 DOT A3414 AT cygnus DOT com>
<Pine DOT LNX DOT 4 DOT 10 DOT 10006261723090 DOT 18849-100000 AT mailhost DOT thinkage DOT ca>
<20000626181747 DOT A5675 AT cygnus DOT com> <20000627004702 DOT A15783 AT cygnus DOT com>
<m33dlzco28 DOT fsf AT MILHOUSE DOT cs DOT cornell DOT edu>
<m3lmzo2uqj DOT fsf_-_ AT MILHOUSE DOT cs DOT cornell DOT edu>
<20000629181718 DOT A8571 AT cygnus DOT com>
From: Paul Stodghill <stodghil AT CS DOT Cornell DOT EDU>
In-Reply-To: Chris Faylor's message of "Thu, 29 Jun 2000 18:17:18 -0400"
Date: 29 Jun 2000 19:00:54 -0400
Message-ID: <m3ya3oay8p.fsf@MILHOUSE.cs.cornell.edu>
Lines: 56
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef)
MIME-Version: 1.0

> >Any ideas?
> 
> Yes.  I've given two suggestions that I haven't seen followed up on.
> 
> 1) Try 'set debugexceptions'

Right, forgot about that...

I tried this and it doesn't fix the problem.

> 2) Debug gdb.exe and figure out where and why this is failing.

I'm not sure how I can debug gdb without a working gdb, but I'm trying to
improvise...

I just tried running strace on gdb in both scenarios.

Interestingly, in the "doesn't work" case, gdb eventually just hangs. Here
is the last few lines of output,

[ ... ]  
  564 2034353 [main] gdb 1062 environ_init: WEBSTERHOST=alvis
  523 2034876 [main] gdb 1062 environ_init: WINBOOTDIR=C:\WINDOWS
41802 2076678 [main] gdb 1062 environ_init: WINDIR=C:\WINDOWS
  476 2077154 [main] gdb 1062 pinfo_init: pid 1062, pgid 1062
  974 2078128 [main] gdb 1062 hinfo::extend: size 32, fds 0xA042180
69116 2147244 [main] gdb 1062 internal_getlogin: Domain: CUCS
  397 2147641 [main] gdb 1062 internal_getlogin: Logon Server: IAGO
  277 2147918 [main] gdb 1062 internal_getlogin: Windows Username: stodghil
  324 2148242 [main] gdb 1062 lookup_name: name  : stodghil
[ GDB hangs here ]

IAGO is _not_ the local machine.

In the "works" case, gdb runs to completion. Here are the corrisponding
lines of output as about.

[ ... ]
  535 2087909 [main] gdb 1023 environ_init: WEBSTERHOST=alvis
 1224 2089133 [main] gdb 1023 environ_init: WINBOOTDIR=C:\WINDOWS
  551 2089684 [main] gdb 1023 environ_init: WINDIR=C:\WINDOWS
  418 2090102 [main] gdb 1023 pinfo_init: pid 1023, pgid 1023
42467 2132569 [main] gdb 1023 hinfo::extend: size 32, fds 0xA042188
61032 2193601 [main] gdb 1023 internal_getlogin: Domain: CUCS
  405 2194006 [main] gdb 1023 internal_getlogin: Logon Server: MILHOUSE
33012 2227018 [main] gdb 1023 internal_getlogin: Windows Username: stodghil
  489 2227507 [main] gdb 1023 lookup_name: name  : stodghil
 4746 2232253 [main] gdb 1023 lookup_name: sid : [1330]
  357 2232610 [main] gdb 1023 internal_getlogin: Cygwins Username: stodghil
  330 2232940 [main] gdb 1023 _cygwin_istext_for_stdio: _cygwin_istext_for_stdio (0)
34450 2267390 [main] gdb 1023 _cygwin_istext_for_stdio:  _cifs: fd not open
[ ... ]

MILHOUSE _is_ the local machine.

I'll send some more info after doing some more digging....


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019