Hi, I'm working on Blackfin port of GDB. Since Blackfin requires that 16-bit breakpoint for 16-bit instruction and 32-bit breakpoint for 32-bit instruction, Blackfin port GDB tries to read memory, decode instruction, and find the instruction length in gdbarch_breakpoint_from_pc. Reading memory calls putpkt and getpkt when debugging remotely, which might change rs->buf. So we have to call get_remote_state after gdbarch_breakpoint_from_pc in remote_insert_breakpoint. Same for remote_insert_hw_breakpoint. Is it OK? Jie