aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2022-05-21 11:11:12 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2022-06-02 10:39:47 +0100
commita115c6d62e9f367dcf319a349ce452ec6518b667 (patch)
tree9d7498148359cd82e0993865bdb8d7f89b4f2ffa /gdb/windows-nat.c
parent1f03fa9921802a727bb218da2df26e4ed14fc1c9 (diff)
downloadfsf-binutils-gdb-a115c6d62e9f367dcf319a349ce452ec6518b667.zip
fsf-binutils-gdb-a115c6d62e9f367dcf319a349ce452ec6518b667.tar.gz
fsf-binutils-gdb-a115c6d62e9f367dcf319a349ce452ec6518b667.tar.bz2
Fix Cygwin build after 85b25bd9
Fix Cygwin build after 85b25bd9 ("Simplify windows-nat.c solib handling").
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r--gdb/windows-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index ab0efe7..b98848b 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -654,8 +654,8 @@ static std::vector<windows_solib> solibs;
static windows_solib *
windows_make_so (const char *name, LPVOID load_addr)
{
- char *p;
#ifndef __CYGWIN__
+ char *p;
char buf[__PMAX];
char cwd[__PMAX];
WIN32_FIND_DATA w32_fd;
@@ -738,7 +738,7 @@ windows_make_so (const char *name, LPVOID load_addr)
{
asection *text = NULL;
- gdb_bfd_ref_ptr abfd (gdb_bfd_open (so->name, "pei-i386"));
+ gdb_bfd_ref_ptr abfd (gdb_bfd_open (so->name.c_str(), "pei-i386"));
if (abfd == NULL)
return so;