riscv-openocd/src/server
Andreas Fritiofson 4f88521581 gdb_server: Further cleanup of target desc functions
Fix use of uninitialized pointer passed to xml_printf, caught by valgrind.

Make sure a failed gdb_generate_target_description frees all allocated
memory and avoids touching its out argument.

Plug memory leak and check allocation in handle_gdb_save_tdesc_command.

Change-Id: I30e20f6760a6215b1b4496304acdf47347eed829
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1645
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-by: Franck Jullien <franck.jullien@gmail.com>
2013-10-03 21:10:24 +00:00
..
Makefile.am ecosboard: delete bit-rotted eCos code 2012-03-13 19:11:11 +00:00
gdb_server.c gdb_server: Further cleanup of target desc functions 2013-10-03 21:10:24 +00:00
gdb_server.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
server.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
server.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
server_stubs.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
startup.tcl Fix a bunch of typos. 2011-03-17 07:25:25 +01:00
tcl_server.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
tcl_server.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
telnet_server.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
telnet_server.h update files to correct FSF address 2013-06-05 19:52:42 +00:00