aboutsummaryrefslogtreecommitdiff
path: root/gdb/win32-nat.c
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2000-11-28 17:27:38 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2000-11-28 17:27:38 +0000
commit66ed1d85be85c2ea39fe62b5af10517cd4408d79 (patch)
tree1decbad02bf120fc03db91318fae1ac6171cd919 /gdb/win32-nat.c
parentfcdc20a4d36ad5f493f38a2ed089516c19709a36 (diff)
downloadgdb-66ed1d85be85c2ea39fe62b5af10517cd4408d79.zip
gdb-66ed1d85be85c2ea39fe62b5af10517cd4408d79.tar.gz
gdb-66ed1d85be85c2ea39fe62b5af10517cd4408d79.tar.bz2
* win32-nat.c (dll_code_sections_add): strdup -> xstrdup.
Diffstat (limited to 'gdb/win32-nat.c')
-rw-r--r--gdb/win32-nat.c2
1 files changed, 1 insertions, 1 deletions
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;