Bug 9288 - sim: ppc: syscall, trap IRQ not supported?
Summary: sim: ppc: syscall, trap IRQ not supported?
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: sim (show other bugs)
Version: 6.3
: P1 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-08 13:08 UTC by muhavid
Modified: 2021-10-31 17:09 UTC (History)
2 users (show)

See Also:
Host:
Target: powerpc-*
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description muhavid 2006-10-08 13:08:01 UTC
[Converted from Gnats 2183]

Cannot debug system call, trap. Is it at all possible to debug with target sim for my own os? I've tried with an option:

target sim -r 0x404000 -e bug

But I am always getting a following failure(for a trap):
...
(gdb) cont
cpu 1, cia 0x700: double interrupt - MSR[RI] bit clear when attempting to deliver interrupt, cia=0x700, msr=0x1000; srr0=0x21c4(cia), srr1=0x21002(msr); trap-vector=0x700, trap-msr=0x1000

Program terminated with signal ?, Unknown signal.
The program no longer exists.
(gdb) 
...

Am I doing something wrong?
Is there any other option/alernative/patch how to solve it?

thank you for any hint

P.S. Is there at all some command to show a current device configuration?

Release:
GNU gdb 6.3

Environment:
Suse 10.0

How-To-Repeat:
int main(void)
{
   //asm("sc");
   asm("trap");
   return 0;
}
Comment 1 Mike Frysinger 2021-10-31 17:09:35 UTC
i think you need to specify --env operating if you want to boot your own OS.  the default --env virtual will have the sim handle all such traps.