]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Merge r9754 (#includes tweak) from the DARWIN branch. Also remove a
authorNicholas Nethercote <njn@valgrind.org>
Mon, 4 May 2009 06:12:37 +0000 (06:12 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 4 May 2009 06:12:37 +0000 (06:12 +0000)
Darwin-specific code snippet that crept in from a previous commit.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9756

coregrind/m_aspacemgr/aspacemgr-common.c
coregrind/m_ume/priv_ume.h
coregrind/pub_core_ume.h

index 601539e1ef7abf769e8a6feeb459b1361dea68e5..dd1238e52c033005f59819a789b3243ec4c0a9b5 100644 (file)
@@ -306,17 +306,6 @@ Bool ML_(am_resolve_filename) ( Int fd, /*OUT*/HChar* buf, Int nbuf )
    I_die_here; /* maybe just return False? */
    return False;
 
-#elif defined(VGO_darwin)
-   HChar tmp[VKI_MAXPATHLEN+1];
-   if (0 == ML_(am_fcntl)(fd, VKI_F_GETPATH, (UWord)tmp)) {
-      if (nbuf > 0) {
-         VG_(strncpy)( buf, tmp, nbuf < sizeof(tmp) ? nbuf : sizeof(tmp) );
-         buf[nbuf-1] = 0;
-      }
-      if (tmp[0] == '/') return True;
-   }
-   return False;
-
 #  else
 #     error Unknown OS
 #  endif
index 2ac41899e8cd739efac119f800c374258ebc22f9..ce5f09046ce2b2c4b701acdce2f5bdb534fe0a28 100644 (file)
 #ifndef __PRIV_UME_H
 #define __PRIV_UME_H
 
-#if defined(VGO_linux) 
-#  define HAVE_ELF
-#  define HAVE_SCRIPT
-
-#elif defined(VGO_aix5)
-// The AIX port doesn't use UME.
-
-#else
-#error unknown architecture
-#endif
-
 extern int VG_(do_exec_inner)(const HChar *exe, ExeInfo *info);
 
 #if defined(HAVE_ELF)
index 2a16e2e1b28d1f2d83115012c94874a03e8851ba..cf7b1ad33352d2a0dc7b45ebccbb6dbd932ebc14 100644 (file)
 // and exec'ing.
 //--------------------------------------------------------------------
 
+#if defined(VGO_linux) 
+#  define HAVE_ELF
+#  define HAVE_SCRIPT
+
+#elif defined(VGO_aix5)
+// The AIX port doesn't use UME.
+
+#else
+#error unknown architecture
+#endif
+
 /*------------------------------------------------------------*/
 /*--- Loading files                                        ---*/
 /*------------------------------------------------------------*/