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
c67bc226
Commit
c67bc226
authored
Feb 14, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A couple of new valgrind instrumentations for better support.
parent
63e8d34a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
process.c
dlls/kernel/process.c
+9
-0
signal_i386.c
dlls/ntdll/signal_i386.c
+7
-0
No files found.
dlls/kernel/process.c
View file @
c67bc226
...
...
@@ -46,6 +46,10 @@
#include "wine/unicode.h"
#include "wine/debug.h"
#ifdef HAVE_VALGRIND_MEMCHECK_H
#include <valgrind/memcheck.h>
#endif
WINE_DEFAULT_DEBUG_CHANNEL
(
process
);
WINE_DECLARE_DEBUG_CHANNEL
(
file
);
WINE_DECLARE_DEBUG_CHANNEL
(
relay
);
...
...
@@ -932,6 +936,11 @@ static void *init_stack(void)
NtCurrentTeb
()
->
Tib
.
StackBase
=
(
char
*
)
base
+
stack_size
;
NtCurrentTeb
()
->
Tib
.
StackLimit
=
(
char
*
)
base
+
page_size
;
#ifdef VALGRIND_STACK_REGISTER
/* no need to de-register the stack as it's the one of the main thread */
VALGRIND_STACK_REGISTER
(
NtCurrentTeb
()
->
Tib
.
StackLimit
,
NtCurrentTeb
()
->
Tib
.
StackBase
);
#endif
/* setup guard page */
VirtualProtect
(
base
,
page_size
,
PAGE_NOACCESS
,
NULL
);
return
NtCurrentTeb
()
->
Tib
.
StackBase
;
...
...
dlls/ntdll/signal_i386.c
View file @
c67bc226
...
...
@@ -56,6 +56,10 @@
#include "wine/library.h"
#include "ntdll_misc.h"
#ifdef HAVE_VALGRIND_MEMCHECK_H
#include <valgrind/memcheck.h>
#endif
/***********************************************************************
* signal context platform-specific definitions
*/
...
...
@@ -983,6 +987,9 @@ static EXCEPTION_RECORD *setup_exception( SIGCONTEXT *sigcontext, raise_func fun
}
stack
--
;
/* push the stack_layout structure */
#ifdef HAVE_VALGRIND_MEMCHECK_H
VALGRIND_MAKE_WRITABLE
(
stack
,
sizeof
(
*
stack
));
#endif
stack
->
ret_addr
=
(
void
*
)
0xdeadbabe
;
/* raise_func must not return */
stack
->
rec_ptr
=
&
stack
->
rec
;
stack
->
context_ptr
=
&
stack
->
context
;
...
...
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