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
d389da09
Commit
d389da09
authored
May 24, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Store debug options in the PEB memory block.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4e8fcc41
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
debug.c
dlls/ntdll/unix/debug.c
+11
-0
virtual.c
dlls/ntdll/unix/virtual.c
+0
-3
No files found.
dlls/ntdll/unix/debug.c
View file @
d389da09
...
...
@@ -292,7 +292,18 @@ int __cdecl __wine_dbg_header( enum __wine_debug_class cls, struct __wine_debug_
*/
void
dbg_init
(
void
)
{
struct
__wine_debug_channel
*
options
,
default_option
=
{
default_flags
};
setbuf
(
stdout
,
NULL
);
setbuf
(
stderr
,
NULL
);
if
(
nb_debug_options
==
-
1
)
init_options
();
options
=
(
struct
__wine_debug_channel
*
)((
char
*
)
NtCurrentTeb
()
->
Peb
+
(
is_win64
?
2
:
1
)
*
page_size
);
memcpy
(
options
,
debug_options
,
nb_debug_options
*
sizeof
(
*
options
)
);
free
(
debug_options
);
debug_options
=
options
;
options
[
nb_debug_options
]
=
default_option
;
ntdll_get_thread_data
()
->
debug_info
=
(
struct
debug_info
*
)(
options
+
nb_debug_options
+
1
);
init_done
=
TRUE
;
}
dlls/ntdll/unix/virtual.c
View file @
d389da09
...
...
@@ -2894,7 +2894,6 @@ static TEB *init_teb( void *ptr, PEB *peb, BOOL is_wow )
*/
TEB
*
virtual_alloc_first_teb
(
void
)
{
struct
ntdll_thread_data
*
thread_data
;
TEB
*
teb
;
PEB
*
peb
;
void
*
ptr
;
...
...
@@ -2921,8 +2920,6 @@ TEB *virtual_alloc_first_teb(void)
peb
=
init_peb
(
(
char
*
)
teb_block
+
31
*
block_size
);
teb
=
init_teb
(
ptr
,
peb
,
FALSE
);
*
(
ULONG_PTR
*
)
&
peb
->
CloudFileFlags
=
get_image_address
();
thread_data
=
(
struct
ntdll_thread_data
*
)
&
teb
->
GdiTebBatch
;
thread_data
->
debug_info
=
(
struct
debug_info
*
)((
char
*
)
teb_block
+
31
*
block_size
+
2
*
page_size
);
return
teb
;
}
...
...
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