From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Marsden To: gdb@sources.redhat.com Subject: conditional traps on powerpc Date: Mon, 19 Feb 2001 13:59:00 -0000 Message-id: X-SW-Source: 2001-02/msg00258.html I have a problem debugging a program which uses conditional traps on powerpc (TWxxx instructions). Upon encountering these the linuxppc kernel raises a SIGTRAP, which is grabbed by gdb. When running such a program under gdb I can't distinguish between normal breakpoints and these conditional trap instructions; debugging becomes impossible. Is there some way to handle this situation, or is it necessary to modify gdb so that it looks at the faulting instruction to determine whether it was a conditional trap? -- Eric Marsden