From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id 4E453395A404; Thu, 2 Jun 2022 09:40:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E453395A404 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jon TURNEY To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Fix Cygwin build after 85b25bd9 X-Act-Checkin: binutils-gdb X-Git-Author: Jon Turney X-Git-Refname: refs/heads/master X-Git-Oldrev: 1f03fa9921802a727bb218da2df26e4ed14fc1c9 X-Git-Newrev: a115c6d62e9f367dcf319a349ce452ec6518b667 Message-Id: <20220602094046.4E453395A404@sourceware.org> Date: Thu, 2 Jun 2022 09:40:46 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2022 09:40:46 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da115c6d62e9f= 367dcf319a349ce452ec6518b667 commit a115c6d62e9f367dcf319a349ce452ec6518b667 Author: Jon Turney Date: Sat May 21 11:11:12 2022 +0100 Fix Cygwin build after 85b25bd9 =20 Fix Cygwin build after 85b25bd9 ("Simplify windows-nat.c solib handling= "). Diff: --- gdb/windows-nat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index ab0efe72d8f..b98848bbc70 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -654,8 +654,8 @@ static std::vector 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 =3D NULL; =20 - 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")); =20 if (abfd =3D=3D NULL) return so;