On 28 February 2013 19:37, Kenneth Lee <[email protected]> wrote:
> I am trying to use OpenOCD with GDB  to debug C code running on a Cortex A8
> (AM335x).   One of the issues I am running into is the MCU jumping to the
> ISR vector every time I try to step using GDB, which results in stepping to
> the ISR vector rather than the next line of code in the current source file.
>
>                 If I do a “mon reg cpsr 0x1d3” from the gdb command line to
> disable IRQ’a , then the stepping works.  Obviously, this is not the correct
> way to do this.
>
> So the general question is, is there a way I can step through code without
> gdb jumping to the ISR vector?
>

either what you do above or as a workaround use tbreak + cont.

>
>
> An alternate question, and maybe be related is: Does the OpenOCD cortex A8
> module have anything like the M3 maskisr functionality that I can hook into
> GDB?
>

support would need adding i am afraid.
I am not that familiar with the cortex-a8 (no hardware) but the
register to use seems to be CPUDBG_DSCR, bit DSCR_INT_DIS.

Cheers
Spen

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to