From 66ed1d85be85c2ea39fe62b5af10517cd4408d79 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 28 Nov 2000 17:27:38 +0000 Subject: [PATCH] * win32-nat.c (dll_code_sections_add): strdup -> xstrdup. --- gdb/ChangeLog | 4 ++++ gdb/win32-nat.c | 2 +- gdb/windows-nat.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9b527bbafc9..043a31d0e41 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Tue Nov 28 12:24:43 2000 Christopher Faylor + + * win32-nat.c (dll_code_sections_add): strdup -> xstrdup. + Mon Nov 27 11:45:52 2000 Andrew Cagney * remote.c (remote_write_bytes): Add default case to switch diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 62db43fb62d..ce78a6d1818 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -1540,7 +1540,7 @@ dll_code_sections_add (const char *dll_name, int base_addr, struct target_ops *t char *name; if (dll_name == NULL || target == NULL) return 0; - name = strdup (dll_name); + name = xstrdup (dll_name); dll_bfd = bfd_openr (name, "pei-i386"); if (dll_bfd == NULL) return 0; diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 62db43fb62d..ce78a6d1818 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1540,7 +1540,7 @@ dll_code_sections_add (const char *dll_name, int base_addr, struct target_ops *t char *name; if (dll_name == NULL || target == NULL) return 0; - name = strdup (dll_name); + name = xstrdup (dll_name); dll_bfd = bfd_openr (name, "pei-i386"); if (dll_bfd == NULL) return 0; -- 2.30.2