This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdbserver: variable sized breakpoints


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: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]