mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 01:51:29 +00:00
Wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5574
This commit is contained in:
parent
332b20ecef
commit
e05481ea7a
@ -17,10 +17,10 @@ void actual ( void )
|
||||
as if its soname was "NONE". */
|
||||
void I_WRAP_SONAME_FNNAME_ZU(NONE,actual) ( void )
|
||||
{
|
||||
OrigFn orig;
|
||||
VALGRIND_GET_ORIG_FN(orig);
|
||||
OrigFn fn;
|
||||
VALGRIND_GET_ORIG_FN(fn);
|
||||
printf("wrapper-pre\n");
|
||||
CALL_FN_v_v(orig);
|
||||
CALL_FN_v_v(fn);
|
||||
printf("wrapper-post\n");
|
||||
}
|
||||
|
||||
|
||||
@ -16,10 +16,10 @@ int fact ( int n )
|
||||
int I_WRAP_SONAME_FNNAME_ZU(NONE,fact) ( int n )
|
||||
{
|
||||
int r;
|
||||
OrigFn orig;
|
||||
VALGRIND_GET_ORIG_FN(orig);
|
||||
OrigFn fn;
|
||||
VALGRIND_GET_ORIG_FN(fn);
|
||||
printf("in wrapper1-pre: fact(%d)\n", n);
|
||||
CALL_FN_W_W(r, orig, n);
|
||||
CALL_FN_W_W(r, fn, n);
|
||||
printf("in wrapper1-post: fact(%d) = %d\n", n, r);
|
||||
return r;
|
||||
}
|
||||
|
||||
@ -13,10 +13,10 @@ extern void actual ( void );
|
||||
"wrap7so.so". */
|
||||
void I_WRAP_SONAME_FNNAME_ZU(wrap7soZdso,actual) ( void )
|
||||
{
|
||||
OrigFn orig;
|
||||
VALGRIND_GET_ORIG_FN(orig);
|
||||
OrigFn fn;
|
||||
VALGRIND_GET_ORIG_FN(fn);
|
||||
printf("wrapper-pre\n");
|
||||
CALL_FN_v_v(orig);
|
||||
CALL_FN_v_v(fn);
|
||||
printf("wrapper-post\n");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user