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]

Re: gdbserver: variable sized breakpoints


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 (éå)


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