|
From: <sv...@va...> - 2005-06-25 19:51:41
|
Author: njn
Date: 2005-06-25 20:51:33 +0100 (Sat, 25 Jun 2005)
New Revision: 4021
Log:
Rename functions to make the type involved clearer.
Modified:
trunk/coregrind/m_debuginfo/symtab.c
trunk/helgrind/hg_main.c
trunk/include/pub_tool_debuginfo.h
Modified: trunk/coregrind/m_debuginfo/symtab.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/m_debuginfo/symtab.c 2005-06-25 19:45:34 UTC (rev 402=
0)
+++ trunk/coregrind/m_debuginfo/symtab.c 2005-06-25 19:51:33 UTC (rev 402=
1)
@@ -2570,27 +2570,27 @@
return si->next;
}
=20
-Addr VG_(seg_start)(const SegInfo* si)
+Addr VG_(seginfo_start)(const SegInfo* si)
{
return si->start;
}
=20
-SizeT VG_(seg_size)(const SegInfo* si)
+SizeT VG_(seginfo_size)(const SegInfo* si)
{
return si->size;
}
=20
-const UChar* VG_(seg_filename)(const SegInfo* si)
+const UChar* VG_(seginfo_filename)(const SegInfo* si)
{
return si->filename;
}
=20
-ULong VG_(seg_sym_offset)(const SegInfo* si)
+ULong VG_(seginfo_sym_offset)(const SegInfo* si)
{
return si->offset;
}
=20
-VgSectKind VG_(seg_sect_kind)(Addr a)
+VgSectKind VG_(seginfo_sect_kind)(Addr a)
{
SegInfo* si;
VgSectKind ret =3D Vg_SectUnknown;
Modified: trunk/helgrind/hg_main.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/helgrind/hg_main.c 2005-06-25 19:45:34 UTC (rev 4020)
+++ trunk/helgrind/hg_main.c 2005-06-25 19:51:33 UTC (rev 4021)
@@ -2425,9 +2425,9 @@
si !=3D NULL;=20
si =3D VG_(next_seginfo)(si))=20
{
- Addr base =3D VG_(seg_start)(si);
- SizeT size =3D VG_(seg_size)(si);
- const UChar *filename =3D VG_(seg_filename)(si);
+ Addr base =3D VG_(seginfo_start)(si);
+ SizeT size =3D VG_(seginfo_size)(si);
+ const UChar *filename =3D VG_(seginfo_filename)(si);
=20
if (a >=3D base && a < base+size) {
ai->akind =3D Segment;
@@ -2435,7 +2435,7 @@
ai->rwoffset =3D a - base;
ai->filename =3D filename;
=20
- switch(VG_(seg_sect_kind)(a)) {
+ switch(VG_(seginfo_sect_kind)(a)) {
case Vg_SectText: ai->section =3D "text"; break;
case Vg_SectData: ai->section =3D "data"; break;
case Vg_SectBSS: ai->section =3D "BSS"; break;
Modified: trunk/include/pub_tool_debuginfo.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/include/pub_tool_debuginfo.h 2005-06-25 19:45:34 UTC (rev 4020)
+++ trunk/include/pub_tool_debuginfo.h 2005-06-25 19:51:33 UTC (rev 4021)
@@ -102,11 +102,11 @@
is present or not. */
extern SegInfo* VG_(get_obj) ( Addr a );
=20
-extern const SegInfo* VG_(next_seginfo) ( const SegInfo *si );
-extern Addr VG_(seg_start) ( const SegInfo *si );
-extern SizeT VG_(seg_size) ( const SegInfo *si );
-extern const UChar* VG_(seg_filename) ( const SegInfo *si );
-extern ULong VG_(seg_sym_offset)( const SegInfo *si );
+extern const SegInfo* VG_(next_seginfo) ( const SegInfo *si );
+extern Addr VG_(seginfo_start) ( const SegInfo *si );
+extern SizeT VG_(seginfo_size) ( const SegInfo *si );
+extern const UChar* VG_(seginfo_filename) ( const SegInfo *si );
+extern ULong VG_(seginfo_sym_offset)( const SegInfo *si );
=20
typedef
enum {
@@ -119,7 +119,7 @@
}
VgSectKind;
=20
-extern VgSectKind VG_(seg_sect_kind)(Addr);
+extern VgSectKind VG_(seginfo_sect_kind)(Addr);
=20
#endif // __PUB_TOOL_DEBUGINFO_H
=20
|