mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* 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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user