From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2492 invoked by alias); 18 Mar 2010 17:47:09 -0000 Received: (qmail 2480 invoked by uid 22791); 18 Mar 2010 17:47:08 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Mar 2010 17:47:02 +0000 Received: (qmail 5757 invoked from network); 18 Mar 2010 17:47:00 -0000 Received: from unknown (HELO macbook-2.local) (stan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 18 Mar 2010 17:47:00 -0000 Message-ID: <4BA2670E.2050701@codesourcery.com> Date: Thu, 18 Mar 2010 17:47:00 -0000 From: Stan Shebs User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) MIME-Version: 1.0 To: tromey@redhat.com CC: Stan Shebs , gdb-patches@sourceware.org Subject: Re: [PATCH] No resuming while tfinding References: <4BA0377C.1040000@codesourcery.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: 2010-03/txt/msg00671.txt.bz2 Tom Tromey wrote: > Does return_command also need to call ensure_not_tfind_mode? > It seemed less necessary, because it doesn't resume, it just scribbles on the stack - in tfind mode the target kicks it back with write errors. The previous discussion has gotten me to wondering whether it would be a good idea to allow the user to write into a trace buffer. While it sounds crazy at first, it can make sense for the same reasons that it does in a live target; you have a hypothesis about how an expression calculates out, stuff the hypothesized value in memory, and print the expression. It's a little more farfetched that return would be useful if writing worked; if you had collected enough stack, you would see a backtrace displayed as if the return had been done, but since you can't resume, the exercise seems pointless. Stan