This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Setting up ARM7 MMU using gdbinit
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Charles Steaderman <charlies at poliac dot com>
- Cc: gdb at sources dot redhat dot com, Richard dot Earnshaw at arm dot com
- Date: Tue, 21 May 2002 12:19:38 +0100
- Subject: Re: Setting up ARM7 MMU using gdbinit
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> I am developing a project using a Cirrus Logic 7312 ARM720 CPU. I would
> like to debug my code from RAM, but the executable is larger than the on
> chip SRAM. Also, the SDRAM interface does not work unless the CACHE is
> enabled (and therefore MMU enabled) (Cirrus Logic errata :-( ).
> Unfortunately, setting up the MMU requires access to Coprocessor
> register 15 (through the mcr assembly instruction). Is there a way to
> get to the coprocessor registers from the gdbinit script so that I can
> setup the MMU prior to downloading my application into the SDRAM? I have
> considered writing the mcr instruction op code in to memory and single
> stepping over the instruction, but this seems a bit painful. Any help
> would be greatly appreciated!
Sorry, at this time there is no way to directly access the co-processor
registers from gdb other than by making the target run MRC/MCR
instructions.
R.