|
From: <sv...@va...> - 2008-05-24 06:45:42
|
Author: bart
Date: 2008-05-24 07:45:28 +0100 (Sat, 24 May 2008)
New Revision: 8121
Log:
Removed two unused arguments from notify_tool_of_mmap().
Modified:
branches/CROSS_COMPILATION/coregrind/m_syswrap/syswrap-generic.c
Modified: branches/CROSS_COMPILATION/coregrind/m_syswrap/syswrap-generic.c
===================================================================
--- branches/CROSS_COMPILATION/coregrind/m_syswrap/syswrap-generic.c 2008-05-24 06:13:09 UTC (rev 8120)
+++ branches/CROSS_COMPILATION/coregrind/m_syswrap/syswrap-generic.c 2008-05-24 06:45:28 UTC (rev 8121)
@@ -65,8 +65,7 @@
void notify_aspacem_of_mmap(Addr a, SizeT len, UInt prot,
UInt flags, Int fd, Off64T offset);
static
-void notify_tool_of_mmap(Addr a, SizeT len, UInt prot,
- UInt flags, Int fd, Off64T offset);
+void notify_tool_of_mmap(Addr a, SizeT len, UInt prot, Off64T offset);
/* Returns True iff address range is something the client can
@@ -158,7 +157,7 @@
UInt flags, Int fd, Off64T offset )
{
notify_aspacem_of_mmap(a, len, prot, flags, fd, offset);
- notify_tool_of_mmap(a, len, prot, flags, fd, offset);
+ notify_tool_of_mmap(a, len, prot, offset);
}
static
@@ -176,12 +175,11 @@
if (d)
VG_(discard_translations)( (Addr64)a, (ULong)len,
- "ML_(notify_aspacem_and_tool_of_mmap)" );
+ "ML_(notify_aspacem_of_mmap)" );
}
static
-void notify_tool_of_mmap(Addr a, SizeT len, UInt prot,
- UInt flags, Int fd, Off64T offset)
+void notify_tool_of_mmap(Addr a, SizeT len, UInt prot, Off64T offset)
{
Bool rr, ww, xx;
@@ -1942,18 +1940,20 @@
/* Notify aspacem. */
notify_aspacem_of_mmap(
(Addr)sres.res, /* addr kernel actually assigned */
- arg2, arg3,
+ arg2, /* length */
+ arg3, /* prot */
arg4, /* the original flags value */
- arg5, arg6
+ arg5, /* fd */
+ arg6 /* offset */
);
/* Load symbols? */
VG_(di_notify_mmap)( (Addr)sres.res, False/*allow_SkFileV*/ );
/* Notify the tool. */
notify_tool_of_mmap(
(Addr)sres.res, /* addr kernel actually assigned */
- arg2, arg3,
- arg4, /* the original flags value */
- arg5, arg6
+ arg2, /* length */
+ arg3, /* prot */
+ arg6 /* offset */
);
}
|