gdbserver: variable sized breakpoints
Mike Frysinger
vapier@gentoo.org
Thu Jul 7 02:14:00 GMT 2011
current Blackfin cpus have an oddity where the insn being turned into a
software breakpoint has to be of an equal size. our break point insn is
16bits long, so replacing a 16bit insn works fine. but replacing a 32bit insn
requires us to use the 16bit bp insn followed by a 16bit nop. failure to do
this can result in the unreplaced 16bits triggering undesirable side effects
as it can be an invalid insn, one that causes speculative fetches, etc...
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 ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb/attachments/20110707/1c1da90a/attachment.sig>
More information about the Gdb
mailing list