From: Christopher Faylor Date: Sat, 20 Oct 2001 05:13:17 +0000 (+0000) Subject: * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin may not X-Git-Tag: gdb_5_1-2001-11-21-release~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da825dc05d43a2bc7cc590fb2ab60c72cc88dd7e;p=thirdparty%2Fbinutils-gdb.git * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin may not be able to read them in certain situations. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3d156bb3d9a..b45ad644555 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-10-20 Christopher Faylor + + * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin + may not be able to read them in certain situations. + 2001-10-18 Andrew Cagney * README: Mention problems with HP/UX. diff --git a/gdb/valprint.c b/gdb/valprint.c index 49c6cb882c1..2da7974b4ed 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -1148,6 +1148,7 @@ val_print_string (CORE_ADDR addr, int len, int width, struct ui_file *stream) found_nul = 0; old_chain = make_cleanup (null_cleanup, 0); + bufptr = NULL; if (len > 0) { buffer = (char *) xmalloc (len * width); diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c index 7f5310e1fd3..fab5d03c6d1 100644 --- a/gdb/win32-nat.c +++ b/gdb/win32-nat.c @@ -600,8 +600,6 @@ handle_load_dll (void *dummy ATTRIBUTE_UNUSED) if (!dll_name) return 1; - (void) strlwr (dll_name); - while ((p = strchr (dll_name, '\\'))) *p = '/';