Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9a07d210
Commit
9a07d210
authored
Jul 27, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Add a platform-specific entry point to initialize registers of a new thread.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
56998d56
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
0 deletions
+27
-0
mach.c
server/mach.c
+5
-0
procfs.c
server/procfs.c
+5
-0
ptrace.c
server/ptrace.c
+15
-0
thread.c
server/thread.c
+1
-0
thread.h
server/thread.h
+1
-0
No files found.
server/mach.c
View file @
9a07d210
...
...
@@ -148,6 +148,11 @@ void finish_process_tracing( struct process *process )
}
}
/* initialize registers in new thread if necessary */
void
init_thread_context
(
struct
thread
*
thread
)
{
}
/* retrieve the thread x86 registers */
void
get_thread_context
(
struct
thread
*
thread
,
context_t
*
context
,
unsigned
int
flags
)
{
...
...
server/procfs.c
View file @
9a07d210
...
...
@@ -202,6 +202,11 @@ error:
close
(
fd
);
}
/* initialize registers in new thread if necessary */
void
init_thread_context
(
struct
thread
*
thread
)
{
}
/* retrieve the thread registers */
void
get_thread_context
(
struct
thread
*
thread
,
context_t
*
context
,
unsigned
int
flags
)
{
...
...
server/ptrace.c
View file @
9a07d210
...
...
@@ -542,6 +542,11 @@ void get_selector_entry( struct thread *thread, int entry, unsigned int *base,
/* debug register offset in struct user */
#define DR_OFFSET(dr) ((((struct user *)0)->u_debugreg) + (dr))
/* initialize registers in new thread if necessary */
void
init_thread_context
(
struct
thread
*
thread
)
{
}
/* retrieve the thread x86 registers */
void
get_thread_context
(
struct
thread
*
thread
,
context_t
*
context
,
unsigned
int
flags
)
{
...
...
@@ -652,6 +657,11 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign
#include <machine/reg.h>
/* initialize registers in new thread if necessary */
void
init_thread_context
(
struct
thread
*
thread
)
{
}
/* retrieve the thread x86 registers */
void
get_thread_context
(
struct
thread
*
thread
,
context_t
*
context
,
unsigned
int
flags
)
{
...
...
@@ -726,6 +736,11 @@ void set_thread_context( struct thread *thread, const context_t *context, unsign
#else
/* linux || __FreeBSD__ */
/* initialize registers in new thread if necessary */
void
init_thread_context
(
struct
thread
*
thread
)
{
}
/* retrieve the thread x86 registers */
void
get_thread_context
(
struct
thread
*
thread
,
context_t
*
context
,
unsigned
int
flags
)
{
...
...
server/thread.c
View file @
9a07d210
...
...
@@ -1317,6 +1317,7 @@ DECL_HANDLER(init_thread)
}
if
(
process
->
unix_pid
!=
current
->
unix_pid
)
process
->
unix_pid
=
-
1
;
/* can happen with linuxthreads */
init_thread_context
(
current
);
stop_thread_if_suspended
(
current
);
generate_debug_event
(
current
,
CREATE_THREAD_DEBUG_EVENT
,
&
req
->
entry
);
set_thread_affinity
(
current
,
current
->
affinity
);
...
...
server/thread.h
View file @
9a07d210
...
...
@@ -131,6 +131,7 @@ extern int is_cpu_supported( enum cpu_type cpu );
/* ptrace functions */
extern
void
sigchld_callback
(
void
);
extern
void
init_thread_context
(
struct
thread
*
thread
);
extern
void
get_thread_context
(
struct
thread
*
thread
,
context_t
*
context
,
unsigned
int
flags
);
extern
void
set_thread_context
(
struct
thread
*
thread
,
const
context_t
*
context
,
unsigned
int
flags
);
extern
int
send_thread_signal
(
struct
thread
*
thread
,
int
sig
);
...
...
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