|
From: <sv...@va...> - 2014-10-23 11:38:19
|
Author: florian
Date: Thu Oct 23 12:38:12 2014
New Revision: 14657
Log:
Followup to r14656. Fix compile problem on Darwin.
Patch by Rhys Kidd <rhy...@gm...>.
Modified:
trunk/coregrind/m_debuginfo/readmacho.c
Modified: trunk/coregrind/m_debuginfo/readmacho.c
==============================================================================
--- trunk/coregrind/m_debuginfo/readmacho.c (original)
+++ trunk/coregrind/m_debuginfo/readmacho.c Thu Oct 23 12:38:12 2014
@@ -703,8 +703,8 @@
Bool have_uuid = False;
UChar uuid[16];
Word i;
- struct _DebugInfoMapping* rx_map = NULL;
- struct _DebugInfoMapping* rw_map = NULL;
+ const DebugInfoMapping* rx_map = NULL;
+ const DebugInfoMapping* rw_map = NULL;
/* mmap the object file to look for di->soname and di->text_bias
and uuid and nlist */
@@ -715,7 +715,7 @@
vg_assert(di->fsm.have_rw_map);
for (i = 0; i < VG_(sizeXA)(di->fsm.maps); i++) {
- struct _DebugInfoMapping* map = VG_(indexXA)(di->fsm.maps, i);
+ const DebugInfoMapping* map = VG_(indexXA)(di->fsm.maps, i);
if (map->rx && !rx_map)
rx_map = map;
if (map->rw && !rw_map)
|