public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdbserver: variable sized breakpoints
@ 2011-07-07  2:14 Mike Frysinger
  2011-07-07  3:13 ` Yao Qi
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2011-07-07  2:14 UTC (permalink / raw)
  To: gdb; +Cc: toolchain-devel

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

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

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-07 19:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-07  2:14 gdbserver: variable sized breakpoints Mike Frysinger
2011-07-07  3:13 ` Yao Qi
2011-07-07 19:58   ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).