Revision: 144
Author:
ramosia...@gmail.com
Date: Mon Jun 3 04:24:35 2013
Log: [OSX] Re-apply Dan Kegel's patch that prints the object load
addresses in the XML mode.
http://code.google.com/p/valgrind-variant/source/detail?r=144
Modified:
/trunk/valgrind/coregrind/m_debuginfo/readmacho.c
=======================================
--- /trunk/valgrind/coregrind/m_debuginfo/readmacho.c Thu Nov 22 04:55:39
2012
+++ /trunk/valgrind/coregrind/m_debuginfo/readmacho.c Mon Jun 3 04:24:35
2013
@@ -705,6 +705,13 @@
"%s (rx at %#lx, rw at %#lx)\n", di->fsm.filename,
rx_map->avma, rw_map->avma );
+ // glider: This is needed to allow the users of XML output to obtain the
+ // load addresses for code segments.
+ // See
https://bugs.kde.org/show_bug.cgi?id=205000.
+ if (VG_(clo_xml))
+ VG_(printf_xml)("<load_obj><obj>%s</obj><ip>%#lx</ip></load_obj>\n",
+ di->fsm.filename, rx_map->avma);
+
VG_(memset)(&ii, 0, sizeof(ii));
VG_(memset)(&iid, 0, sizeof(iid));
VG_(memset)(&uuid, 0, sizeof(uuid));