From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20077 invoked by alias); 14 Feb 2002 15:03:54 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 19975 invoked from network); 14 Feb 2002 15:03:49 -0000 Received: from unknown (HELO earth-out.franklin.com) (63.88.59.82) by sources.redhat.com with SMTP; 14 Feb 2002 15:03:49 -0000 Received: from saturn.franklin.com (IDENT:root@saturn.franklin.com [192.9.200.2]) by earth-out.franklin.com (8.9.3/8.9.3) with ESMTP id KAA30178 for ; Thu, 14 Feb 2002 10:03:36 -0500 Received: from mercury.franklin.com (IDENT:root@mercury.franklin.com [192.9.200.250]) by saturn.franklin.com (8.9.3/8.9.3) with ESMTP id KAA20238 for ; Thu, 14 Feb 2002 10:03:36 -0500 Received: (from duane@localhost) by mercury.franklin.com (8.9.3/8.9.3) id KAA18618; Thu, 14 Feb 2002 10:03:38 -0500 Date: Thu, 14 Feb 2002 07:03:00 -0000 Message-Id: <200202141503.KAA18618@mercury.franklin.com> From: Duane Ellis To: insight@sources.redhat.com In-reply-to: <3c948824.1980.0@esatclear.ie> (mckennad@esatclear.ie) Subject: Re: Adding Registers Reply-to: duane_ellis@franklin.com References: <3c948824.1980.0@esatclear.ie> X-SW-Source: 2002-q1/txt/msg00130.txt.bz2 david> Andrew refers to the internal number of each register. I am dealing with a memory mapped register and as such it has no number, how is this dealt with in the functions. You are thinking like "r0" "r1" and such. What number would you then apply to the PC, or the STACK pointer? Numbers are some what arbitrary. Think of it as "register id" ID numbers 0..15 mean registers 0..15, id 16 is PC, 17 is stack, 18 is flags register, 19 is this, and 20 is that, and 21 is _other_ david> I have gotten as far as Good, next step is to fire up the debugger, and set a break point at that specific function. Run GDB, and use the GDB commands to modify or change a register. BANG - you hit the break point, and you step into the function keep stepping till you find the function you need tomodify. Exit GDB, and hack away. This method sure beats digging through source... and un-winding macros. -Duane.