|
From: <sv...@va...> - 2005-05-14 17:18:14
|
Author: njn
Date: 2005-05-14 18:18:12 +0100 (Sat, 14 May 2005)
New Revision: 3708
Modified:
trunk/coregrind/core.h
trunk/coregrind/vg_redir.c
Log:
VG_(resolve_redir)() can now be made private to vg_redir.c.
Modified: trunk/coregrind/core.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/core.h 2005-05-14 17:11:06 UTC (rev 3707)
+++ trunk/coregrind/core.h 2005-05-14 17:18:12 UTC (rev 3708)
@@ -671,7 +671,6 @@
Addr to_addr);
extern void VG_(add_redirect_addr_to_addr)(Addr from_addr, Addr to_addr)=
;
extern void VG_(resolve_seg_redirs)(SegInfo *si);
-extern Bool VG_(resolve_redir)(CodeRedirect *redir, const SegInfo *si);
=20
/* Wrapping machinery */
enum return_type {
Modified: trunk/coregrind/vg_redir.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/vg_redir.c 2005-05-14 17:11:06 UTC (rev 3707)
+++ trunk/coregrind/vg_redir.c 2005-05-14 17:18:12 UTC (rev 3708)
@@ -208,7 +208,7 @@
=20
/* Resolve a redir using si if possible, and add it to the resolved
list */
-Bool VG_(resolve_redir)(CodeRedirect *redir, const SegInfo *si)
+static Bool resolve_redir(CodeRedirect *redir, const SegInfo *si)
{
Bool resolved;
=20
@@ -273,7 +273,7 @@
si !=3D NULL;=20
si =3D VG_(next_seginfo)(si))
{
- if (VG_(resolve_redir)(redir, si))
+ if (resolve_redir(redir, si))
return True;
}
return False;
@@ -297,7 +297,7 @@
for(redir =3D unresolved_redir; redir !=3D NULL; redir =3D next) {
next =3D redir->next;
=20
- if (VG_(resolve_redir)(redir, si)) {
+ if (resolve_redir(redir, si)) {
*prevp =3D next;
redir->next =3D NULL;
} else
|