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
14c452fe
Commit
14c452fe
authored
Jan 06, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Replaced get_cpu_context by RtlCaptureContext. Implemented it for x86_64.
parent
d1e8a85b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
39 deletions
+14
-39
exception.c
dlls/ntdll/exception.c
+0
-19
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+0
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+3
-5
signal_powerpc.c
dlls/ntdll/signal_powerpc.c
+3
-4
signal_sparc.c
dlls/ntdll/signal_sparc.c
+3
-4
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+4
-5
thread.c
dlls/ntdll/thread.c
+1
-1
No files found.
dlls/ntdll/exception.c
View file @
14c452fe
...
...
@@ -400,25 +400,6 @@ NTSTATUS WINAPI NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL
return
status
;
}
/***********************************************************************
* RtlCaptureContext (NTDLL.@)
*/
void
WINAPI
__regs_RtlCaptureContext
(
CONTEXT
*
context_out
,
CONTEXT
*
context_in
)
{
*
context_out
=
*
context_in
;
}
/**********************************************************************/
#ifdef DEFINE_REGS_ENTRYPOINT
DEFINE_REGS_ENTRYPOINT
(
RtlCaptureContext
,
1
)
#else
void
WINAPI
RtlCaptureContext
(
CONTEXT
*
context_out
)
{
memset
(
context_out
,
0
,
sizeof
(
*
context_out
)
);
}
#endif
/***********************************************************************
* RtlRaiseException (NTDLL.@)
...
...
dlls/ntdll/ntdll_misc.h
View file @
14c452fe
...
...
@@ -41,7 +41,6 @@ struct drive_info
/* exceptions */
extern
void
wait_suspend
(
CONTEXT
*
context
);
extern
void
WINAPI
__regs_RtlRaiseException
(
PEXCEPTION_RECORD
,
PCONTEXT
);
extern
void
get_cpu_context
(
CONTEXT
*
context
);
extern
void
set_cpu_context
(
const
CONTEXT
*
context
);
/* debug helper */
...
...
dlls/ntdll/signal_i386.c
View file @
14c452fe
...
...
@@ -886,17 +886,15 @@ static inline void restore_context( const CONTEXT *context, SIGCONTEXT *sigconte
/***********************************************************************
* get_cpu_context
*
* Register function to get the context of the current thread.
* RtlCaptureContext (NTDLL.@)
*/
void
WINAPI
__regs_
get_cpu_c
ontext
(
CONTEXT
*
context
,
CONTEXT
*
regs
)
void
WINAPI
__regs_
RtlCaptureC
ontext
(
CONTEXT
*
context
,
CONTEXT
*
regs
)
{
*
context
=
*
regs
;
if
(
fpux_support
)
save_fpux
(
context
);
else
save_fpu
(
context
);
}
DEFINE_REGS_ENTRYPOINT
(
get_cpu_c
ontext
,
1
)
DEFINE_REGS_ENTRYPOINT
(
RtlCaptureC
ontext
,
1
)
/***********************************************************************
...
...
dlls/ntdll/signal_powerpc.c
View file @
14c452fe
...
...
@@ -268,13 +268,12 @@ static inline void restore_fpu( CONTEXT *context, const SIGCONTEXT *sigcontext )
/***********************************************************************
* get_cpu_context
*
* Get the context of the current thread.
* RtlCaptureContext (NTDLL.@)
*/
void
get_cpu_c
ontext
(
CONTEXT
*
context
)
void
WINAPI
RtlCaptureC
ontext
(
CONTEXT
*
context
)
{
FIXME
(
"not implemented
\n
"
);
memset
(
context
,
0
,
sizeof
(
*
context
)
);
}
...
...
dlls/ntdll/signal_sparc.c
View file @
14c452fe
...
...
@@ -149,13 +149,12 @@ static void restore_fpu( CONTEXT *context, ucontext_t *ucontext )
/***********************************************************************
* get_cpu_context
*
* Get the context of the current thread.
* RtlCaptureContext (NTDLL.@)
*/
void
get_cpu_c
ontext
(
CONTEXT
*
context
)
void
WINAPI
RtlCaptureC
ontext
(
CONTEXT
*
context
)
{
FIXME
(
"not implemented
\n
"
);
memset
(
context
,
0
,
sizeof
(
*
context
)
);
}
...
...
dlls/ntdll/signal_x86_64.c
View file @
14c452fe
...
...
@@ -199,14 +199,13 @@ static void restore_context( const CONTEXT *context, SIGCONTEXT *sigcontext )
/***********************************************************************
* get_cpu_context
*
* Get the context of the current thread.
* RtlCaptureContext (NTDLL.@)
*/
void
get_cpu_context
(
CONTEXT
*
context
)
void
WINAPI
__regs_RtlCaptureContext
(
CONTEXT
*
context
,
CONTEXT
*
regs
)
{
FIXME
(
"not implemented
\n
"
)
;
*
context
=
*
regs
;
}
DEFINE_REGS_ENTRYPOINT
(
RtlCaptureContext
,
1
)
/***********************************************************************
...
...
dlls/ntdll/thread.c
View file @
14c452fe
...
...
@@ -1134,7 +1134,7 @@ NTSTATUS WINAPI NtGetContextThread( HANDLE handle, CONTEXT *context )
{
if
(
needed_flags
)
{
get_cpu_c
ontext
(
&
ctx
);
RtlCaptureC
ontext
(
&
ctx
);
copy_context
(
context
,
&
ctx
,
ctx
.
ContextFlags
&
needed_flags
);
}
#ifdef __i386__
...
...
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