diff options
author | Doug Evans <dje@google.com> | 2009-01-19 00:16:46 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-01-19 00:16:46 +0000 |
commit | aef93bd75fcfdd562b7b7adc6ef66d8cbe13d99e (patch) | |
tree | b730067dd4ccff4b4c2b611d1458cad2c93bf521 /gdb/gdbserver/server.h | |
parent | a90b386908929431d254f92a0ecd8cc743b8be61 (diff) | |
download | gdb-aef93bd75fcfdd562b7b7adc6ef66d8cbe13d99e.zip gdb-aef93bd75fcfdd562b7b7adc6ef66d8cbe13d99e.tar.gz gdb-aef93bd75fcfdd562b7b7adc6ef66d8cbe13d99e.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/gdbserver/server.h')
-rw-r--r-- | gdb/gdbserver/server.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index 5b02dbe..6e4dfd8 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -276,6 +276,7 @@ const char *target_signal_to_name (enum target_signal); void *xmalloc (size_t) ATTR_MALLOC; void *xcalloc (size_t, size_t) ATTR_MALLOC; char *xstrdup (const char *) ATTR_MALLOC; +void freeargv (char **argv); void perror_with_name (const char *string); void error (const char *string,...) ATTR_NORETURN ATTR_FORMAT (printf, 1, 2); void fatal (const char *string,...) ATTR_NORETURN ATTR_FORMAT (printf, 1, 2); |