projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f03fa9
)
Fix Cygwin build after 85b25bd9
author
Jon Turney
<jon.turney@dronecode.org.uk>
Sat, 21 May 2022 10:11:12 +0000
(11:11 +0100)
committer
Jon Turney
<jon.turney@dronecode.org.uk>
Thu, 2 Jun 2022 09:39:47 +0000
(10:39 +0100)
Fix Cygwin build after
85b25bd9
("Simplify windows-nat.c solib handling").
gdb/windows-nat.c
patch
|
blob
|
history
diff --git
a/gdb/windows-nat.c
b/gdb/windows-nat.c
index ab0efe72d8f85999bf93c80ce7ab5a893167add8..b98848bbc70a97b37994114e84096eff0f7b0065 100644
(file)
--- 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;