aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2002-02-08 23:12:16 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2002-02-08 23:12:16 +0000
commitb69571f510438d015f39c060926f99a7158c10f0 (patch)
tree041078c899e1504a0084b1e3a1a110aba05078b4 /gdb
parentdc9ed0e9f1df5e7c6aabec2fff86da98cb4cc7d0 (diff)
downloadgdb-b69571f510438d015f39c060926f99a7158c10f0.zip
gdb-b69571f510438d015f39c060926f99a7158c10f0.tar.gz
gdb-b69571f510438d015f39c060926f99a7158c10f0.tar.bz2
* win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf changes.
(_initialize_check_for_gdb_ini): Ditto.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/win32-nat.c6
-rw-r--r--gdb/windows-nat.c6
3 files changed, 12 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4786375..311e0fd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+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.
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c
index fa0d0b4..dcc3d33 100644
--- a/gdb/win32-nat.c
+++ b/gdb/win32-nat.c
@@ -1763,9 +1763,9 @@ cygwin_pid_to_str (ptid_t ptid)
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;
}
@@ -2009,7 +2009,7 @@ _initialize_check_for_gdb_ini (void)
{
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);
}
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index fa0d0b4..dcc3d33 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -1763,9 +1763,9 @@ cygwin_pid_to_str (ptid_t ptid)
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;
}
@@ -2009,7 +2009,7 @@ _initialize_check_for_gdb_ini (void)
{
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);
}