|
From: <sv...@va...> - 2013-08-24 17:52:36
|
bart 2013-08-24 17:52:26 +0000 (Sat, 24 Aug 2013)
New Revision: 13510
Log:
coregrind/m_debuginfo: Add VG_(DebugInfo_get_bss_avma)() and VG_(DebugInfo_get_bss_size)()
Modified files:
trunk/coregrind/m_debuginfo/debuginfo.c
trunk/include/pub_tool_debuginfo.h
Modified: trunk/coregrind/m_debuginfo/debuginfo.c (+10 -0)
===================================================================
--- trunk/coregrind/m_debuginfo/debuginfo.c 2013-08-24 17:51:18 +00:00 (rev 13509)
+++ trunk/coregrind/m_debuginfo/debuginfo.c 2013-08-24 17:52:26 +00:00 (rev 13510)
@@ -3771,6 +3771,16 @@
return di->text_present ? di->text_size : 0;
}
+Addr VG_(DebugInfo_get_bss_avma)(const DebugInfo* di)
+{
+ return di->bss_present ? di->bss_avma : 0;
+}
+
+SizeT VG_(DebugInfo_get_bss_size)(const DebugInfo* di)
+{
+ return di->bss_present ? di->bss_size : 0;
+}
+
Addr VG_(DebugInfo_get_plt_avma)(const DebugInfo* di)
{
return di->plt_present ? di->plt_avma : 0;
Modified: trunk/include/pub_tool_debuginfo.h (+2 -0)
===================================================================
--- trunk/include/pub_tool_debuginfo.h 2013-08-24 17:51:18 +00:00 (rev 13509)
+++ trunk/include/pub_tool_debuginfo.h 2013-08-24 17:52:26 +00:00 (rev 13510)
@@ -184,6 +184,8 @@
/* Fish bits out of DebugInfos. */
Addr VG_(DebugInfo_get_text_avma) ( const DebugInfo *di );
SizeT VG_(DebugInfo_get_text_size) ( const DebugInfo *di );
+Addr VG_(DebugInfo_get_bss_avma) ( const DebugInfo *di );
+SizeT VG_(DebugInfo_get_bss_size) ( const DebugInfo *di );
Addr VG_(DebugInfo_get_plt_avma) ( const DebugInfo *di );
SizeT VG_(DebugInfo_get_plt_size) ( const DebugInfo *di );
Addr VG_(DebugInfo_get_gotplt_avma) ( const DebugInfo *di );
|