]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
n-break build on x86-darwin following r10982.
authorJulian Seward <jseward@acm.org>
Fri, 1 Jan 2010 12:44:12 +0000 (12:44 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 1 Jan 2010 12:44:12 +0000 (12:44 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10983

coregrind/m_cpuid.S
coregrind/m_signals.c

index d9728e2782a89c4ccb52f9871f231a1655c88883..1b67b4cf7e436096fc7f50049d9b66f8e79ba48e 100644 (file)
         ret
 #endif
 
-#if defined(VGA_x86) || defined(VGA_amd64)
+#if defined(VGP_x86_linux) || defined(VGP_amd64_linux)
 /* Let the linker know we don't need an executable stack */
 .section .note.GNU-stack,"",@progbits
 #endif
index 8f46e1d3017a81400c599f80fea44990cbf25da8..66115d84601cd97ab90fa5611dc2a78cc2a46fbc 100644 (file)
@@ -54,7 +54,7 @@
    a signal with kill, its expected to be synchronous: ie, the signal
    will have been delivered by the time the syscall finishes.
    
-   4. Asyncronous, general signals.  All other signals, sent by
+   4. Asynchronous, general signals.  All other signals, sent by
    another process with kill.  These are generally blocked, except for
    two special cases: we poll for them each time we're about to run a
    thread for a time quanta, and while running blocking syscalls.
@@ -490,14 +490,15 @@ typedef struct SigQueue {
       return VG_(mk_SysRes_x86_darwin)( scclass, err ? True : False, 
                                         wHI, wLO );
    }
-   static inline Addr VG_UCONTEXT_LINK_REG( void* ucV ) {
-      return 0; /* No, really.  We have no LRs today. */
-   }
-   static inline Addr VG_UCONTEXT_FRAME_PTR( void* ucV ) {
-      ucontext_t* uc = (ucontext_t*)ucV;
+   static inline
+   void VG_UCONTEXT_TO_UnwindStartRegs( UnwindStartRegs* srP,
+                                        void* ucV ) {
+      ucontext_t* uc = (ucontext_t*)(ucV);
       struct __darwin_mcontext32* mc = uc->uc_mcontext;
       struct __darwin_i386_thread_state* ss = &mc->__ss;
-      return ss->__ebp;
+      srP->r_pc = (ULong)(ss->__eip);
+      srP->r_sp = (ULong)(ss->__esp);
+      srP->misc.X86.r_ebp = (UInt)(ss->__ebp);
    }
 
 #elif defined(VGP_amd64_darwin)