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
616415a6
Commit
616415a6
authored
Apr 27, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Store the debug info for the initial thread next to the PEB.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
789c1db1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
debug.c
dlls/ntdll/unix/debug.c
+0
-1
virtual.c
dlls/ntdll/unix/virtual.c
+3
-0
No files found.
dlls/ntdll/unix/debug.c
View file @
616415a6
...
...
@@ -294,6 +294,5 @@ void dbg_init(void)
{
setbuf
(
stdout
,
NULL
);
setbuf
(
stderr
,
NULL
);
ntdll_get_thread_data
()
->
debug_info
=
&
initial_info
;
init_done
=
TRUE
;
}
dlls/ntdll/unix/virtual.c
View file @
616415a6
...
...
@@ -2890,6 +2890,7 @@ static TEB *init_teb( void *ptr, PEB *peb )
*/
TEB
*
virtual_alloc_first_teb
(
void
)
{
struct
ntdll_thread_data
*
thread_data
;
TEB
*
teb
;
PEB
*
peb
;
void
*
ptr
;
...
...
@@ -2916,6 +2917,8 @@ TEB *virtual_alloc_first_teb(void)
peb
=
init_peb
(
(
char
*
)
teb_block
+
31
*
block_size
);
teb
=
init_teb
(
ptr
,
peb
);
*
(
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