From: Tom Hughes Date: Tue, 8 Jan 2008 16:48:30 +0000 (+0000) Subject: Made the argument to VG_(am_get_filename) const as it doesn't need X-Git-Tag: svn/VALGRIND_3_4_0~1108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ad22500c090dd6fe557214f5a9142293c4c0ed6;p=thirdparty%2Fvalgrind.git 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. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7325 --- diff --git a/coregrind/m_aspacemgr/aspacemgr-linux.c b/coregrind/m_aspacemgr/aspacemgr-linux.c index 9fb4ecee3a..2dd14617f7 100644 --- a/coregrind/m_aspacemgr/aspacemgr-linux.c +++ b/coregrind/m_aspacemgr/aspacemgr-linux.c @@ -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); diff --git a/include/pub_tool_aspacemgr.h b/include/pub_tool_aspacemgr.h index e76032fcb7..82a0192544 100644 --- a/include/pub_tool_aspacemgr.h +++ b/include/pub_tool_aspacemgr.h @@ -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,