|
From: dswei <ds...@si...> - 2008-09-30 08:36:48
|
I can load the kernel throught TFTP to the memory, and the in the GDB, use the command 'file vmlinux' to load the
symbols. But these symbols is for virtual address.
The first section of kernel, is to create the page table, and then enable MMU. If I want to debug this section, I can
only use the 'telnet localhost 4444' to enter some OpenOCD's commands. But I can't use the IDE such as Eclipse, because
the gdb can't apply the symbols before the MMU is enabled.
>On Tue, Sep 30, 2008 at 6:14 AM, dswei <ds...@si...> wrote:
>> Thank you, Duane Ellis,
>>
>> Yes, set the HARDWARE instruction break point may be more easy for this question.
>> But I can't still set the break point by double click on the source code. For example,
>> I have to disassemble the linux kernel 'vmlinux', and find the virtual address of
>> 'turn_on_mmu',
>> calculate the corresponding physical address. After that, I can set the 'HARDWARE
>> instruction break point'.
>
>???
>
>I thought hardware breakpoints used the logical address??
>
>> Can I debug the program by click buttons, double click on the source
>> code , even if it's location has a constant offset to it's runtime address?
>
>I don't understand this question.
>
>
>
>
>--
>vind Harboe
>http://www.zylin.com/zy1000.html
>ARM7 ARM9 XScale Cortex
>JTAG debugger and flash programmer
= = = = = = = = = = = = = = = = = = = =
致
礼!
dswei
ds...@si...
2008-09-30
|