Commit Graph

132 Commits

Author SHA1 Message Date
Nicholas Nethercote
66adb12133 Arch-abstraction:
- Moved all the insn_* tests into x86/ subdirectories.  What are the chances of
  me getting this right on the first attempt?


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2809
2004-10-19 18:54:11 +00:00
Nicholas Nethercote
03517b9c00 Arch-abstraction:
- Move x86-specific regtests for Cachegrind into an x86/ subdir.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2804
2004-10-19 17:00:59 +00:00
Nicholas Nethercote
61efc22607 Use "ppc" rather than "powerpc" -- it's less typing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2801
2004-10-19 14:24:42 +00:00
Nicholas Nethercote
bf0340373c Arch-abstraction: fix up valgrind.h for future inclusion of other
architectures.  Had to recast it as valgrind.h.in;  now at configure time the
appropriate #define is set so that the appropriate snippet of assembly code is
chosen.  It's done this way rather than with x86/ etc. directories like the
rest of Valgrind, because this header file must stand alone for inclusion by
other programs.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2794
2004-10-18 18:07:49 +00:00
Nicholas Nethercote
2062b4dc59 Preparing for powerpc inclusion, one day.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2750
2004-10-13 13:50:01 +00:00
Nicholas Nethercote
e06b949479 Arch-abstraction: genericise warning about unsupported architectures.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2749
2004-10-13 13:18:51 +00:00
Nicholas Nethercote
67d6dc6e2b Arch-abstraction:
- In Cachegrind, abstract out x86-specific use of CPUID to find cache
  configuration.  Required adding a cachegrind/x86/ directory, and fiddling
  a bit with the build system.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2698
2004-09-11 16:45:27 +00:00
Nicholas Nethercote
a8d85f7180 Arch-abstraction:
- 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
2004-09-10 14:23:59 +00:00
Nicholas Nethercote
18355ff96b 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
2004-09-03 13:45:29 +00:00
Julian Seward
5980962b82 HEAD now reports 2.3.0.CVS.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2637
2004-08-31 16:26:27 +00:00
Julian Seward
ee716258dc --> 2.2.0
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2635
2004-08-31 00:15:19 +00:00
Tom Hughes
e7323896b0 Recognise X.Org servers and treat them the same as XFree86 4.x servers. This
avoids warnings from configure about an unknown X server type on recent Linux
distributions that use X.Org instead of XFree86.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2625
2004-08-30 10:31:21 +00:00
Tom Hughes
d70eefb647 Switch to using the newer forms of AC_INIT and AM_INIT_AUTOMAKE so that
configure can print the package name correctly.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2624
2004-08-29 09:46:38 +00:00
Tom Hughes
da2b7b0f72 Only check whether linux/mii.h can be processed so that we don't
generate ugly warnings by trying to compile it.

Patch from Eric Estievenart <eric.estievenart@free.fr>


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2613
2004-08-24 23:09:07 +00:00
Nicholas Nethercote
4572ebc0f1 Add a reassuring warnings about the linux/mii.h warning.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2612
2004-08-24 14:38:53 +00:00
Nicholas Nethercote
5bfc8bf7af Tweak configure.in in preparation for arch and OS ports -- we now have
variables VG_ARCH, VG_OS and VG_PLATFORM (which equals ${VG_ARCH}-${VG_OS}).
Also added a check for the platform (arch/OS) combination.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2600
2004-08-23 14:54:40 +00:00
Tom Hughes
2ff805b932 Minor rejigging of includes to help compilation on Debian systems.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2590
2004-08-18 08:11:34 +00:00
Tom Hughes
546afbe696 Add support for the POSIX message queue system calls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2585
2004-08-14 18:52:27 +00:00
Julian Seward
7a8b73a9fb --> 2.1.3.CVS
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2508
2004-07-18 11:47:55 +00:00
Julian Seward
4c259b37bd --> 2.1.2
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2505
2004-07-18 09:25:17 +00:00
Tom Hughes
c88651b1fc Add support for SIOCGMIIPHY, SIOCGMIIREG and SIOCSMIIREG ioctls and
improve the checking of other interface related ioctls.

Based in part on a patch from Jim McDonald <jim@mcdee.net> supplied
as a fix for bug #83344.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2424
2004-06-17 23:04:58 +00:00
Tom Hughes
d9d4e91c04 Fixed the sem test to work on systems with semtimedop.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2414
2004-06-14 12:33:43 +00:00
Tom Hughes
f267e2c7d0 Fixed the NPTL cleanup handler support to try and make sure it will
compile on systems with NPTL header files.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2406
2004-06-12 17:25:25 +00:00
Tom Hughes
a159f627cb Make support for the FBIOGET ioctls conditional on linux/fb.h being
present at compile time.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2382
2004-04-22 07:28:43 +00:00
Nicholas Nethercote
f37f533f73 Remove illegal '-' in @VERSION@.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2357
2004-04-12 09:09:29 +00:00
Julian Seward
5c2a3999d3 head --> 2.1.2-CVS so as to distinguish it from everything else :-)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2311
2004-03-13 00:49:39 +00:00
Jeremy Fitzhardinge
82aaa16ef9 Fix "make distcheck", and also make sure that the generated archive
contains everything needed to "make regtest".  Bump the version.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2308
2004-03-12 10:51:39 +00:00
Nicholas Nethercote
563c4e566a Adding Massif, the heap profiler.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2245
2004-02-14 16:40:02 +00:00
Dirk Mueller
c9f8dd46c0 infrastructure. Yes, it doesn't do much yet.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2172
2004-01-03 15:21:14 +00:00
Dirk Mueller
eed4f863f8 remove test for malloc.h
add tests for endian.h and sys/endian.h (FreeBSD like)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2168
2004-01-03 14:23:45 +00:00
Jeremy Fitzhardinge
918c3a7b7e This jumbo-checkin is the Full Virtualization checkin. This eliminates
Valgrind's dependency on the dynamic linker for getting started, and
instead takes things into its own hands.

This checkin doesn't add much in the way of new functionality, but it
is the basis for all future work on Valgrind.  It allows us much more
flexibility in implementation, and well as increasing the reliability
of Valgrind by protecting it more from its clients.

This patch requires some changes to tools to update them to the changes
in the tool API, but they are straightforward.  See the posting "Heads
up: Full Virtualization" on valgrind-developers for a more complete
description of this change and its effects on you.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2118
2003-12-16 02:05:15 +00:00
Julian Seward
020aaa82b4 ---> 2.1.0
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2107
2003-12-14 00:15:23 +00:00
Dirk Mueller
44be79eb9e pkgconfig support. Patch by Dimitri Papadopoulos
MERGE TO STABLE

CCMAIL: 68566-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2048
2003-11-19 21:50:07 +00:00
Julian Seward
083ea7f867 It's not good that the head claims to be some old stable version.
Change the version number to 'HEAD'.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2007
2003-11-06 00:03:20 +00:00
Dirk Mueller
0a9c792ab0 fixes .cfi configure problem. apparently compiling is not enough
to invoke the gnu as in all cases.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1973
2003-10-31 03:43:48 +00:00
Nicholas Nethercote
2b04cbba29 Remove the configure-time NPTL test, the results of which are no longer used.
MERGE TO STABLE, if the corresponding change to valgrind.in is also merged.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1951
2003-10-18 14:05:42 +00:00
Dirk Mueller
d012125a53 - add test to detect if GNU as supports .cfi directives
- correct stack-boundary test. this test is apparently redundant
  as it always passed, and nobody complained ;)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1946
2003-10-17 13:43:46 +00:00
Jeremy Fitzhardinge
1e6361234c A complete reworking of Valgrind's handling of system calls and signals,
with the aim of making it more robust, more correct and perhaps faster.

This patch removes the need to poll blocking syscalls, by adding a proxy
LWP for each application thread.  This LWP is a kernel thread whose job
is to run all (potentially) blocking syscalls, and also to handle signals.

This allows the kernel to do more of the work of dealing with signals,
so on kernels which do this properly (2.6), Valgrind's behavious is a
lot more posix compliant.  On base 2.4 kernels, we emulate some of the
missing 2.6 functionality.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1918
2003-10-13 22:26:55 +00:00
Dirk Mueller
ba418da664 its linux 2.6.x these days
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1796
2003-08-10 13:37:01 +00:00
Julian Seward
99ab046fe6 --> 20030725
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1790
2003-07-26 17:50:42 +00:00
Julian Seward
93caaae89e --> 20030716
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1764
2003-07-16 20:10:51 +00:00
Julian Seward
419e965cd8 --> 20030715
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1760
2003-07-15 00:28:35 +00:00
Julian Seward
3644d2adb3 Push version tag along, to cvs-head-2003-07-13.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1753
2003-07-13 01:52:08 +00:00
Dirk Mueller
1c4488c439 AC_PROG_EGREP wasn't too portable after all. Better fixing it the lame but
safe way


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1700
2003-06-15 22:39:15 +00:00
Dirk Mueller
20358ce449 fixing minor oddity in configure output
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1666
2003-06-01 23:44:50 +00:00
Dirk Mueller
05a4a721a6 add glibc 2.3 suppression file before I loose it again :(
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1655
2003-05-27 00:19:52 +00:00
Julian Seward
e033e52c19 Change the version "number" to something less confusing, since we are
not (yet) making releases from this branch.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1549
2003-04-23 21:17:24 +00:00
Nicholas Nethercote
df7e5ac5ec Better way to specify where gdb is -- now GDB_PATH is defined in config.h,
which is global, rather than passing it in with -D to the file that needed it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1532
2003-04-18 12:54:24 +00:00
Dirk Mueller
d98a4aa5f4 be autoconf 2.13 compatible
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1531
2003-04-17 17:38:45 +00:00
Dirk Mueller
0c1d7aa7f6 fix make distcheck by properly implementing the NPTL configure check.
Dear users who still use Redhat: please test if this still works.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1529
2003-04-17 16:58:03 +00:00