gdb/gdbserver/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 6 Dec 2011 23:29:47 +0000 (23:29 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 6 Dec 2011 23:29:47 +0000 (23:29 +0000)
commit6bf36717dae10f855c300d2651a93d60fcf57abb
tree3119bc92dd77f41181484e8ab8530465475ca36a
parent91912e4d08609d91a27931942660fc9c8297b6a9
gdb/gdbserver/
Fix overlapping memcpy.
* mem-break.c (set_raw_breakpoint_at): New variable buf.  Use it for
the read_inferior_memory transfer.
(delete_fast_tracepoint_jump): New variable buf.  Use it for the
write_inferior_memory transfer.
(set_fast_tracepoint_jump): New variable buf.  Use it for the
read_inferior_memory and write_inferior_memory transfers.
(uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
(delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
Use it for the write_inferior_memory transfer.
(check_mem_read, check_mem_write): New gdb_asserts for overlapping
buffers.
gdb/gdbserver/ChangeLog
gdb/gdbserver/mem-break.c