[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; }
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.