2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
authorQinwei <qinwei@sunnorth.com.cn>
Thu, 17 May 2007 03:15:42 +0000 (03:15 +0000)
committerQinwei <qinwei@sunnorth.com.cn>
Thu, 17 May 2007 03:15:42 +0000 (03:15 +0000)
commit5e29c2647ad6277ec3cf70fb849b27dbeaa2f220
tree916790eba60783c64de7bf2c36c12b874039a021
parent98f4ab104cfd693784082cd6ea05e7ef445f3882
2007-05-17  Qinwei  <qinwei@sunnorth.com.cn>

* score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
(score_prologue_frame_base_address): Return fp to keep gdb print
local variables correctly when debugging information is stabs.

(score_analyze_prologue): For software watchpoint, fetch all the
instructions from range [startaddr, pc] once and identify them locally
to reduce memory access.
(score_malloc_and_get_memblock, score_free_memblock)
(score_adjust_memblock_ptr): New functions.
(score_fetch_inst): Fetch single instruction or mutiple instructions.

(score_target_can_use_watch, score_stopped_by_watch)
(score_target_insert_watchpoint, score_target_remove_watchpoint)
(score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
New functions for remote & local hw-watchpoint and hw-breakpoint.
gdb/score-tdep.c