gdbserver: variable sized breakpoints
Yao Qi
yao@codesourcery.com
Thu Jul 7 03:13:00 GMT 2011
On 07/07/2011 10:13 AM, Mike Frysinger wrote:
> gdb itself takes care of this when it's setting breakpoints in
> bfin_breakpoint_from_pc. but gdbserver doesnt seem to have a way to handle
> this. is it already possible ? or does the linux_target_ops struct need to
> be extended ?
gdbserver doesn't have to worry about this. gdb is able to send
breakpoint insn by 'M' packet, IIRC, if remote stub doesn't support 'Z0'
packet. Looks target->insert_point is not defined in bfin gdbserver, so
'Z0' packet is not supported. Then, gdb can send the right breakpoint
insn (32-bit or 16-bit) by 'M' packet to remote.
--
Yao (é½å°§)
More information about the Gdb
mailing list