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 (齐尧) _______________________________________________ Toolchain-devel mailing list Toolchain-devel@blackfin.uclinux.org https://blackfin.uclinux.org/mailman/listinfo/toolchain-devel