From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30584 invoked by alias); 1 Jul 2004 18:45:43 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30566 invoked from network); 1 Jul 2004 18:45:42 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 1 Jul 2004 18:45:42 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i61Ijge1014246 for ; Thu, 1 Jul 2004 14:45:42 -0400 Received: from zenia.home.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i61Ije000973; Thu, 1 Jul 2004 14:45:41 -0400 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: RFA: make sim interface use gdbarch methods for collect/supply References: <20040630155329.GA19452@nevyn.them.org> <20040701024822.GA5875@nevyn.them.org> <20040701173102.GA14843@nevyn.them.org> From: Jim Blandy Date: Thu, 01 Jul 2004 18:45:00 -0000 In-Reply-To: <20040701173102.GA14843@nevyn.them.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-07/txt/msg00009.txt.bz2 Daniel Jacobowitz writes: > GDB won't have to know where to place their contents in the buffer! > That's the point of using a regset. You convert the 'g' packet output > to a binary blob in the obvious way, and then that's your regset. The > target architecture supplies a regset that expects the format provided > by the 'g' packet. Is there some problem with that plan? No, regsets are perfect for 'g'. I was thinking of the single- register case (all under the assumption that we'd like to restrict uses of supply_register and collect_register to regset functions). What do you do with, say, the individual registers from your fancy 'T' reply? As far as I can tell, regsets don't serve this case well, which makes them (in their current state) less than suitable as a universal register transfer interface.