From: dswei <ds...@si...> - 2008-09-29 19:11:58
|
Hello, all. A program, before it can run at it's runtime address, it has to configure the memory, copy itself to the memory, or enable the MMU; after these, it can run at it's runtime address. My question is, how can I debug it with OpenOCD and gdb, when it does not run at it's runtime address? This is a example, when I debug the linux kernel, the gdb command 'break' can't work before the MMU is enabled , the address of the break point does not exist yet. My method is: telnet the OpenOCD, 'step' to the instuction 'turn_on_mmu. Just after the MMU is enable, I can set the break point use GDB. But this method is difficult for newbie. Do somebody have a easy way? dswei |