This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Exception configuration with GDB & MPC823
- To: <gdb at sources dot redhat dot com>
- Subject: Exception configuration with GDB & MPC823
- From: "Asier Santamaria" <epg9002 at dcs dot napier dot ac dot uk>
- Date: Fri, 22 Sep 2000 17:06:34 +0100
Hi,
I'm a new user of GDB and I have some problems to configure my FADS823
board.
I'm using Insight 5.0 compiled for the powerpc-eabi and I'm using the rproxy
for the tcp remote debug.
I need to configure my board for the debug mode and I've created the
.gdbinit file with my configuration.
The problem is that when I'm debugging I use to receive the SIGTRAP signal
going to the exceptions routines. I'd like to disable this exceptions and I
think that I can do that modifying the DER register with the mtspr
instruction, but I don't know how can I access to the spr registers using
GDB.
For example the configuration file for the Windows Code Warrior uses the
next instructions:
writespr 638 0xFF000000 # IMMR
writereg MSR 0x00001002 # MSR
writespr 27 0x00001002 # SRR1
writespr 158 0x00000007 # ICTRL
writemem.l 0xFF000004 0xFFFFFF88 # SYPCR
writemem.l 0xFF000284 0x00500000 # PLPRCR - 25MHz
writemem.l 0xff000000 0x01012440 # SIUMCR
...
Someone can help me to translate the writespr instruction to GDB? or how can
I solve the exceptions problem?
Many thanks!
_ _ _ _
/_\ (_ o(_ |_) Asier Santamaria
/ \ _)(_(_ | \ Napier University
E-Mail: epg9002@dcs.napier.ac.uk
http://www.dcs.napier.ac.uk/~epg9002
P.S: I'm not in the mailing list.