53 Commits

Author SHA1 Message Date
Julian Seward
32f134b8c1 Somewhat rehash the biarch-build machinery so as to (1) formalise the
distinction between primary and secondary build targets, and (2) make
it independent of the default behaviour of gcc (iow, what gcc does
when you specify neither -m32 nor -m64).

As a result, an out-of-the-box build on ppc64-linux now builds a
system which is basically for 64-bit PowerPC, but also has the ability
to run 32-bit ppc-linux binaries (exactly the same arrangement as you
get when building on amd64-linux).

There are various twists and turns.  multiple-architectures.txt is
updated all the gory details.

This will break amd64 builds until such time as
<tool>/tests/{amd64,x86}/Makefile.am are fixed up (shortly).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5493
2006-01-04 01:20:28 +00:00
Julian Seward
53cc394f0d Fix typo
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5464
2005-12-30 22:50:01 +00:00
Julian Seward
9f5c43b405 Get rid of duplicated STRINGIFY macros.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4829
2005-09-30 01:20:47 +00:00
Nicholas Nethercote
c35f8e6213 Make primes.c a bazillion times faster.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4810
2005-09-28 14:49:40 +00:00
Julian Seward
f8b0e0df14 Handy program for finding prime numbers (small ones!)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4807
2005-09-28 11:25:10 +00:00
Nicholas Nethercote
d9c2f2f027 Fix up Makefile.core.am which got a little confused during the ASPACEM
merging.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4794
2005-09-27 20:27:04 +00:00
Julian Seward
cc8ccbbfb4 This commit merges in changes from branches/ASPACEM (specifically,
changes from r4341 through r4787 inclusive).  That branch is now dead.
Please do not commit anything else to it.

For the most part the merge was not troublesome.  The main areas of
uncertainty are:

- build system: I had to import by hand Makefile.core-AM_CPPFLAGS.am
  and include it in a couple of places.  Building etc seems to still
  work, but I haven't tried building the documentation.

- syscall wrappers: Following analysis by Greg & Nick, a whole lot of
  stuff was moved from -generic to -linux after the branch was created.
  I think that is satisfactorily glued back together now.

- Regtests: although this appears to work, no .out files appear, which
  is strange, and makes it hard to diagnose regtest failures.  In
  particular memcheck/tests/x86/scalar.stderr.exp remains in a 
  conflicted state.

- amd64 is broken (slightly), and ppc32 will be unbuildable.  I'll
  attend to the former shortly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4789
2005-09-27 19:20:21 +00:00
Nicholas Nethercote
63df7df1c8 Give file a better name.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4546
2005-08-28 04:48:12 +00:00
Julian Seward
9338163bc8 bugfixes and improvements
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4242
2005-07-24 11:18:41 +00:00
Julian Seward
17e76ca521 A couple of gsl-1.6 patches which make it compile/run more cleanly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4236
2005-07-24 06:44:27 +00:00
Julian Seward
0ffe0096ce Fix quoting some more. Shell script sucks.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4107
2005-07-05 00:59:08 +00:00
Julian Seward
c6407596f3 Fix quoting a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4106
2005-07-05 00:00:40 +00:00
Julian Seward
3290397af2 Check args a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4105
2005-07-04 23:54:41 +00:00
Julian Seward
ca17a7838f Add a test script (recycled version of Tom's nightly/bin/nightly)
which is useful for doing automated test runs against the GNU
Scientific Library v 1.6 (gsl-1.6).  This has proven very helpful in
shaking out Vex simulation bugs.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4104
2005-07-04 23:44:10 +00:00
Nicholas Nethercote
d50a75cd1a Fixed 'make dist'. In particular, all the arch/platform-specific files
get included in the distro now, not just the ones for the arch/platform
that the distro tarball is built on.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4085
2005-07-02 17:36:11 +00:00
Nicholas Nethercote
19b510f7d2 Removed Corecheck, as it no longer serves a useful purpose.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4077
2005-07-01 22:20:34 +00:00
Nicholas Nethercote
f97f28f16f Killed --libc option -- can be achieved with --hide.
Now scanning .S files too.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4030
2005-06-26 14:43:01 +00:00
Nicholas Nethercote
a4f5166d99 Allow multiple module names per --hide option.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4026
2005-06-26 00:44:21 +00:00
Julian Seward
be47f84a2e A small program to read .dot files created by auxprogs/gen-mdg and
compute the strongly connected components in them.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4016
2005-06-25 14:42:34 +00:00
Donna Robinson
b655e45a8e argh! there were loads of the little beggars ....
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3999
2005-06-23 00:17:51 +00:00
Nicholas Nethercote
fcc0f87064 New script for graphing module dependencies.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3963
2005-06-20 01:02:53 +00:00
Nicholas Nethercote
f174930b23 Final commit for the initial modularisation pass:
- Broke part of m_scheduler off into a new module m_threadstate.  It
  contains ThreadState, VG_(threads)[] and some basic operations on the
  thread table.  All simple stuff, the complex stuff stays in m_scheduler.
  This avoids lots of circular dependencies between m_scheduler and other
  modules.

- Managed to finally remove core.h and tool.h, double hurrah!

- Introduced pub_tool_basics.h and pub_core_basics.h, one of which is
  include by every single C file.

- Lots of little cleanups and changes related to the above.

- I even did a small amount of documentation updating.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3944
2005-06-19 01:24:32 +00:00
Nicholas Nethercote
2c4e465cf7 Move VG_CLO_DEFAULT_LOGPORT to a better spot.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3932
2005-06-18 04:13:54 +00:00
Nicholas Nethercote
cbab2cf707 Moved VG_BUGS_TO out of basic_types.h into libcassert.h.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3928
2005-06-18 02:25:16 +00:00
Nicholas Nethercote
58d279dbf2 Avoid compiler warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3763
2005-05-17 21:07:46 +00:00
Tom Hughes
ccae44d317 Get rid of all the duplicated settings of AM_CFLAGS in the makefiles
for the various core modules and use a single global setting so that
the flags are actually consistent everywhere.

Also get rid of most the USE_PIE blocks in the makefiles by having
configure pass expand a variable in the new global AM_CFLAGS to one
of "-fpie" or "" depending on whether PIE is in use.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3760
2005-05-17 16:11:40 +00:00
Nicholas Nethercote
937a49ea05 Added module m_options for holding all the command-line option stuff.
Perhaps parts of process_cmd_line_option() should go in here, but I've
not done that for now.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3751
2005-05-16 23:31:24 +00:00
Nicholas Nethercote
92c61a5fd1 Don't mix backticks and apostrophes when quoting words -- eg. use 'foo'
rather than `foo', as www.cl.cam.ac.uk/~mgk25/ucs/quotes.html explains
we should (in more detail than you'd imagine was possible).  I did this
both in output messages and in some comments, for consistency.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3723
2005-05-15 17:28:26 +00:00
Nicholas Nethercote
e2e1d2f896 Merge STR and VG__STRING macros into one, VG_STRINGIFY. Also, in
valgrind-listener.c, don't use the VG_ prefix on its equivalent, because
it's a local definition.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3454
2005-03-27 01:25:38 +00:00
Nicholas Nethercote
05fe123a9e Update copyright notice for 2005 on all relevant files. Don't bother trying
to be selective about it.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3303
2005-03-12 16:22:54 +00:00
Nicholas Nethercote
ce2585d447 Changed message at the top of files, and the startup message, and the
string in valgrind.pc.in, so that they describe Valgrind as a "dynamic
binary instrumentation framework", and don't mention platforms at all.  

I had to tweak the regtest filters a bit for this.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3178
2004-12-01 14:14:42 +00:00
Nicholas Nethercote
ba210a6364 Arch-abstraction step: renamed "vg_include.h" as "core.h".
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2643
2004-09-01 23:58:16 +00:00
Nicholas Nethercote
acd57ac595 Use Makefile.am includes. This gets rid of 110 lines of repetitive Makefile.am
cruft, yay!


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2641
2004-09-01 23:20:49 +00:00
Nicholas Nethercote
1bd17a3d0f Remove a bunch of unnecessary -DVG_LIBDIR="\"$(libdir)"\" arguments in
Makefile.am files.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2597
2004-08-23 14:02:03 +00:00
Tom Hughes
a2a0946b8a Make VPATH builds work so that valgrind can be built in a different
directory from the source tree. This resolves bug 83040.

Based on patch from Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2450
2004-06-29 09:45:37 +00:00
Nicholas Nethercote
07b8e3438b Updated copyright dates for 2004. Also added a couple of missing headers and
footers to some new files.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2177
2004-01-04 16:43:23 +00:00
Nicholas Nethercote
d6d804d382 Updated all "report bugs to..." messages to point to valgrind.kde.org; also
updated the docs to refer to valgrind.kde.org instead of the old website.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2055
2003-11-20 16:20:55 +00:00
Dirk Mueller
7d1abc6b9e compiler warning fixes
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1824
2003-09-18 01:41:48 +00:00
Julian Seward
3473810abb Close fds to avoid fd leakage.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1768
2003-07-20 22:39:58 +00:00
Julian Seward
614dac1f77 Restarting valgrind-listener quickly can produce:
cannot bind port : Address already in use
Fix it by enabling SO_REUSEADDR for the listening socket.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1727
2003-07-06 01:34:13 +00:00
Nicholas Nethercote
83ef1ca2ed Some Makefile.am changes. Lots of them affected:
- changed deprecated INCLUDES variable to AM_CPPFLAGS

- moved the -DVG_LIBDIR definition from AM_CFLAGS into AM_CPPFLAGS

- generally neatened them up a bit -- removed old commented out stuff, fixed a
  couple of other minor things

Everything works for me, hopefully it won't break things for anyone else...


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1680
2003-06-12 14:13:05 +00:00
Dirk Mueller
02b63b3ba8 reapply automake fixes. make check will now generate the binaries which
are only required for regression testing.

If this breaks something, please mail me first instead of reverting.
Thank you.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1530
2003-04-17 17:00:43 +00:00
Nicholas Nethercote
ac7027c441 Updated copyright notices for 2003. Only 4 months late.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1526
2003-04-15 14:58:06 +00:00
Julian Seward
2d2a15abbf Change a bunch of AM_CFLAGS, AM_CXXFLAGS to CFLAGS, CXXFLAGS.
The AM_ versions totally break compilation on RH6.2.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1447
2003-02-28 23:22:44 +00:00
Dirk Mueller
8f9785b1eb fix make distcheck with newer automake
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1443
2003-02-25 01:48:15 +00:00
Julian Seward
d2b9f5e6ae A bit more flushing of stdout, so that "valgrind-listener | tee logfile"
isn't so mysterious.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1321
2002-11-16 20:15:16 +00:00
Julian Seward
c39f833023 Rename --exit-when-zero flag to --exit-at-zero, in accordance with docs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1291
2002-11-13 19:42:30 +00:00
Julian Seward
4623a5d36c This isn't performance-critical; remove some optimisation flags.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1282
2002-11-10 10:18:42 +00:00
Nicholas Nethercote
1c81b5f844 Added Makefile.am for auxprogs/.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1281
2002-11-09 17:53:30 +00:00
Julian Seward
8d7de5bd1b Clean up; add command-line spec of port # and request to exit when number
of connections falls to zero.  Also, handle SIGINT, and print time
at start/exit.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1280
2002-11-09 10:24:01 +00:00