|
[Valgrind-developers] valgrind: r8106 - in
branches/CROSS_COMPILATION: coregrind/m_debuginfo include
From: <sv...@va...> - 2008-05-18 16:04:58
|
Author: bart
Date: 2008-05-18 17:04:53 +0100 (Sun, 18 May 2008)
New Revision: 8106
Log:
Added VG_(seginfo_get_plt_avma)() and VG_(seginfo_get_plt_size)().
Modified:
branches/CROSS_COMPILATION/coregrind/m_debuginfo/debuginfo.c
branches/CROSS_COMPILATION/include/pub_tool_debuginfo.h
Modified: branches/CROSS_COMPILATION/coregrind/m_debuginfo/debuginfo.c
===================================================================
--- branches/CROSS_COMPILATION/coregrind/m_debuginfo/debuginfo.c 2008-05-18 08:09:59 UTC (rev 8105)
+++ branches/CROSS_COMPILATION/coregrind/m_debuginfo/debuginfo.c 2008-05-18 16:04:53 UTC (rev 8106)
@@ -2186,6 +2186,21 @@
return di->text_present ? di->text_size : 0;
}
+ULong VG_(seginfo_get_text_bias)(const DebugInfo* di)
+{
+ return di->text_present ? di->text_bias : 0;
+}
+
+Addr VG_(seginfo_get_plt_avma)(const DebugInfo* di)
+{
+ return di->plt_present ? di->plt_avma : 0;
+}
+
+SizeT VG_(seginfo_get_plt_size)(const DebugInfo* di)
+{
+ return di->plt_present ? di->plt_size : 0;
+}
+
const UChar* VG_(seginfo_soname)(const DebugInfo* di)
{
return di->soname;
@@ -2196,11 +2211,6 @@
return di->filename;
}
-ULong VG_(seginfo_get_text_bias)(const DebugInfo* di)
-{
- return di->text_present ? di->text_bias : 0;
-}
-
Int VG_(seginfo_syms_howmany) ( const DebugInfo *si )
{
return si->symtab_used;
Modified: branches/CROSS_COMPILATION/include/pub_tool_debuginfo.h
===================================================================
--- branches/CROSS_COMPILATION/include/pub_tool_debuginfo.h 2008-05-18 08:09:59 UTC (rev 8105)
+++ branches/CROSS_COMPILATION/include/pub_tool_debuginfo.h 2008-05-18 16:04:53 UTC (rev 8106)
@@ -119,9 +119,11 @@
/* Fish bits out of DebugInfos. */
extern Addr VG_(seginfo_get_text_avma)( const DebugInfo *di );
extern SizeT VG_(seginfo_get_text_size)( const DebugInfo *di );
+extern ULong VG_(seginfo_get_text_bias)( const DebugInfo *di );
+extern Addr VG_(seginfo_get_plt_avma) ( const DebugInfo *di );
+extern SizeT VG_(seginfo_get_plt_size) ( const DebugInfo *di );
extern const UChar* VG_(seginfo_soname) ( const DebugInfo *di );
extern const UChar* VG_(seginfo_filename) ( const DebugInfo *di );
-extern ULong VG_(seginfo_get_text_bias)( const DebugInfo *di );
/* Function for traversing the seginfo list. When called with NULL it
returns the first element; otherwise it returns the given element's
|