gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gdb] Privileged Instruction Program Interrupt


From: Clark L. Coleman
Subject: Re: [Gdb] Privileged Instruction Program Interrupt
Date: Thu, 5 Feb 2004 10:25:22 -0500 (EST)

> When I try to simulate an embedded application program, built for the
> PowerPC, I get a Program Interrupt, Privileged Instruction. The instruction
> that causes the exception is a Move to Machine Status Register (MSR),
> (mtmsr). When I display the MSR, before executing, it is set to 0x2900. This
> value, in the MSR, has the Privilege Level (PL) equal to zero (processor can
> execute both user and supervisor level instructions).
> 
> Could anyone help? Thanks in advance
> 
> Hans

I do not think that GDB can run privileged instructions.  At least,
that is what I experienced when debugging in the DOS/DJGPP
environment, where I had programs that ran in DOS privileged mode but
the GDB process could not step through those instructions.

Perhaps others can explain the details of why this is the case.

Clark Coleman
University of Virginia




reply via email to

[Prev in Thread] Current Thread [Next in Thread]