This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Arm rdi target and initial processor mode


Yet another newbie question :

I want to debug an Arm program which must start running in supervisor
mode. The target is an Arm Evaluator7T (target rdi /dev/ttyS0).
In order to achieve that, one way is to appropriately set up the initial
value of the status register by typing something like:

(gdb) break _start
(gdb) continue
(gdb) set variable $cpsr = 0x83
(gdb) continue 

But this is the hard way.
I would like to use a single gdb command or option which would tell
Angel to set the processor mode to the desired value before launching
the program.
Does any such command or option exist ?

Thanks in advance for any help.

Pierre
-- 
________________________________________________________________________
Pierre HABRAKEN - mailto:Pierre.Habraken@imag.fr
Tél: 04 76 82 72 83 - Fax: 04 76 82 72 87
IMAG-LSR BP72 38402 SAINT MARTIN D'HERES Cedex
________________________________________________________________________


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]