From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1642 invoked by alias); 8 Mar 2011 16:28:57 -0000 Received: (qmail 1633 invoked by uid 22791); 8 Mar 2011 16:28:56 -0000 X-SWARE-Spam-Status: No, hits=-6.9 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; Tue, 08 Mar 2011 16:28:46 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p28GSiVM027004 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 8 Mar 2011 11:28:44 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p28GShiH022165; Tue, 8 Mar 2011 11:28:44 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p28GSh5Q004063; Tue, 8 Mar 2011 11:28:43 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id A53523782A7; Tue, 8 Mar 2011 09:28:42 -0700 (MST) From: Tom Tromey To: Michael Eager Cc: gdb@sourceware.org Subject: Re: Translate memory addresses References: <4D741E53.2090104@eagerm.com> Date: Tue, 08 Mar 2011 16:28:00 -0000 In-Reply-To: <4D741E53.2090104@eagerm.com> (Michael Eager's message of "Sun, 06 Mar 2011 15:52:51 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00054.txt.bz2 >>>>> "Michael" == Michael Eager writes: Michael> I'm working with a target which needs to translate Michael> a virtual memory addresses to a physical address Michael> before accessing the target's memory or the core file. Michael> Core_ops is defined in corelow.c, and there doesn't appear Michael> to be an obvious hook for the target code to modify it to Michael> add the translation routine. Michael> Any suggestions on the best way to add a hook or how to specify Michael> a target routine to do address translations for core files? I am not an expert in this area, but couldn't you make a new arch_stratum target that does the translation? With this approach maybe you don't even need a hook -- just do the translation and call the target beneath. Tom