From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15542 invoked by alias); 2 Sep 2003 18:40:34 -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 15495 invoked from network); 2 Sep 2003 18:40:31 -0000 Received: from unknown (HELO localhost.redhat.com) (66.187.230.200) by sources.redhat.com with SMTP; 2 Sep 2003 18:40:31 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id E710A2B7F; Tue, 2 Sep 2003 14:40:28 -0400 (EDT) Message-ID: <3F54E41C.9040304@redhat.com> Date: Tue, 02 Sep 2003 18:40: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: Mark Kettenis Cc: Daniel Jacobowitz , gdb@sources.redhat.com Subject: Re: [RFC] Register sets References: <200308232249.h7NMnvhh090154@elgar.kettenis.dyndns.org> <20030824164347.GA17520@nevyn.them.org> <200308252234.h7PMYqFu001245@elgar.kettenis.dyndns.org> <3F4B8173.1000302@redhat.com> <20030826165547.GA22836@nevyn.them.org> <86he3xrkjb.fsf@elgar.kettenis.dyndns.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg00019.txt.bz2 > The read_regset function is necessary to support the `gcore' command. > It should use regcache_raw_read to fetch all relevant registers from > the running target, such that we don't need target_fetch_registers(-1) > first. GDB currently has a conflict here. GCORE should definitly use regcache_raw_read, but that still leaves the ptrace code writing back register values - it uses regcache_collect. Hmm, perhaphs it two should be using a regcache_raw_read anyway - might even make it possible to eliminate "target_prepare_to_store"? I like the use of BFD's names. Andrew