]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Arch-abstraction:
authorNicholas Nethercote <n.nethercote@gmail.com>
Fri, 10 Sep 2004 14:23:59 +0000 (14:23 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Fri, 10 Sep 2004 14:23:59 +0000 (14:23 +0000)
- create coregrind/x86-linux/ directory.
- move vg_unistd.h into x86-linux/, because it's platform-dependent.  Also
  rename it as vki_unistd.h to make clear it's a kernel interface thing.

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

Makefile.core-AM_CPPFLAGS.am
README_MISSING_SYSCALL_OR_IOCTL
configure.in
coregrind/Makefile.am
coregrind/core.h
coregrind/vg_cpuid.S
coregrind/vg_syscall.S
coregrind/vg_unsafe.h
coregrind/x86-linux/.cvgsigore [new file with mode: 0644]
coregrind/x86-linux/Makefile.am [new file with mode: 0644]
coregrind/x86-linux/vki_unistd.h [moved from coregrind/vg_unistd.h with 98% similarity]

index ff660077e6281aa4db2c5702722c9600292bfcda..2e889b4f1080dd875989f50ac7c735869dc8d49a 100644 (file)
@@ -1,5 +1,6 @@
 add_includes = -I$(top_builddir)/coregrind -I$(top_srcdir)/coregrind \
                -I$(top_srcdir)/coregrind/$(VG_ARCH) \
+               -I$(top_srcdir)/coregrind/$(VG_PLATFORM) \
                -I$(top_builddir)/include -I$(top_srcdir)/include \
                -I$(top_srcdir)/include/$(VG_ARCH)
 
index a67fe061467496deb7c222fbb9787585aa20d9e5..ad919252ec9b1b760b954ff059ba2d37d3d3a1e7 100644 (file)
@@ -96,7 +96,7 @@ following:
        grep NNN /usr/include/asm/unistd.h
 
     This should tell you something like  __NR_mysyscallname.
-    Copy this entry to coregrind/vg_unistd.h.
+    Copy this entry to coregrind/$(VG_PLATFORM)/vki_unistd.h.
 
 2.  Do 'man 2 mysyscallname' to get some idea of what the syscall
     does.  Note that the actual kernel interface can differ from this,
index 8867f0749d0cb4b08fd575e97f59b492a33680eb..ffb10099c6c383ca0847bb0307a0c0966811e130 100644 (file)
@@ -397,6 +397,7 @@ AC_OUTPUT(
    coregrind/demangle/Makefile 
    coregrind/docs/Makefile
    coregrind/x86/Makefile
+   coregrind/x86-linux/Makefile
    addrcheck/Makefile
    addrcheck/tests/Makefile
    addrcheck/docs/Makefile
index 49ab635a72a608484c1af440e8f5becd04953469..aa505b35b525b3242f41978318c992729c083d7b 100644 (file)
@@ -1,7 +1,7 @@
 include $(top_srcdir)/Makefile.all.am
 include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
 
-SUBDIRS = $(VG_ARCH) demangle . docs
+SUBDIRS = $(VG_ARCH) $(VG_PLATFORM) demangle . docs
 
 AM_CPPFLAGS += -DVG_LIBDIR="\"$(valdir)"\" -I$(srcdir)/demangle \
                -DKICKSTART_BASE=$(KICKSTART_BASE) \
@@ -145,7 +145,6 @@ noinst_HEADERS = \
        ume.h                   \
        ume_arch.h              \
        vg_symtab2.h            \
-        vg_unistd.h             \
        vg_symtypes.h           \
        vg_toolint.h            \
        vg_unsafe.h
index 12285de3aed1ee177514e9fa1c9f5be537e5d31d..bce17e3df34f16f745e88936c4941984527cd80a 100644 (file)
@@ -81,7 +81,7 @@
 
 
 /* For system call numbers __NR_... */
-#include "vg_unistd.h"
+#include "vki_unistd.h"
 
 #include "core_asm.h"      // asm stuff
 #include "tool.h"          // tool stuff
index 4b1ba8ddc5b0ec75581b2542ceda2c79cda9beb4..439e6e12584bca8eb680730b65c6ba347d23f1d8 100644 (file)
@@ -30,7 +30,7 @@
 */
 
 #include "core_asm.h"
-#include "vg_unistd.h"
+#include "vki_unistd.h"
 
 /*
     int VG_(cpuid)(UInt eax,
index 7258adc6a89874707f7c185f1e8b5ce3105961e5..24249c13ac68a599c172b130504e2e8a9fa72507 100644 (file)
@@ -30,7 +30,7 @@
 */
 
 #include "core_asm.h"
-#include "vg_unistd.h"
+#include "vki_unistd.h"
 
 .globl VG_(do_syscall)
 
index d5d9167669592bc7d48126e21367f1eafebb21be..e0fede66992523e279b2f3139abba14a4c60aea4 100644 (file)
@@ -33,7 +33,7 @@
 
 /* These includes are only used for making sense of the args for
    system calls. */
-#include "vg_unistd.h"    /* for system call numbers */
+#include "vki_unistd.h"    /* for system call numbers */
 #include <sys/mman.h>     /* for PROT_* */
 #include <sys/utsname.h>  /* for uname */
 #include <sys/time.h>     /* for struct timeval & struct timezone */
diff --git a/coregrind/x86-linux/.cvgsigore b/coregrind/x86-linux/.cvgsigore
new file mode 100644 (file)
index 0000000..282522d
--- /dev/null
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff --git a/coregrind/x86-linux/Makefile.am b/coregrind/x86-linux/Makefile.am
new file mode 100644 (file)
index 0000000..1593673
--- /dev/null
@@ -0,0 +1,7 @@
+include $(top_srcdir)/Makefile.all.am
+include $(top_srcdir)/Makefile.core-AM_CPPFLAGS.am
+
+AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -fomit-frame-pointer -g
+
+noinst_HEADERS = \
+       vki_unistd.h
similarity index 98%
rename from coregrind/vg_unistd.h
rename to coregrind/x86-linux/vki_unistd.h
index 1e04dcf1f48c2f3e4de9650fc86bd0ecbdd82910..9f200201cb56af457403bbd3fedeb327e6725d8f 100644 (file)
@@ -24,8 +24,9 @@
    The GNU General Public License is contained in the file COPYING.
 */
 
-#ifndef _VG_ASM_I386_UNISTD_H_
-#define _VG_ASM_I386_UNISTD_H_
+#ifndef __X86_LINUX_VKI_UNISTD_H_
+#define __X86_LINUX_VKI_UNISTD_H_
+
 /* Taken from Linux 2.6.0-test1 include/asm-i386/unistd.h */
 
 /*
 
 #define NR_syscalls 284
 
-#endif /* _VG_ASM_I386_UNISTD_H_ */
+#endif /* __X86_LINUX_VKI_UNISTD_H_ */