diff options
author | nethercote <nethercote@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2004-09-03 13:45:29 +0000 |
---|---|---|
committer | nethercote <nethercote@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2004-09-03 13:45:29 +0000 |
commit | c06e2137125b523897e73cf8ce9c476585d2ca1b (patch) | |
tree | 6980db5b1abc300f7eeecfe3d00fcf3bac8e5a29 /Makefile.tool.am | |
parent | 80cca43760c04ec9fab52d6bfd97dbb81050dc6a (diff) | |
download | valgrind-c06e2137125b523897e73cf8ce9c476585d2ca1b.tar.gz |
Arch-abstraction:
- Added include/x86/: contains tool_arch.h, Makefile.am, .cvsignore.
- Added coregrind/x86/state.c. Contains some arch-specific code for dealing
with x86 registers -- eg. setting up the baseBlock, loading/saving the whole
register state. It is compiled into coregrind/x86/libarch.a and linked via
${VG_ARCH} with the core.
Relatedly, also added coregrind/x86/{core_arch.h,core_arch_asm.h}.
- Correspondingly abstracted the register state out of ThreadState. This
affected every place that touches registers, and there are a lot of them.
(Eventually all the register touching should be abstracted out in an
arch-neutral way, but not yet; one step at a time.)
- Added some declarations about register loading/saving functions to core.h;
all architectures will have to provide these functions.
- Rejigged the build system so that the arch-specific stuff is all done via
${VG_ARCH}, rather than naming e.g. x86/ directly. Appropriate -I arguments
are used so that all the headers are found, etc.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2656 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'Makefile.tool.am')
-rw-r--r-- | Makefile.tool.am | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.tool.am b/Makefile.tool.am index cdde4b8d3..321f53a55 100644 --- a/Makefile.tool.am +++ b/Makefile.tool.am @@ -5,7 +5,8 @@ SUBDIRS = . tests docs ## Need $(top_builddir)/include because tool.h is built from tool.h.base; ## otherwise it will not work if builddir != srcdir. -add_includes = -I$(top_builddir)/include -I$(top_srcdir)/include +add_includes = -I$(top_builddir)/include -I$(top_srcdir)/include \ + -I$(top_srcdir)/include/$(VG_ARCH) AM_CPPFLAGS = $(add_includes) AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -fomit-frame-pointer \ |