Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d2682f57
Commit
d2682f57
authored
Mar 10, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: The main executable is now always named "wine".
parent
f4a19c84
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
18 deletions
+8
-18
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+1
-2
elf_module.c
dlls/dbghelp/elf_module.c
+2
-5
module.c
dlls/dbghelp/module.c
+5
-11
No files found.
dlls/dbghelp/dbghelp_private.h
View file @
d2682f57
...
...
@@ -431,8 +431,7 @@ extern DWORD WINAPI addr_to_linear(HANDLE hProcess, HANDLE hThread, ADDRESS* add
/* module.c */
extern
const
WCHAR
S_ElfW
[];
extern
const
WCHAR
S_WineLoaderW
[];
extern
const
WCHAR
S_WinePThreadW
[];
extern
const
WCHAR
S_WineKThreadW
[];
extern
const
WCHAR
S_WineW
[];
extern
const
WCHAR
S_SlashW
[];
extern
struct
module
*
...
...
dlls/dbghelp/elf_module.c
View file @
d2682f57
...
...
@@ -1492,9 +1492,7 @@ static BOOL elf_search_loader(struct process* pcs, struct elf_info* elf_info)
const
char
*
ptr
;
/* All binaries are loaded with WINELOADER (if run from tree) or by the
* main executable (either wine-kthread or wine-pthread)
* FIXME: the heuristic used to know whether we need to load wine-pthread
* or wine-kthread is not 100% safe
* main executable
*/
if
((
ptr
=
getenv
(
"WINELOADER"
)))
{
...
...
@@ -1504,8 +1502,7 @@ static BOOL elf_search_loader(struct process* pcs, struct elf_info* elf_info)
}
else
{
ret
=
elf_search_and_load_file
(
pcs
,
S_WineKThreadW
,
0
,
elf_info
)
||
elf_search_and_load_file
(
pcs
,
S_WinePThreadW
,
0
,
elf_info
);
ret
=
elf_search_and_load_file
(
pcs
,
S_WineW
,
0
,
elf_info
);
}
return
ret
;
}
...
...
dlls/dbghelp/module.c
View file @
d2682f57
...
...
@@ -37,8 +37,7 @@ const WCHAR S_WineLoaderW[] = {'<','w','i','n','e','-','l','o','a','d','
static
const
WCHAR
S_DotSoW
[]
=
{
'.'
,
's'
,
'o'
,
'\0'
};
static
const
WCHAR
S_DotPdbW
[]
=
{
'.'
,
'p'
,
'd'
,
'b'
,
'\0'
};
static
const
WCHAR
S_DotDbgW
[]
=
{
'.'
,
'd'
,
'b'
,
'g'
,
'\0'
};
const
WCHAR
S_WinePThreadW
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
'-'
,
'p'
,
't'
,
'h'
,
'r'
,
'e'
,
'a'
,
'd'
,
'\0'
};
const
WCHAR
S_WineKThreadW
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
'-'
,
'k'
,
't'
,
'h'
,
'r'
,
'e'
,
'a'
,
'd'
,
'\0'
};
const
WCHAR
S_WineW
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
0
};
const
WCHAR
S_SlashW
[]
=
{
'/'
,
'\0'
};
static
const
WCHAR
S_AcmW
[]
=
{
'.'
,
'a'
,
'c'
,
'm'
,
'\0'
};
...
...
@@ -87,9 +86,7 @@ static void module_fill_module(const WCHAR* in, WCHAR* out, size_t size)
out
[
len
]
=
'\0'
;
if
(
len
>
4
&&
(
l
=
match_ext
(
out
,
len
)))
out
[
len
-
l
]
=
'\0'
;
else
if
(
len
>
12
&&
(
!
strcmpiW
(
out
+
len
-
12
,
S_WinePThreadW
)
||
!
strcmpiW
(
out
+
len
-
12
,
S_WineKThreadW
)))
else
if
(
len
>
4
&&
!
strcmpiW
(
out
+
len
-
4
,
S_WineW
))
lstrcpynW
(
out
,
S_WineLoaderW
,
size
);
else
{
...
...
@@ -428,13 +425,10 @@ enum module_type module_get_type_by_name(const WCHAR* name)
if
(
len
>
4
&&
!
strncmpiW
(
name
+
len
-
4
,
S_DotDbgW
,
4
))
return
DMT_DBG
;
/* wine-[kp]thread is also an ELF module */
if
(((
len
>
12
&&
name
[
len
-
13
]
==
'/'
)
||
len
==
12
)
&&
(
!
strncmpiW
(
name
+
len
-
12
,
S_WinePThreadW
,
12
)
||
!
strncmpiW
(
name
+
len
-
12
,
S_WineKThreadW
,
12
)))
{
/* wine is also an ELF module */
if
(((
len
>
4
&&
name
[
len
-
5
]
==
'/'
)
||
len
==
4
)
&&
!
strcmpiW
(
name
+
len
-
4
,
S_WineW
))
return
DMT_ELF
;
}
return
DMT_PE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment