openocd/src
Christian Eggers 537b06a810 gdb_server: Don't modify "buf" argument in decode_xfer_read()
Make a temporary copy of argument "buf" before modifying it.
This requires also returning annex as copy of "buf".

This change is necessary in order to make packet[] "const".

Change-Id: I41eddc2edba1a88384aa7f5591fe50f6ee6a135c
Signed-off-by: Christian Eggers <ceggers@gmx.de>
---
Changelog:
v4:
- Initialize annex to NULL
v3:
- Return "annex" as copy instead of removing it.
Reviewed-on: http://openocd.zylin.com/1924
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-03-04 20:16:47 +00:00
..
flash fm3: fix erase flash fail on using High Level Adapters. 2014-02-24 12:10:01 +00:00
helper command: Fix formatting for empty usage string 2014-01-09 13:21:51 +00:00
jtag drivers/jtag: usb_blaster: make command handlers more strict 2014-02-24 12:09:15 +00:00
pld update files to correct FSF address 2013-06-05 19:52:42 +00:00
rtos gdb-server/rtos: Send correct answer to "qfThreadInfo" packet 2014-03-04 20:15:03 +00:00
server gdb_server: Don't modify "buf" argument in decode_xfer_read() 2014-03-04 20:16:47 +00:00
svf svf: off-by-one error; do not access after the allocated memory 2013-09-13 19:34:46 +00:00
target mips32: build register cache in a more clear way 2014-02-24 12:10:29 +00:00
transport update files to correct FSF address 2013-06-05 19:52:42 +00:00
xsvf update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
main.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
Makefile.am cmsis-dap: add initial cmsis-dap support 2014-01-09 15:20:51 +00:00
openocd.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
openocd.h update files to correct FSF address 2013-06-05 19:52:42 +00:00