Application Debug (in virtual memory) with gdb & OpenOCD

I am using the i.MX21 processor running Linux (with MMU).

I would like to use OpenOCD / GDB to debug the application which runs in virtual address space.

I tried inserting a bkpt command early in the application, so that I could then ensure that I have the correct MMU settings (gdb just loads the program to virtual address space), but I don’t seem to get a reaction from the trap instruction.

asm(“.long 0x0xE1200070”);

Is there something in OpenOCD I need to do to enable the breakpoint ?

I did include arm7_9 sw_bkpts enable but that didn’t get me anywhere :cry: