diff options
author | Christopher Faylor <me+cygwin@cgf.cx> | 2000-11-28 17:27:38 +0000 |
---|---|---|
committer | Christopher Faylor <me+cygwin@cgf.cx> | 2000-11-28 17:27:38 +0000 |
commit | 66ed1d85be85c2ea39fe62b5af10517cd4408d79 (patch) | |
tree | 1decbad02bf120fc03db91318fae1ac6171cd919 | |
parent | fcdc20a4d36ad5f493f38a2ed089516c19709a36 (diff) | |
download | gdb-66ed1d85be85c2ea39fe62b5af10517cd4408d79.zip gdb-66ed1d85be85c2ea39fe62b5af10517cd4408d79.tar.gz gdb-66ed1d85be85c2ea39fe62b5af10517cd4408d79.tar.bz2 |
* win32-nat.c (dll_code_sections_add): strdup -> xstrdup.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/win32-nat.c | 2 | ||||
-rw-r--r-- | gdb/windows-nat.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9b527bb..043a31d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Tue Nov 28 12:24:43 2000 Christopher Faylor <cgf@cygnus.com> + + * win32-nat.c (dll_code_sections_add): strdup -> xstrdup. + Mon Nov 27 11:45:52 2000 Andrew Cagney <cagney@b1.cygnus.com> * remote.c (remote_write_bytes): Add default case to switch diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 62db43f..ce78a6d 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 62db43f..ce78a6d 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; |