From 83413c558cdca7744ef4dcdff82678a5ea3e31c0 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 20 Oct 2001 05:11:41 +0000 Subject: [PATCH] * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin may not be able to read them in certain situations. --- gdb/ChangeLog | 5 +++++ gdb/valprint.c | 1 + gdb/win32-nat.c | 2 -- gdb/windows-nat.c | 2 -- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c7e907265fe..745438fbebe 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 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Define. diff --git a/gdb/valprint.c b/gdb/valprint.c index 3feb91564d0..5af31ead82c 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -1149,6 +1149,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 = '/'; diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 7f5310e1fd3..fab5d03c6d1 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-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 = '/'; -- 2.30.2