summaryrefslogtreecommitdiff
path: root/gdb/wince.c
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2001-03-05 16:59:54 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2001-03-05 16:59:54 +0000
commit9ff2efe549566837badb473cd6ea4cdb0122f9ae (patch)
tree2e31fe7e698a2e1a1a5e3cd462ebf917435fe854 /gdb/wince.c
parent58841d58e552800c90ceb77f6c5a3a62091e23bd (diff)
downloadbinutils-gdb-9ff2efe549566837badb473cd6ea4cdb0122f9ae.tar.gz
* wince.c: Change realloc to xrealloc throughout.
(handle_load_dll): Use void * rather than PTR.
Diffstat (limited to 'gdb/wince.c')
-rw-r--r--gdb/wince.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/wince.c b/gdb/wince.c
index 3b4f67cb3ee..0442c96104a 100644
--- a/gdb/wince.c
+++ b/gdb/wince.c
@@ -602,10 +602,10 @@ towide (const char *s, gdb_wince_len * out_len)
n = 0; /* wrap */
/* Allocate space for the converted string, reusing any previously allocated
- space, if applicable. Note that if outs[n] is NULL, realloc will act as
+ space, if applicable. Note that if outs[n] is NULL, xrealloc will act as
a malloc (under cygwin, at least).
*/
- outs[n] = (LPWSTR) realloc (outs[n], *out_len);
+ outs[n] = (LPWSTR) xrealloc (outs[n], *out_len);
memset (outs[n], 0, *out_len);
(void) MultiByteToWideChar (CP_ACP, 0, s, -1, outs[n], *out_len);
return outs[n];
@@ -1156,7 +1156,7 @@ child_store_inferior_registers (int r)
of error; store status through argument pointer OURSTATUS. */
static int
-handle_load_dll (PTR dummy)
+handle_load_dll (void *dummy)
{
LOAD_DLL_DEBUG_INFO *event = &current_event.u.LoadDll;
char dll_buf[MAX_PATH + 1];
@@ -1573,7 +1573,7 @@ upload_to_device (const char *to, const char *from)
error ("no filename found to upload - %s.", in_to);
len = strlen (dir) + strlen (to) + 2;
- remotefile = (char *) realloc (remotefile, len);
+ remotefile = (char *) xrealloc (remotefile, len);
strcpy (remotefile, dir);
strcat (remotefile, "\\");
strcat (remotefile, to);
@@ -1924,7 +1924,7 @@ init_child_ops (void)
#define replace_upload(what) \
upload_when = what; \
- remote_upload = realloc (remote_upload, strlen (upload_options[upload_when].name) + 1); \
+ remote_upload = xrealloc (remote_upload, strlen (upload_options[upload_when].name) + 1); \
strcpy (remote_upload, upload_options[upload_when].name);
static void