|
From: <sv...@va...> - 2009-05-20 08:07:34
|
Author: njn
Date: 2009-05-20 09:07:30 +0100 (Wed, 20 May 2009)
New Revision: 10051
Log:
Fix Darwin compile breakage.
Modified:
branches/DARWIN/coregrind/m_syswrap/priv_types_n_macros.h
branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c
branches/DARWIN/coregrind/m_syswrap/syswrap-generic.c
Modified: branches/DARWIN/coregrind/m_syswrap/priv_types_n_macros.h
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/priv_types_n_macros.h 2009-05-20 08:04:11 UTC (rev 10050)
+++ branches/DARWIN/coregrind/m_syswrap/priv_types_n_macros.h 2009-05-20 08:07:30 UTC (rev 10051)
@@ -496,7 +496,7 @@
*/
#define PSRAn_LE(n,s,t,a) \
do { \
- Addr here = layout->s_arg##n + VG_(threads)[tid].arch.vex.VG_STACK_PTR; \
+ Addr here = layout->s_arg##n + VG_(get_SP)(tid); \
vg_assert(sizeof(t) <= sizeof(UWord)); \
VG_(tdict).track_pre_mem_read( \
Vg_CoreSysCallArgInMem, tid, s"("#a")", \
Modified: branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c 2009-05-20 08:04:11 UTC (rev 10050)
+++ branches/DARWIN/coregrind/m_syswrap/syswrap-darwin.c 2009-05-20 08:07:30 UTC (rev 10051)
@@ -44,6 +44,7 @@
#include "pub_core_libcprint.h"
#include "pub_core_libcproc.h"
#include "pub_core_libcsignal.h"
+#include "pub_core_machine.h" // VG_(get_SP)
#include "pub_core_mallocfree.h"
#include "pub_core_options.h"
#include "pub_core_scheduler.h"
Modified: branches/DARWIN/coregrind/m_syswrap/syswrap-generic.c
===================================================================
--- branches/DARWIN/coregrind/m_syswrap/syswrap-generic.c 2009-05-20 08:04:11 UTC (rev 10050)
+++ branches/DARWIN/coregrind/m_syswrap/syswrap-generic.c 2009-05-20 08:07:30 UTC (rev 10051)
@@ -45,6 +45,7 @@
#include "pub_core_libcprint.h"
#include "pub_core_libcproc.h"
#include "pub_core_libcsignal.h"
+#include "pub_core_machine.h" // VG_(get_SP)
#include "pub_core_mallocfree.h"
#include "pub_core_options.h"
#include "pub_core_scheduler.h"
|