proposal for bochs gui debugger
Posted: Thu Dec 10, 2009 11:30 am
goal : single step trace in C-source-code-level using bochs
Steps:
1) press the "open" button to open your a.out elf file
2) the debugger will detect how many .c file is in that a.out
3) display all the .c files in bochs gui debugger
4) type in the physical address of the executable startup address (although the ELF have the startup address, but it is a virutal address, and bochs cannot set a virutal address breakpoint, so you have to enter the physical address)
5) double click on the source to set the breakpoint, because you have entered the physical address, so I can use that address plus the offset to calculate the actual breakpoint address.
6) everything done, press the "run" button, bochs will pause if the breakpoint is hit.
Is it good enough for OS developer to debug their ELF kernel/app? I think no, so please tell me your idea.
thanks
from Peter
Steps:
1) press the "open" button to open your a.out elf file
2) the debugger will detect how many .c file is in that a.out
3) display all the .c files in bochs gui debugger
4) type in the physical address of the executable startup address (although the ELF have the startup address, but it is a virutal address, and bochs cannot set a virutal address breakpoint, so you have to enter the physical address)
5) double click on the source to set the breakpoint, because you have entered the physical address, so I can use that address plus the offset to calculate the actual breakpoint address.
6) everything done, press the "run" button, bochs will pause if the breakpoint is hit.
Is it good enough for OS developer to debug their ELF kernel/app? I think no, so please tell me your idea.
thanks
from Peter