|
From: <sv...@va...> - 2008-01-08 16:48:30
|
Author: tom
Date: 2008-01-08 16:48:30 +0000 (Tue, 08 Jan 2008)
New Revision: 7325
Log:
Made the argument to VG_(am_get_filename) const as it doesn't need
to be modified and the routine to find the segment for an address now
returns a const pointer.
Modified:
trunk/coregrind/m_aspacemgr/aspacemgr-linux.c
trunk/include/pub_tool_aspacemgr.h
Modified: trunk/coregrind/m_aspacemgr/aspacemgr-linux.c
===================================================================
--- trunk/coregrind/m_aspacemgr/aspacemgr-linux.c 2008-01-08 16:31:25 UTC (rev 7324)
+++ trunk/coregrind/m_aspacemgr/aspacemgr-linux.c 2008-01-08 16:48:30 UTC (rev 7325)
@@ -603,7 +603,7 @@
has one. The returned name's storage cannot be assumed to be
persistent, so the caller should immediately copy the name
elsewhere. */
-HChar* VG_(am_get_filename)( NSegment* seg )
+HChar* VG_(am_get_filename)( NSegment const * seg )
{
Int i;
aspacem_assert(seg);
Modified: trunk/include/pub_tool_aspacemgr.h
===================================================================
--- trunk/include/pub_tool_aspacemgr.h 2008-01-08 16:31:25 UTC (rev 7324)
+++ trunk/include/pub_tool_aspacemgr.h 2008-01-08 16:48:30 UTC (rev 7325)
@@ -137,7 +137,7 @@
extern NSegment const * VG_(am_find_nsegment) ( Addr a );
// See pub_core_aspacemgr.h for description.
-extern HChar* VG_(am_get_filename)( NSegment* );
+extern HChar* VG_(am_get_filename)( NSegment const * );
// See pub_core_aspacemgr.h for description.
extern Bool VG_(am_is_valid_for_client) ( Addr start, SizeT len,
|