From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15430 invoked by alias); 9 Oct 2003 14:24:40 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 15371 invoked from network); 9 Oct 2003 14:24:38 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 9 Oct 2003 14:24:38 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 22FB72B8E for ; Thu, 9 Oct 2003 10:24:36 -0400 (EDT) Message-ID: <3F856FA3.9020300@redhat.com> Date: Thu, 09 Oct 2003 14:24:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: A thread has-a selected/current frame Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00151.txt.bz2 Hello, At present the selected and current frame are maintained as single globals, and independant of the selected and current thread. As a consequence, each time GDB switches between threads, all global frame state is flushed. I'm intending to add a "current frame" and "selected frame" to "thread_info" so that, instead this can be maintained on a per-thread basis. The tricky one is the sentinel-frame. It needs to be able to perform an arbitrary projection of the virtual thread's register onto the target below's physical threads and memory. I think this suggests a sentinel-frame parameterized by target, and not just the current regcache. Thoughts? Andrew