From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7986 invoked by alias); 11 May 2011 08:06:37 -0000 Received: (qmail 7976 invoked by uid 22791); 11 May 2011 08:06:36 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 May 2011 08:06:11 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4B863IF009968 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 11 May 2011 04:06:03 -0400 Received: from host1.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4B861Ap003667 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 May 2011 04:06:02 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p4B860qT005792; Wed, 11 May 2011 10:06:00 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p4B85xtr005788; Wed, 11 May 2011 10:05:59 +0200 Date: Wed, 11 May 2011 08:06:00 -0000 From: Jan Kratochvil To: Yao Qi Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: RFC: fix `gdb -write' case Message-ID: <20110511080559.GA5358@host1.jankratochvil.net> References: <4DC75B31.2020501@codesourcery.com> <4DC89CC7.4070402@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DC89CC7.4070402@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-05/txt/msg00275.txt.bz2 On Tue, 10 May 2011 04:02:47 +0200, Yao Qi wrote: > Is this patch to fix bugs against gdb 6.8? No. In FSF gdb-6.8 it worked. In FSF GDB HEAD it is broken. It is a regression. > I am still unable to reproduce this problem on gdb 20110505-cvs. > > $ ./gdb/gdb -nx -write ~/Work/gdb-write > (gdb) set var s="b" > evaluation of this expression requires the target program to be active This worked with gdb-6.8, therefore you have reproduced the problem. > (gdb) b main > Breakpoint 1 at 0x80483b7: file gdb-write.c, line 3. > (gdb) run > Starting program: /home/yao/Work/gdb-write > BFD: reopening /home/yao/Work/gdb-write: Text file busy > > [This message above repeats] > Breakpoint 1, main () at gdb-write.c:3 > 3 main(){return s[0]=='a';} > (gdb) set var s="b" > BFD: reopening /home/yao/Work/gdb-write: Text file busy > .... > Invalid cast. > > Is it a separate issue? This breaks for me a similar (but exactly the same) way with gdb-6.8. I find this part as offtopic for this Bug. Thanks, Jan