This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Hardware breakpoint support
- From: "Fritiofson, Andreas" <andreas dot fritiofson at newmad dot se>
- To: <ecos-discuss at sourceware dot org>
- Date: Tue, 24 Oct 2006 17:26:28 +0200
- Subject: [ECOS] Hardware breakpoint support
Hello!
I would like to implement hardware breakpoint support for the mpc5xx port. It seems bplist-dynamic.c takes care of implementing the functions used by generic-stub.c, as well as storing the active and inactive breakpoints in the hw_bp_list structure. When for example __set_hw_breakpoint is called, it finds an unused breakpoint in the list and sets it. When __install_hw_breakpoint_list is called the breakpoints marked for install are passed to the macro HAL_STUB_HW_BREAKPOINT(setflag, addr, len) which I should implement in plf_stub.c. Right?
Now the mpc5xx has four hardware breakpoints comparators and anyone of these could be used. It seems I cannot make any static mapping between hw_bp_list[i] and the four comparators so I have to go through the process of finding an unused comparator and so on, even though it has already been done in bplist-dynamic.c. How do I make sure the two "lists" of breakpoints are coherent? Wouldn't it be better to implement __set_hw_breakpoint and friends directly in plf_stub.c?
Any other hints or ideas regarding hardware break/watchpoint support are welcome.
Regards,
Andreas Fritiofson
Newmad Technologies AB
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss