From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6721 invoked by alias); 1 Jul 2014 16:28:42 -0000 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 Received: (qmail 6650 invoked by uid 89); 1 Jul 2014 16:28:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 01 Jul 2014 16:28:35 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s61GSY1W030232 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 1 Jul 2014 12:28:34 -0400 Received: from host2.jankratochvil.net (ovpn-116-53.ams2.redhat.com [10.36.116.53]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s61GSV5m028107 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Tue, 1 Jul 2014 12:28:33 -0400 Date: Tue, 01 Jul 2014 16:28:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Regression for attach from stdin [Re: [pushed] Re: [PATCH v6 0/2] enable target-async by default] Message-ID: <20140701162830.GA25877@host2.jankratochvil.net> References: <1400878753-24688-1-git-send-email-palves@redhat.com> <538739A2.2050105@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <538739A2.2050105@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00019.txt.bz2 On Thu, 29 May 2014 15:44:02 +0200, Pedro Alves wrote: > I went ahead and pushed this all in, with Eli's comments addressed. 329ea57934a9d4b250a0b417af1ec47bc2d0ceb6 is the first bad commit commit 329ea57934a9d4b250a0b417af1ec47bc2d0ceb6 Author: Pedro Alves Date: Thu May 29 19:58:57 2014 +0100 enable target async by default; separate MI and target notions of async This affects GCC testsuite where guality.exp does not start at all with: gdb: took too long to attach cat >var2.c < volatile int xxx; int main(void) { while (!xxx); printf("xxx=%d\n",xxx); return 0; } HERE gcc -o var2 var2.c -Wall -g ./var2 &p=$!;sleep 0.1;echo -e "set trace-commands\nattach $p\nset xxx=1\nprint xxx"|gdb -q;kill -9 $p ---> [1] 31729 (gdb) (gdb) +attach 31729 Attaching to process 31729 +set xxx=1 No symbol table is loaded. Use the "file" command. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (gdb) Reading symbols from /home/jkratoch/t/var2...done. Reading symbols from /lib64/libc.so.6...Reading symbols from /usr/lib/debug/usr/lib64/libc-2.19.90.so.debug...done. done. Loaded symbols for /lib64/libc.so.6 Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/usr/lib64/ld-2.19.90.so.debug...done. done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 0x0000000000400541 in main () at var2.c:4 4 while (!xxx); +print xxx $1 = 0 Jan