mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
Fix Cygwin build after 85b25bd9
Fix Cygwin build after 85b25bd9 ("Simplify windows-nat.c solib handling").
This commit is contained in:
@ -654,8 +654,8 @@ static std::vector<windows_solib> solibs;
|
|||||||
static windows_solib *
|
static windows_solib *
|
||||||
windows_make_so (const char *name, LPVOID load_addr)
|
windows_make_so (const char *name, LPVOID load_addr)
|
||||||
{
|
{
|
||||||
char *p;
|
|
||||||
#ifndef __CYGWIN__
|
#ifndef __CYGWIN__
|
||||||
|
char *p;
|
||||||
char buf[__PMAX];
|
char buf[__PMAX];
|
||||||
char cwd[__PMAX];
|
char cwd[__PMAX];
|
||||||
WIN32_FIND_DATA w32_fd;
|
WIN32_FIND_DATA w32_fd;
|
||||||
@ -738,7 +738,7 @@ windows_make_so (const char *name, LPVOID load_addr)
|
|||||||
{
|
{
|
||||||
asection *text = NULL;
|
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)
|
if (abfd == NULL)
|
||||||
return so;
|
return so;
|
||||||
|
Reference in New Issue
Block a user