From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4167 invoked by alias); 2 Oct 2008 12:12:29 -0000 Received: (qmail 4158 invoked by uid 22791); 2 Oct 2008 12:12:28 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 02 Oct 2008 12:11:53 +0000 Received: (qmail 18485 invoked from network); 2 Oct 2008 12:11:51 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 2 Oct 2008 12:11:51 -0000 From: Pedro Alves To: "Pierre Muller" Subject: Re: [RFC] fix win32-nat failure Date: Thu, 02 Oct 2008 12:12:00 -0000 User-Agent: KMail/1.9.9 Cc: gdb-patches@sourceware.org References: <005401c923c0$be5ae250$3b10a6f0$@u-strasbg.fr> <200810011909.10343.pedro@codesourcery.com> <009a01c9246a$64ece5b0$2ec6b110$@u-strasbg.fr> In-Reply-To: <009a01c9246a$64ece5b0$2ec6b110$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810021312.02828.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00050.txt.bz2 On Thursday 02 October 2008 09:39:32, Pierre Muller wrote: > Well, in fact, I don't understand this statement, > after reading it, I suspected that this had to do with the fact that > I use a lot the 'set new-console on' option, > but even without this I still get the same assertion failed message, > so I don't understand why you did not also get it. Sorry for being vague. I just meant that this crashes: $ ./gdb --quiet ./test.exe (gdb) start Temporary breakpoint 1 at 0x40107a: file test.c, line 3. Starting program: /home/pedro/gdb/baseline/build/gdb/test.exe ../../src/gdb/inferior.c:41: internal-error: current_inferior: Assertion `inf' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) But this doesn't: $ gdb --args ./gdb ./test.exe GNU gdb 6.8.0.20080328-cvs (cygwin-special) (top-gdb) run Starting program: /home/pedro/gdb/baseline/build/gdb/gdb.exe ./test.exe ... (gdb) start Temporary breakpoint 1 at 0x40107a: file test.c, line 3. Starting program: /home/pedro/gdb/baseline/build/gdb/test.exe [New Thread 2196.0x2e0] [New Thread 2196.0xbe8] Temporary breakpoint 1, main () at test.c:3 3 return 0; (gdb) Because: (gdb) i (top-gdb) p gdb_has_a_terminal() $1 = 0 hence, the crash site is skipped (inflow.c): 178 void 179 terminal_init_inferior_with_pgrp (int pgrp) 180 { 181 if (gdb_has_a_terminal ()) 182 { 234 void 235 terminal_inferior (void) 236 { 237 if (gdb_has_a_terminal () && terminal_is_ours 238 && inferior_ttystate != NULL 239 && inferior_thisrun_terminal == 0) 240 { > OK, let me try this simpler patch out, > I will send a RFA if that works OK for me. Thanks! -- Pedro Alves