(_initialize_check_for_gdb_ini): Ditto.
+2002-02-08 Christopher Faylor <cgf@redhat.com>
+
+ * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
+ changes.
+ (_initialize_check_for_gdb_ini): Ditto.
+
2002-02-08 Martin M. Hunt <hunt@redhat.com>
* win32-nat.c (cygwin_pid_to_str): Fix typo.
int pid = PIDGET (ptid);
if ((DWORD) pid == current_event.dwProcessId)
- xasprintf (buf, "process %d", pid);
+ sprintf (buf, "process %d", pid);
else
- xasprintf (buf, "thread %ld.0x%x", current_event.dwProcessId, pid);
+ sprintf (buf, "thread %ld.0x%x", current_event.dwProcessId, pid);
return buf;
}
{
int len = strlen (oldini);
char *newini = alloca (len + 1);
- xasprintf (newini, "%.*s.gdbinit",
+ sprintf (newini, "%.*s.gdbinit",
(int) (len - (sizeof ("gdb.ini") - 1)), oldini);
warning ("obsolete '%s' found. Rename to '%s'.", oldini, newini);
}
int pid = PIDGET (ptid);
if ((DWORD) pid == current_event.dwProcessId)
- xasprintf (buf, "process %d", pid);
+ sprintf (buf, "process %d", pid);
else
- xasprintf (buf, "thread %ld.0x%x", current_event.dwProcessId, pid);
+ sprintf (buf, "thread %ld.0x%x", current_event.dwProcessId, pid);
return buf;
}
{
int len = strlen (oldini);
char *newini = alloca (len + 1);
- xasprintf (newini, "%.*s.gdbinit",
+ sprintf (newini, "%.*s.gdbinit",
(int) (len - (sizeof ("gdb.ini") - 1)), oldini);
warning ("obsolete '%s' found. Rename to '%s'.", oldini, newini);
}