Commit Graph

2831 Commits

Author SHA1 Message Date
Nicholas Nethercote
ea42fb2dff VGA_(terminate) doesn't need to be exported.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3698
2005-05-13 22:09:26 +00:00
Nicholas Nethercote
31cfff17d7 VGA_(restart_syscall)() doesn't need to be exported.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3697
2005-05-13 22:07:12 +00:00
Nicholas Nethercote
a5d1db8fc7 Use HChar for format strings to printf-like functions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3696
2005-05-13 21:49:30 +00:00
Nicholas Nethercote
e0ff8aaea9 Remove all traces of the now-defunct ThreadArchAux type.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3695
2005-05-13 21:44:07 +00:00
Nicholas Nethercote
badf763112 Remove unnecessary #includes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3694
2005-05-13 21:42:08 +00:00
Nicholas Nethercote
cd5a8a6ae3 Remove all the unused x86 and AMD64 *_FEAT_* macros, as NOTES.txt
suggests.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3693
2005-05-13 21:41:13 +00:00
Nicholas Nethercote
ed0b56fd2d Removed mc_asm.h, which is no longer needed since Memcheck has no
assembly files any more.  Moved MC_() into mc_include.h.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3692
2005-05-13 21:39:45 +00:00
Cerion Armour-Brown
e940abb993 Tidy up (arch)/dispatch.S
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3691
2005-05-13 16:54:09 +00:00
Julian Seward
1bab5a5f4c CFI reader: don't assume RA_REG is anything in particular; instead use
what's specified in the currenty applicable CIE.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3690
2005-05-13 12:17:33 +00:00
Julian Seward
2b81a24365 Create a fast version of MC_(helperc_MAKE_STACK_UNINIT), so as not to
slow down call-return intensive amd64 programs too much.  Revised
version is approximately 8 times faster than the naive version.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3689
2005-05-12 23:25:43 +00:00
Julian Seward
dbdcd9034c Sudden attack of 64-bit paranoia: therefore stick even more (probably
pointless) casts in.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3688
2005-05-12 23:23:38 +00:00
Julian Seward
64b9ead5fa AMD x87 instruction tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3687
2005-05-12 19:17:36 +00:00
Julian Seward
a2b0b088db Use the new IRStmt_AbiHints created by the amd64 front end. This
finally makes memcheck able to reliably track the definedness of the
stack on amd64.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3686
2005-05-12 18:05:00 +00:00
Julian Seward
637c341f56 64-bit fix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3685
2005-05-12 18:02:50 +00:00
Julian Seward
232a4a67f8 Another expected output file.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3684
2005-05-12 18:02:01 +00:00
Julian Seward
81307e483b 64-bit fixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3683
2005-05-12 18:01:15 +00:00
Julian Seward
2df2b56383 * move libc-specific suppressions into glibc-2.3.supp
* enhance the xfree suppressions so they match 64-bit X libraries


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3682
2005-05-12 18:00:12 +00:00
Julian Seward
b9fbd49132 Intercept yet more functions on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3681
2005-05-12 17:58:57 +00:00
Julian Seward
775ebbdd34 memmove on glibc on amd64 is over-optimised; replace it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3680
2005-05-12 17:58:28 +00:00
Julian Seward
797a8ffb57 Handle (ignore) IRStmt_AbiHint.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3679
2005-05-12 17:57:14 +00:00
Nicholas Nethercote
0ed704cb75 Update FAQ about GLIBCXX_FORCE_NEW name-change.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3678
2005-05-12 13:45:56 +00:00
Nicholas Nethercote
660675fc55 Unbreak build by moving creating pub_core_dispatch_asm.h for holding
asm-only constants.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3677
2005-05-12 13:15:38 +00:00
Julian Seward
77bc562faf When constructing a LeakErr, the (Char*) .string field is abused to
carry an Int.  This is confusing but works on 32-bit platforms; on
64-bit ones, gcc complains about the cast.  This commit adds another
kludge to keep gcc quiet.  Really this should be fixed properly.  The
casting-abuse is 'undone' in case LeakErr in MAC_(pp_Shared_Error).

This should really be fixed properly.  If this .string isn't always
a string, perhaps it should be renamed 'auxword' and turned into a
UWord which is guaranteed castable to/from pointer on any platform.
 


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3676
2005-05-12 09:04:06 +00:00
Julian Seward
b11df7045f Fix PURPOSE comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3675
2005-05-12 08:27:04 +00:00
Julian Seward
a82b769731 Fix compilation warnings on amd64 caused by I_die_here.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3674
2005-05-12 08:26:36 +00:00
Nicholas Nethercote
228797daf3 Move some macros into a more private place.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3673
2005-05-12 05:26:13 +00:00
Nicholas Nethercote
8e2169edd9 Modularised the dispatchers in m_dispatch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3672
2005-05-12 05:13:04 +00:00
Nicholas Nethercote
4cb3e8a7e4 Modularised vg_skiplist.c as m_skiplist.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3671
2005-05-12 04:37:27 +00:00
Nicholas Nethercote
a653c5da3c Cleaned up vg_messages.c and related printf stuff. vg_messages.c is now a
layer above the printf stuff in vg_mylibc.c, which is layered over
m_debuglog.  This makes the module interfaces neater, more consistent, and
cuts 40 lines of code.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3670
2005-05-12 03:51:15 +00:00
Nicholas Nethercote
f557a7f16b Replace two exported functions with one.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3669
2005-05-12 03:47:31 +00:00
Julian Seward
7cb45c7f52 Update a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3668
2005-05-11 23:37:18 +00:00
Nicholas Nethercote
96329ab015 Moved Vex's arch/subarch detection out of main() into VG_(translate)()'s
init routine.  This meant that VG_(vex_arch) and VG_(vex_subarch) could be
made local to VG_(translate)().



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3667
2005-05-11 22:45:48 +00:00
Nicholas Nethercote
e7da9a43be Make VG_(clone)() declaration private to m_syscalls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3666
2005-05-11 22:36:07 +00:00
Nicholas Nethercote
4db4c68c85 Removed the obsolete client request numbers that were used in the old
libpthread.  There seems to be no danger of old libpthread.so files causing
problems;  I just tried installing a current Valgrind over a 2.2.0
installation and it worked fine.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3665
2005-05-11 22:32:39 +00:00
Nicholas Nethercote
d7aa13765c Remove dead macro.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3664
2005-05-11 19:03:57 +00:00
Nicholas Nethercote
c9a39240ba Move VG_(dispatch_ctr) out of vg_main.c, which never touches it, into
vg_scheduler.c, which does.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3663
2005-05-11 18:57:02 +00:00
Nicholas Nethercote
bdd2546a12 Move declaration of "struct vg_mallocfunc_info" from core.h into
pub_core_replacemalloc.h, to reduce its exposure.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3662
2005-05-11 18:51:53 +00:00
Nicholas Nethercote
9a23c89fc2 Move VG_(block_signals)() to vg_scheduler.c, the only file that uses
it, and make it private.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3661
2005-05-11 18:48:33 +00:00
Tom Hughes
ba5f3c9295 Fix stabs parsing bug introduced by fix to bug 90128 which meant
that structDef() didn't always call VG_(st_setname) as it should.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3660
2005-05-11 18:44:13 +00:00
Julian Seward
8b8d9c2095 Use hi-half xmm registers (REX.R, REX.B == 1) (%xmm8-%xmm15) in an
attempt to flush out any register-number bugs that might be lurking.

It would be nice to be able to do the same with the integer registers,
but gcc-3.3.4 is too stupid to understand asms with clobbered
registers "r8d", etc (plain "r8" etc is OK) and I am too ignorant of
perl to know how to mash r8b/r8w/r8d back into plain "r8" etc for the
clobbered registers list.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3659
2005-05-11 11:57:41 +00:00
Julian Seward
9cdd95c8e3 Regression tests for amd64 instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3658
2005-05-11 11:21:29 +00:00
Julian Seward
3a455359a7 * gcc-3.3.4 seems to generate non-working code for eq_double: workaround
* fix wrong stack offset for comparisons involving %rflags
* (unused): sets of register names for reg numbers >= 8


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3657
2005-05-11 10:42:49 +00:00
Julian Seward
81ce2f37dc SSE2 tests for amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3656
2005-05-11 02:12:31 +00:00
Nicholas Nethercote
86412e892d Forgot a #include line.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3655
2005-05-10 05:00:55 +00:00
Nicholas Nethercote
da683dd528 Modularised the demangler into m_demangle. (It very nearly fit our new
module structure as-is.)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3654
2005-05-10 04:56:56 +00:00
Nicholas Nethercote
5d742b1e22 update properly
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3653
2005-05-10 04:50:05 +00:00
Nicholas Nethercote
247e241160 Modularised the core/tool interface ('details', 'needs' and VG_(tdict))
into a new module m_tooliface.  Pretty straightforward.  Touches a lot
of files because many files use this interface and so need to include
the headers for the new module.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3652
2005-05-10 04:37:01 +00:00
Nicholas Nethercote
58d0178013 Add a comment explaining the recently changed behaviour of
RUNNING_ON_VALGRIND.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3651
2005-05-10 03:01:23 +00:00
Nicholas Nethercote
e8d218412a update
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3650
2005-05-10 02:56:08 +00:00
Julian Seward
c01e895fde * test cases for amd64 SSE
* modify gen_insn_test to handle them


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3649
2005-05-10 02:49:11 +00:00