]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Made the argument to VG_(am_get_filename) const as it doesn't need
authorTom Hughes <tom@compton.nu>
Tue, 8 Jan 2008 16:48:30 +0000 (16:48 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 8 Jan 2008 16:48:30 +0000 (16:48 +0000)
to be modified and the routine to find the segment for an address now
returns a const pointer.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7325

coregrind/m_aspacemgr/aspacemgr-linux.c
include/pub_tool_aspacemgr.h

index 9fb4ecee3a37772c295cc290aed32a00387118a6..2dd14617f73179ee6511a006a689333c69cc429b 100644 (file)
@@ -603,7 +603,7 @@ void VG_(am_show_nsegments) ( Int logLevel, HChar* who )
    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);
index e76032fcb7f5bc3a6046f9718cdcf1b7371004d3..82a0192544068719796b0622032bd35ac1ec99ff 100644 (file)
@@ -137,7 +137,7 @@ extern Int VG_(am_get_segment_starts)( Addr* starts, Int nStarts );
 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,