This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Adding Registers
- From: Duane Ellis <duane_ellis at franklin dot com>
- To: insight at sources dot redhat dot com
- Date: Thu, 14 Feb 2002 10:03:38 -0500
- Subject: Re: Adding Registers
- References: <3c948824.1980.0@esatclear.ie>
- Reply-to: duane_ellis at franklin dot com
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.