OSDN Git Service

* regcache.c (new_register_cache): No need to check result of xcalloc.
authordevans <devans>
Mon, 19 Jan 2009 00:16:46 +0000 (00:16 +0000)
committerdevans <devans>
Mon, 19 Jan 2009 00:16:46 +0000 (00:16 +0000)
commit98702f406b2f4a28002793940e9ca6b90d4aaae4
tree10aaece8dbcc4a5b69f019648bc94faddb2b6685
parent78248a0aaa7642032d0704efe3ce4abc0eb774db
* regcache.c (new_register_cache): No need to check result of xcalloc.
* server.c (handle_search_memory): Back out calls to xmalloc,
result is checked and error is returned to user upon failure.
(handle_query): Ditto.  Add more checks for result of malloc.
(handle_v_cont): Check result of malloc, report error back to
user upon failure.
(handle_v_run): Ditto.  Call freeargv.
* server.h (freeargv): Declare.
* utils.c (freeargv): New fn.
gdb/gdbserver/ChangeLog
gdb/gdbserver/regcache.c
gdb/gdbserver/server.c
gdb/gdbserver/server.h
gdb/gdbserver/utils.c