From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29283 invoked by alias); 15 Jan 2009 12:40:37 -0000 Received: (qmail 29271 invoked by uid 22791); 15 Jan 2009 12:40:36 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Jan 2009 12:39:45 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.2/jtpda-5.5pre1) with ESMTP id n0FCdbnA097361 ; Thu, 15 Jan 2009 13:39:37 +0100 (CET) Received: from mailserver.u-strasbg.fr (ms4.u-strasbg.fr [IPv6:2001:660:2402:d::13]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id n0FCdbhW032971 ; Thu, 15 Jan 2009 13:39:37 +0100 (CET) (envelope-from muller@ics.u-strasbg.fr) Received: from d620muller (www-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id n0FCdbDs006541 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Thu, 15 Jan 2009 13:39:37 +0100 (CET) (envelope-from muller@ics.u-strasbg.fr) From: "Pierre Muller" To: , "'Pedro Alves'" Subject: [BUG] Quit and "(running)" problem Date: Thu, 15 Jan 2009 12:40:00 -0000 Message-ID: <000001c9770e$5579c160$006d4420$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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: 2009-01/txt/msg00351.txt.bz2 I have troubles with CVS HEAD gdb on cygwin, related to the "(running)" state. But I don't think that this problem is windows specific... Easiest way to reproduce these problems is to: Run gdb with itself: ./gdb ./gdb $ ./gdb ./gdb GNU gdb (GDB) 6.8.50.20090115-cvs Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-cygwin". For bug reporting instructions, please see: ... Setting up the environment for debugging gdb. During symbol reading, struct/union type gets multiply defined: struct type. Breakpoint 1 at 0x40b8a3: file ../../purecvs/gdb/utils.c, line 972. Breakpoint 2 at 0x419086: file ../../purecvs/gdb/cli/cli-cmds.c, line 199. (top-gdb) start Temporary breakpoint 3 at 0x40105c: file ../../purecvs/gdb/gdb.c, line 26. Starting program: /usr/local/src/gdbcvs/build-bare/gdb/gdb.exe [New Thread 3768.0xd98] [New Thread 3768.0xb0] Temporary breakpoint 3, main (argc=1, argv=0xf01f58) at ../../purecvs/gdb/gdb.c:26 26 { (top-gdb) set height 1 (top-gdb) n ---Type to continue, or q to quit---q Quit (top-gdb) set height 80 (top-gdb) inf thr 2 Thread 3768.0xb0 (running) * 1 Thread 3768.0xd98 (running) (top-gdb) cont Continuing. Cannot execute this command while the selected thread is running. (top-gdb) The problem is the set_running function introduced for the non-stop mode probably: the fact on Quitting at the --Type question bypasses the set_running(..,0) (I discovered that by adding an printout on each set_running call) and thus leaves gdb beleaaving that the threads are running while non-stop mode is not even implemented yet on cygwin native gdb! This needs a fix! Pierre Muller Pascal language support maintainer for GDB