]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin may not
authorChristopher Faylor <me+cygwin@cgf.cx>
Sat, 20 Oct 2001 05:13:17 +0000 (05:13 +0000)
committerChristopher Faylor <me+cygwin@cgf.cx>
Sat, 20 Oct 2001 05:13:17 +0000 (05:13 +0000)
be able to read them in certain situations.

gdb/ChangeLog
gdb/valprint.c
gdb/win32-nat.c

index 3d156bb3d9a84e4d3dd984458eeaf09a04dcc63d..b45ad64455548846d435c2ba6a6eeaaf18341c48 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-20  Christopher Faylor  <cgf@redhat.com>
+
+       * 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  <ac131313@redhat.com>
 
        * README: Mention problems with HP/UX.
index 49c6cb882c1d525034ae68546ca268a6088a5223..2da7974b4ed72962bd9b3fbf8f10c56e7e73f7c0 100644 (file)
@@ -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);
index 7f5310e1fd3c6c3cd2b59638bc611ff8bd3168df..fab5d03c6d11f761c61b5376ecf57a88585f3ef1 100644 (file)
@@ -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 = '/';