[ECOS] Exception Handling
nprasad3@gmu.edu
nprasad3@gmu.edu
Fri Dec 19 04:33:00 GMT 2003
What are you using for debugging? cyg_hal_default_exception_vsr will be in rom so the debugger won't be able to replace the instruction.
I put a tight loop at the start of the exception handler, break with bdm and release control from the loop and single step.
Nirmal
----- Original Message -----
From: Ernie Biancarelli <ernie@aztek-eng.com>
Date: Thursday, December 18, 2003 6:24 pm
Subject: [ECOS] Exception Handling
> I'm having difficulty debugging exception handlers for my PPC
> target. I
> have read the manual and tried to emulate the example for
> installing an
> exception handler for the CYGNUM_HAL_VECTOR_SYSTEM_CALL exception.
> This
> leads me to believe that I indeed have installed my own exception
> handler. However, I cannot debug the exception handling path. It
> seems I
> cannot set a breakpoint in the assembly code for
> cyg_hal_default_exception_vsr. And when I look for the
> implementation of
> cyg_hal_exception_handler in Insight, I can't find it defined in
> hal_misc.c. In fact, hal_misc.c doesn't look anything like the
> file that
> is in the hal/powerpc/arch directory. I'm confused.
>
> Can someone shed some light on this topic for me and give me some
> tips
> as to where I can set breakpoints when debugging exceptions?
>
> I'm using Redboot as a rom monitor and it has the GDB stubs built
> in. My
> target config is attached if that helps.
>
> Ernie
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: my.cfg
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20031219/24a1f314/attachment.ksh>
-------------- next part --------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
-------------- next part --------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list