1825 Commits

Author SHA1 Message Date
Nicholas Nethercote
eea34ddbd6 Avoid spurious warning about using posix_memalign()
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2657
2004-09-03 14:04:40 +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
Nicholas Nethercote
c8b2709153 Tweaked comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2655
2004-09-02 16:25:49 +00:00
Nicholas Nethercote
397446e355 Arch-abstraction:
- removing the directories arch/x86-linux and arch/x86-freebsd, the contents of
  which were never actually used.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2654
2004-09-02 16:05:20 +00:00
Nicholas Nethercote
214cef4573 Arch-abstraction: add comment explaining header hierarchy.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2653
2004-09-02 16:02:58 +00:00
Nicholas Nethercote
3a59d9013f Update docs for filename change.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2652
2004-09-02 15:50:29 +00:00
Nicholas Nethercote
3dc0e6069d Tweak some comments.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2651
2004-09-02 15:49:09 +00:00
Nicholas Nethercote
90369deb78 Arch-abstraction:
- renamed "vg_constants.h" as "core_asm.h".
- renamed "vg_constants_skin.h" as "tool_asm.h".
- renamed "mc_constants.h" as "mc_asm.h".


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2650
2004-09-02 15:37:39 +00:00
Nicholas Nethercote
2221d976a8 Arch-abstraction: whoops II, forgot to add the (residual) vg_skin.h, which just
points to tool.h.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2649
2004-09-02 08:55:34 +00:00
Nicholas Nethercote
10d04230ef Arch-abstraction: Whoops, forgot to add tool.h.base. Also updated .cvsignore.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2648
2004-09-02 08:54:27 +00:00
Nicholas Nethercote
13a74aa53a Arch-abstraction: renamed "vg_skin.h" as "tool.h". Kept a residual vg_skin.h
(which just #includes tool.h) for backward-compatibility.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2647
2004-09-02 08:51:43 +00:00
Nicholas Nethercote
fef3e74483 Remove unnecessary #include statement.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2646
2004-09-02 08:18:07 +00:00
Nicholas Nethercote
6a5de86389 Arch-abstraction: renamed "vg_include.h" as "core.h" (a few that I missed in
my previous commit).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2645
2004-09-02 08:10:13 +00:00
Robert Walsh
ef335b7ad1 Fix some vg_include.h references.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2644
2004-09-02 00:31:02 +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
a32b040099 Update .cvsignore for recently added regression tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2642
2004-09-01 23:34:37 +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
a03b974a90 'valgrind' (ie. stage1) does not need to be installed in $PREFIX/lib/valgrind/;
$PREFIX/bin/ is enough.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2640
2004-09-01 11:33:35 +00:00
Tom Hughes
19bd50ea16 Move the include of linux/fs.h before the include of sys/un.h as the
latter includes string.h on some older systems which then causes
problems when linux/fs.h includes linux/string.h due to it turning
various string functions into pre-processor macros.

This was the problem behind bug #87820 which actually had nothing to
do with gcc 2.95 and everything to do with the glibc and kernel
headers that the system had installed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2639
2004-09-01 07:31:12 +00:00
Tom Hughes
9a416ac766 Make some of the parallel port ioctls conditional as older systems
don't have them defined.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2638
2004-09-01 07:29:08 +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
Julian Seward
9e22a94ec3 version -> 2.2.0
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2634
2004-08-31 00:15:02 +00:00
Julian Seward
3e72b87999 Hopefully final changes for 2.2.0.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2633
2004-08-31 00:14:02 +00:00
Julian Seward
d4262b160d Add comments about limitations wrt self-modifying code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2632
2004-08-31 00:13:10 +00:00
Tom Hughes
476075730e Add vki_itimerspec definition for POSIX timer support.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2631
2004-08-30 20:31:35 +00:00
Tom Hughes
0cd1d01031 Add support for POSIIX clocks and timers.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2630
2004-08-30 19:50:02 +00:00
Nicholas Nethercote
78cb64cc71 Print a message if shadow memory cannot be allocated, rather than just
asserting.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2629
2004-08-30 19:36:42 +00:00
Nicholas Nethercote
8b5a3a391b Avoid divisions by zero. This fixes bug 78765.
Also renamed two of the XPt fields so that things are clearer.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2628
2004-08-30 19:15:12 +00:00
Julian Seward
88a7def9ab Try to summarise 2.0.0 -> 2.2.0 changes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2627
2004-08-30 18:15:37 +00:00
Julian Seward
b220806b9f Document 2.1.2 -> 2.2.0 deltas (2.0.0 -> 2.2.0 not yet done)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2626
2004-08-30 18:04:42 +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
8cec8a36cc When delivering SIGFPE make sure we patch up si_addr in any siginfo
structure to match the address of the instruction in the client program
which caused the fault.

CCMAIL: 88115-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2623
2004-08-26 23:09:26 +00:00
Tom Hughes
22681c7c0a Include the filename in the system call trace for the access syscall.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2622
2004-08-26 12:26:27 +00:00
Tom Hughes
799e526298 If we return from a signal handler to a thread that was waiting to
rendezvous with another thread before the signal arrived then check
whether the rendezvous is now complete or we may deadlock.

CCMAIL: 77369-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2621
2004-08-25 18:58:04 +00:00
Nicholas Nethercote
3df220384a Change things so that stage2's location is controlled by a single variable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2620
2004-08-25 16:16:56 +00:00
Nicholas Nethercote
2f53ead94d Fix problem with brk(). Thanks to Paull Mackerras for the patch.
Added a regression test for it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2619
2004-08-25 13:43:44 +00:00
Nicholas Nethercote
29d59df719 Remove three unnecessary compile-time warnings.
Two were trivial.  The one for strncmp is slightly trickier;  you have to be
careful with the signedness of chars when comparing them... but the code
already casts s1 and s2 to (unsigned char*) before comparing them, so it's not
a problem.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2618
2004-08-25 13:33:17 +00:00
Tom Hughes
dbff330cf4 Removed comma at the end of an enumerator list - this is allowed
in C99 but not in C89 except as a GNU extension so it's probably
best not to rely on it.

Patch from Jeroen N. Witmond <jnw@xs4all.nl>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2617
2004-08-25 13:25:30 +00:00
Nicholas Nethercote
cfebbd9108 Fix symlinking -- the old code worked, but worked for the wrong reason; the
bit before "$(subdir)" has to specify the path from .in_place/ to the root.
It just so happened that $(top_builddir) was the same for all directories at
the same level in the hierarchy as .in_place/ (ie. one deep).

(I haven't bothered changing it in all the tool Makefile.am files, because I'll
do that when I factor out all their common bits into a single file, be it
before or after 2.2.0 is released.)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2616
2004-08-25 11:57:21 +00:00
Nicholas Nethercote
aec5623ebf Minor fixups:
- introduce $(inplacedir) like everywhere else
- valgrind.spec doesn't need to be included in "make dist", because it gets
  built from valgrind.spec.in at configure-time.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2615
2004-08-25 11:50:46 +00:00
Nicholas Nethercote
0db27515b1 Putting "dist_" in front of a "_DATA" variable means it is included in "make
dist".  This avoids the need to put it in "EXTRA_DIST", and saves a few lines
in all the docs Makefile.am files.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2614
2004-08-25 11:40:07 +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
9ac96e533a Update for filename change.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2611
2004-08-24 13:56:54 +00:00
Tom Hughes
7b91de196c The size passed to VG_(st_mkfloat) should be in bytes, not bits.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2610
2004-08-23 23:18:57 +00:00
Tom Hughes
fa8a87d6c0 Added code to decode a number of additional negative type numbers
in STABS debug information based on the stabs specification at:

  http://sources.redhat.com/cygwin/stabs.html

CCMAIL: 85811-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2609
2004-08-23 22:29:31 +00:00
Tom Hughes
090cf06f43 Prevent a memcpy of zero bytes from complaining if one or both of the
pointers given as arguments is uninitialised.

CCMAIL: 86989-done@bugs.kde.org


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2608
2004-08-23 18:39:09 +00:00
Robert Walsh
bd3e480bb3 Add explanatory comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2607
2004-08-23 18:15:12 +00:00