]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
21 years agoXML printing fixes for printing to file descriptors.
Julian Seward [Wed, 29 Jun 2005 23:15:56 +0000 (23:15 +0000)] 
XML printing fixes for printing to file descriptors.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4054

21 years agoWe have more than 59 allocateable regs now (duh)
Cerion Armour-Brown [Wed, 29 Jun 2005 19:05:08 +0000 (19:05 +0000)] 
We have more than 59 allocateable regs now (duh)
+ Better insn printout for altivec load/store

git-svn-id: svn://svn.valgrind.org/vex/trunk@1232

21 years agosome more isel cases: v128,f32
Cerion Armour-Brown [Wed, 29 Jun 2005 19:01:32 +0000 (19:01 +0000)] 
some more isel cases: v128,f32

git-svn-id: svn://svn.valgrind.org/vex/trunk@1231

21 years agoFixed bug in doHelperCall, passing LONG_LONG params
Cerion Armour-Brown [Wed, 29 Jun 2005 18:53:23 +0000 (18:53 +0000)] 
Fixed bug in doHelperCall, passing LONG_LONG params

git-svn-id: svn://svn.valgrind.org/vex/trunk@1230

21 years agoIt's official. I am a moron.
Julian Seward [Wed, 29 Jun 2005 17:12:28 +0000 (17:12 +0000)] 
It's official.  I am a moron.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4053

21 years agoppc32: reinstate collection of cache-line-size info from the auxv
Julian Seward [Wed, 29 Jun 2005 10:16:14 +0000 (10:16 +0000)] 
ppc32: reinstate collection of cache-line-size info from the auxv
array at startup.  This is used in m_transtab.  However this info is
not yet fed to Vex, so it's still important to zero-out the auxv field
holding cache line size info passed to the client, so as to stop the
client's glibc using dcbz.  This will be fixed.

Also get rid of a bunch more ppc32-specific vdso stuff in m_main that
doesn't need to be done.  This now means ppc32-linux specifics in
m_main are only marginally intrusive than the x86-linux or amd64-linux
specifics in m_main.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4052

21 years agoGet rid of some VDSO finding stuff which was ifdef VGP_ppc32_linux but
Julian Seward [Wed, 29 Jun 2005 08:46:30 +0000 (08:46 +0000)] 
Get rid of some VDSO finding stuff which was ifdef VGP_ppc32_linux but
apparently pointless as per recent mail from PaulM since ppc32-linux
does not use VDSOs yet.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4051

21 years agoFixed coupla altivec typos
Cerion Armour-Brown [Wed, 29 Jun 2005 07:59:18 +0000 (07:59 +0000)] 
Fixed coupla altivec typos
 - hopefully fixes FC4 build

git-svn-id: svn://svn.valgrind.org/vex/trunk@1229

21 years agoFix vg_regtests so it can properly handle alternative output filenames with
Nicholas Nethercote [Wed, 29 Jun 2005 04:02:24 +0000 (04:02 +0000)] 
Fix vg_regtests so it can properly handle alternative output filenames with
more than one numeric char at the end (eg. xml1.stderr.exp64).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4050

21 years agoAdd alt output
Nicholas Nethercote [Wed, 29 Jun 2005 03:54:09 +0000 (03:54 +0000)] 
Add alt output

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4049

21 years agoMove a heap of tests from corecheck/tests/ into none/tests/. There's
Nicholas Nethercote [Wed, 29 Jun 2005 03:46:32 +0000 (03:46 +0000)] 
Move a heap of tests from corecheck/tests/ into none/tests/.  There's
no real point in having them in corecheck/tests since they're not testing
anything that Nulgrind doesn't provide.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4048

21 years agoUpdate ignores.
Robert Walsh [Tue, 28 Jun 2005 23:41:57 +0000 (23:41 +0000)] 
Update ignores.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4047

21 years agoFix off-by-one error that was causing four leak-checking regression test
Nicholas Nethercote [Tue, 28 Jun 2005 22:38:24 +0000 (22:38 +0000)] 
Fix off-by-one error that was causing four leak-checking regression test
failures for me, and also fixes bug #106293 for me.  Let's hope it has
the same effect for others.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4046

21 years agoRemove all the completely unused SF_* flags. I suspect some of the
Nicholas Nethercote [Tue, 28 Jun 2005 22:14:53 +0000 (22:14 +0000)] 
Remove all the completely unused SF_* flags.  I suspect some of the
remaining ones have no interesting effect, but I left them in.

Also simplify the signature for VG_(get_memory_from_mmap_for_client)().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4045

21 years agoImplemented just enough of isel for an AltiVec store
Cerion Armour-Brown [Tue, 28 Jun 2005 21:07:02 +0000 (21:07 +0000)] 
Implemented just enough of isel for an AltiVec store
 - ls runs on g5 now, yay!

git-svn-id: svn://svn.valgrind.org/vex/trunk@1228

21 years agoReshuffled host-ppc32 AltiVec integer insns
Cerion Armour-Brown [Tue, 28 Jun 2005 20:59:18 +0000 (20:59 +0000)] 
Reshuffled host-ppc32 AltiVec integer insns
Added some AltiVec fp insns and CMov

git-svn-id: svn://svn.valgrind.org/vex/trunk@1227

21 years agoDon't use non-ansi features in valgrind.h in case it's used in a file
Nicholas Nethercote [Tue, 28 Jun 2005 19:44:10 +0000 (19:44 +0000)] 
Don't use non-ansi features in valgrind.h in case it's used in a file
compiled with -ansi.  Added a regtest for it.  Fixed bug #103182.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4044

21 years agoFree memory in the error case. Fixes bug #103168.
Nicholas Nethercote [Tue, 28 Jun 2005 19:20:46 +0000 (19:20 +0000)] 
Free memory in the error case.  Fixes bug #103168.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4043

21 years agoChange scope from VG_ to ML_ various assembly symbols to do with doing
Julian Seward [Tue, 28 Jun 2005 19:04:51 +0000 (19:04 +0000)] 
Change scope from VG_ to ML_ various assembly symbols to do with doing
syscalls for the client.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4042

21 years agoRemove prototype which is not of a fn exported by this module and
Julian Seward [Tue, 28 Jun 2005 18:51:35 +0000 (18:51 +0000)] 
Remove prototype which is not of a fn exported by this module and
in any case is actually a module-local fn for m_syswrap.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4041

21 years agoPPC32 AltiVec host-end framework & intruction output
Cerion Armour-Brown [Tue, 28 Jun 2005 18:06:23 +0000 (18:06 +0000)] 
PPC32 AltiVec host-end framework & intruction output
 - no fp yet

git-svn-id: svn://svn.valgrind.org/vex/trunk@1226

21 years agoPPC32 AltiVec reg offsets
Cerion Armour-Brown [Tue, 28 Jun 2005 17:30:56 +0000 (17:30 +0000)] 
PPC32 AltiVec reg offsets

git-svn-id: svn://svn.valgrind.org/vex/trunk@1225

21 years agoAltiVec insn parsing for guest end.
Cerion Armour-Brown [Tue, 28 Jun 2005 17:23:09 +0000 (17:23 +0000)] 
AltiVec insn parsing for guest end.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1224

21 years agoFix comment.
Nicholas Nethercote [Tue, 28 Jun 2005 02:54:52 +0000 (02:54 +0000)] 
Fix comment.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4040

21 years agoDon't mark segments as SF_FIXED when VKI_MAP_FIXED isn't specified.
Nicholas Nethercote [Tue, 28 Jun 2005 02:45:29 +0000 (02:45 +0000)] 
Don't mark segments as SF_FIXED when VKI_MAP_FIXED isn't specified.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4039

21 years agoComment wibble
Julian Seward [Tue, 28 Jun 2005 00:12:31 +0000 (00:12 +0000)] 
Comment wibble

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4038

21 years agoImprove handling of inlined strlen on amd64 by using the expensive
Tom Hughes [Mon, 27 Jun 2005 08:11:01 +0000 (08:11 +0000)] 
Improve handling of inlined strlen on amd64 by using the expensive
mode for 64 bit add and subtract operations when the bogus literals
flags is set and by adding two new constants to the list of bogus
literals.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4037

21 years agoWhile we're not printing stacktraces from assertion failures, might
Nicholas Nethercote [Sun, 26 Jun 2005 20:50:05 +0000 (20:50 +0000)] 
While we're not printing stacktraces from assertion failures, might
as well disable pp_sched_status() -- which produces traces that are less
useful than the main one that has been disabled -- and break the
circular dependence between m_libcassert and m_threadstate.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4036

21 years agoBreak up VG_(show_BB_profile)(), and move half of it into m_main. This
Nicholas Nethercote [Sun, 26 Jun 2005 20:44:48 +0000 (20:44 +0000)] 
Break up VG_(show_BB_profile)(), and move half of it into m_main.  This
removes m_transtab's dependence on m_translate (breaking a circular
dependence) and m_debuginfo, hooray.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4035

21 years agoCombine the percentify() functions from Cachegrind and m_transtab into
Nicholas Nethercote [Sun, 26 Jun 2005 18:43:40 +0000 (18:43 +0000)] 
Combine the percentify() functions from Cachegrind and m_transtab into
a single more general one exported from m_libcprint.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4034

21 years agoRemove empty sanity check function. And clean up sanity checking in
Nicholas Nethercote [Sun, 26 Jun 2005 17:26:22 +0000 (17:26 +0000)] 
Remove empty sanity check function.  And clean up sanity checking in
m_scheduler a little.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4033

21 years agoSimplify atfork to only provide the functionality we need.
Nicholas Nethercote [Sun, 26 Jun 2005 15:11:37 +0000 (15:11 +0000)] 
Simplify atfork to only provide the functionality we need.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4032

21 years agoDon't include headers from headers -- make inclusions explicit in all C
Nicholas Nethercote [Sun, 26 Jun 2005 14:48:23 +0000 (14:48 +0000)] 
Don't include headers from headers -- make inclusions explicit in all C
files.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4031

21 years agoKilled --libc option -- can be achieved with --hide.
Nicholas Nethercote [Sun, 26 Jun 2005 14:43:01 +0000 (14:43 +0000)] 
Killed --libc option -- can be achieved with --hide.

Now scanning .S files too.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4030

21 years agoFix 32-bit-ish looking assumption.
Julian Seward [Sun, 26 Jun 2005 11:56:32 +0000 (11:56 +0000)] 
Fix 32-bit-ish looking assumption.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4029

21 years agoCleaned up m_redir.c: renamed some variables and functions, added some
Nicholas Nethercote [Sun, 26 Jun 2005 04:49:25 +0000 (04:49 +0000)] 
Cleaned up m_redir.c:  renamed some variables and functions, added some
comments, neatened the debugging output, avoided unexpected side-effects
in functions, tweaked code to make it clearer.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4028

21 years agoIf read_lib_symbols() fails, once again discard the SegInfo.
Nicholas Nethercote [Sun, 26 Jun 2005 02:19:17 +0000 (02:19 +0000)] 
If read_lib_symbols() fails, once again discard the SegInfo.
And some other minor cleanups.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4027

21 years agoAllow multiple module names per --hide option.
Nicholas Nethercote [Sun, 26 Jun 2005 00:44:21 +0000 (00:44 +0000)] 
Allow multiple module names per --hide option.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4026

21 years agoMade m_debuginfo not depend on m_aspacemgr, breaking the direct circular
Nicholas Nethercote [Sat, 25 Jun 2005 20:49:33 +0000 (20:49 +0000)] 
Made m_debuginfo not depend on m_aspacemgr, breaking the direct circular
dependence between them.  (There's still an indirect one via m_libcmman.)

As a result, I was able to move the Segment type declaration into
pub_core_aspacemgr.h, which is a much better spot.  I was also able to
remove a couple of #includes.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4025

21 years agoAvoid m_redir.c importing priv_symtab.h.
Nicholas Nethercote [Sat, 25 Jun 2005 20:22:43 +0000 (20:22 +0000)] 
Avoid m_redir.c importing priv_symtab.h.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4024

21 years agoRemove unneeded cases from match_lib.
Nicholas Nethercote [Sat, 25 Jun 2005 20:13:05 +0000 (20:13 +0000)] 
Remove unneeded cases from match_lib.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4023

21 years agoavoid compiler warning
Nicholas Nethercote [Sat, 25 Jun 2005 19:52:02 +0000 (19:52 +0000)] 
avoid compiler warning

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4022

21 years agoRename functions to make the type involved clearer.
Nicholas Nethercote [Sat, 25 Jun 2005 19:51:33 +0000 (19:51 +0000)] 
Rename functions to make the type involved clearer.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4021

21 years agoMake the is_stage2 test work when running Valgrind in-place in a
Nicholas Nethercote [Sat, 25 Jun 2005 19:45:34 +0000 (19:45 +0000)] 
Make the is_stage2 test work when running Valgrind in-place in a
source tree.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4020

21 years agoRemove the Segment back-pointer from SegInfo. The only place it was
Nicholas Nethercote [Sat, 25 Jun 2005 19:33:50 +0000 (19:33 +0000)] 
Remove the Segment back-pointer from SegInfo.  The only place it was
being used was in resolve_redir(), and due to the way resolve_redir()
is called, the involved test was always failing anyway.  So we lose
nothing by removing it except some complexity -- there is no longer a
circularity between Segments and SegInfos.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4019

21 years agoDo not print backtraces in assertion failures. This is an as-yet
Julian Seward [Sat, 25 Jun 2005 15:22:10 +0000 (15:22 +0000)] 
Do not print backtraces in assertion failures.  This is an as-yet
unsuccessful attempt to remove m_libcassert from the huge cycle which
most of the modules currently live in.

VG_(get_StackTrace2) can now be privatised, but I haven't done so yet.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4018

21 years agoAdded some more targets to the docs.
Donna Robinson [Sat, 25 Jun 2005 14:43:05 +0000 (14:43 +0000)] 
Added some more targets to the docs.
Removed 'the' from 'the default' in 'parial' opt to be consistent
Added opt info for --avoid-strlen-errors (was missing)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4017

21 years agoA small program to read .dot files created by auxprogs/gen-mdg and
Julian Seward [Sat, 25 Jun 2005 14:42:34 +0000 (14:42 +0000)] 
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

21 years agoMoved the mman VG_(*_native)() functions into m_aspacemgr, and removed
Nicholas Nethercote [Fri, 24 Jun 2005 22:17:38 +0000 (22:17 +0000)] 
Moved the mman VG_(*_native)() functions into m_aspacemgr, and removed
the unused init_shadow_page() function.  As a result, m_aspacemgr no longer
depends on m_libcmman, breaking a circular module dependency, good!

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4015

21 years agoFix bug #107524 -- epoll_ctl does not access 'events' if it's a
Nicholas Nethercote [Fri, 24 Jun 2005 21:41:28 +0000 (21:41 +0000)] 
Fix bug #107524 -- epoll_ctl does not access 'events' if it's a
EPOLL_CTL_DEL invocation.

Also renamed our "struct epoll_event" to "struct vki_epoll_event" as it
should be called.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4014

21 years agoRemove out-of-date comments.
Nicholas Nethercote [Fri, 24 Jun 2005 15:40:01 +0000 (15:40 +0000)] 
Remove out-of-date comments.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4013

21 years agoEnabled a bunch more syscalls
Cerion Armour-Brown [Fri, 24 Jun 2005 15:26:49 +0000 (15:26 +0000)] 
Enabled a bunch more syscalls
A few simple progs make it through memcheck now - bzip2, gzip, xfontsel

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4012

21 years agoAnother "make dist" fix from Ralf Wildenhues.
Nicholas Nethercote [Fri, 24 Jun 2005 15:20:52 +0000 (15:20 +0000)] 
Another "make dist" fix from Ralf Wildenhues.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4011

21 years ago"make dist" fixes from Ralf Wildenhues.
Nicholas Nethercote [Fri, 24 Jun 2005 13:45:56 +0000 (13:45 +0000)] 
"make dist" fixes from Ralf Wildenhues.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4010

21 years agofixed sign-extension bug for branches
Cerion Armour-Brown [Fri, 24 Jun 2005 11:25:46 +0000 (11:25 +0000)] 
fixed sign-extension bug for branches

git-svn-id: svn://svn.valgrind.org/vex/trunk@1223

21 years agoMoved Robert's stack tracking code out of m_aspacemgr into a new module
Nicholas Nethercote [Fri, 24 Jun 2005 03:28:30 +0000 (03:28 +0000)] 
Moved Robert's stack tracking code out of m_aspacemgr into a new module
m_stacks, because it's a nicely distinct and stand-alone piece of
functionality.  This happily removes m_aspacemgr's dependence on
m_mallocfree (there was an apparent dependence due to the #include, even if
it didn't manifest itself in practice -- very important!) and m_options (not
so important).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4009

21 years agoBroaden a couple of suppressions so vgtest_ume passes on my machine.
Nicholas Nethercote [Fri, 24 Jun 2005 03:26:54 +0000 (03:26 +0000)] 
Broaden a couple of suppressions so vgtest_ume passes on my machine.
(I wrote this in a commit message the other day, but I'd actually
edited the generated default.supp file rather than the glibc-2.2.supp.)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4008

21 years agoDisable i-am-kludged messages in the cache control insns.
Julian Seward [Thu, 23 Jun 2005 22:38:45 +0000 (22:38 +0000)] 
Disable i-am-kludged messages in the cache control insns.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1222

21 years agoDisable debug printing by default so we have any hope of getting
Julian Seward [Thu, 23 Jun 2005 22:37:56 +0000 (22:37 +0000)] 
Disable debug printing by default so we have any hope of getting
regtest passes on ppc32-linux.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4007

21 years agoKludge up wait_for_gdb even more.
Julian Seward [Thu, 23 Jun 2005 21:37:47 +0000 (21:37 +0000)] 
Kludge up wait_for_gdb even more.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4006

21 years agoDisable dangerous case in advance4 which is not currently needed.
Julian Seward [Thu, 23 Jun 2005 21:14:45 +0000 (21:14 +0000)] 
Disable dangerous case in advance4 which is not currently needed.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1221

21 years agoAdded some targets for massif & core options
Donna Robinson [Thu, 23 Jun 2005 15:30:31 +0000 (15:30 +0000)] 
Added some targets for massif & core options

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4005

21 years agoAdded DivU32,DivS32 to memcheck translation (lazy)
Cerion Armour-Brown [Thu, 23 Jun 2005 15:28:34 +0000 (15:28 +0000)] 
Added DivU32,DivS32 to memcheck translation (lazy)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4004

21 years agoAdded isel Ist_Tmp:Ity_I64, iselInt64Expr::Iex_Get
Cerion Armour-Brown [Thu, 23 Jun 2005 15:25:57 +0000 (15:25 +0000)] 
Added isel Ist_Tmp:Ity_I64, iselInt64Expr::Iex_Get
Allowed 64-bit args for doHelperCall()

git-svn-id: svn://svn.valgrind.org/vex/trunk@1220

21 years ago... and write 64bit vals the right way around...
Cerion Armour-Brown [Thu, 23 Jun 2005 12:45:11 +0000 (12:45 +0000)] 
... and write 64bit vals the right way around...

git-svn-id: svn://svn.valgrind.org/vex/trunk@1219

21 years agoAdded to insn selector: CmpNEZ8, Ist_Put::Ity_I64
Cerion Armour-Brown [Thu, 23 Jun 2005 11:00:14 +0000 (11:00 +0000)] 
Added to insn selector: CmpNEZ8, Ist_Put::Ity_I64

git-svn-id: svn://svn.valgrind.org/vex/trunk@1218

21 years agoFix ppc32 'Call' bug
Cerion Armour-Brown [Thu, 23 Jun 2005 08:44:52 +0000 (08:44 +0000)] 
Fix ppc32 'Call' bug
 - was (very) incorrectly jumping over the call on cond failure

git-svn-id: svn://svn.valgrind.org/vex/trunk@1217

21 years agoVG_() -> ML() for ppc32, amd64
Cerion Armour-Brown [Thu, 23 Jun 2005 07:52:54 +0000 (07:52 +0000)] 
VG_() -> ML() for ppc32, amd64
(plus a few scattered ones in comments etc)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4003

21 years agoRemoved the VGA_/VGO_/VGP_ prefixes for arch/OS/platform-specific
Nicholas Nethercote [Thu, 23 Jun 2005 03:27:57 +0000 (03:27 +0000)] 
Removed the VGA_/VGO_/VGP_ prefixes for arch/OS/platform-specific
things.  These made sense when the arch/OS/platform-specific code was in
one module, but as that code got mixed in with generic code the boundary
between generic and non-generic blurred, and the distinction made less
sense.  So let's get rid of them.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4002

21 years agoRemoved some repetition in the way VG_(record_fd_open)() is called.
Nicholas Nethercote [Thu, 23 Jun 2005 02:26:47 +0000 (02:26 +0000)] 
Removed some repetition in the way VG_(record_fd_open)() is called.
As part of this, VG_(resolve_filename)() no longer calls VG_(malloc)()
and so m_libcfile no longer depends on m_mallocfree.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4001

21 years agoFor symbols which have C-level global scope but which we regard as
Julian Seward [Thu, 23 Jun 2005 01:02:53 +0000 (01:02 +0000)] 
For symbols which have C-level global scope but which we regard as
module-local, use the new ML_ prefix instead of VG_.  This makes it
trivial to see which names are those exported from public module
interfaces: precisely those using VG_.

/* VG_ is for symbols exported from modules.  ML_ (module-local) is
   for symbols which are not intended to be visible outside modules,
   but which cannot be declared as C 'static's since they need to be
   visible across C files within a given module.  It is a mistake for
   a ML_ name to appear in a pub_core_*.h or pub_tool_*.h file.
   Likewise it is a mistake for a VG_ name to appear in a priv_*.h
   file.
*/

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4000

21 years agoargh! there were loads of the little beggars ....
Donna Robinson [Thu, 23 Jun 2005 00:17:51 +0000 (00:17 +0000)] 
argh! there were loads of the little beggars ....

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3999

21 years agoRemoved ante-deluvian file
Donna Robinson [Wed, 22 Jun 2005 23:49:00 +0000 (23:49 +0000)] 
Removed ante-deluvian file

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3998

21 years agoI forgot to remove this a while back.
Nicholas Nethercote [Wed, 22 Jun 2005 18:38:41 +0000 (18:38 +0000)] 
I forgot to remove this a while back.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3997

21 years agoDeclare my_sigreturn as static. This is correct in so much as it isn't
Tom Hughes [Wed, 22 Jun 2005 12:11:42 +0000 (12:11 +0000)] 
Declare my_sigreturn as static. This is correct in so much as it isn't
used anywhere else, but it does cause gcc to issue a warning because
it doesn't realised that the assembly code has defined the function.

The reason for changing it to static despite the warning is that when
it is declared extern PIE builds break on amd64 because gcc generates
code that does a load from the address of the my_sigreturn symbol to
get address of the function instead of just computing the address of
the symbol. In other words it generates this:

  mov -212(%rip), %rax

to get the address of the function instead of this:

  lea -212(%rip), %rax

Obviously this breaks things because we store the wrong address as
the signal restorer when installing the signal handler...

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3996

21 years agoRemove VG_(getcwd_alloc)(), which can be done otherwise pretty easily.
Nicholas Nethercote [Tue, 21 Jun 2005 23:44:58 +0000 (23:44 +0000)] 
Remove VG_(getcwd_alloc)(), which can be done otherwise pretty easily.
This halves m_libcfile's dependence on m_mallocfree.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3995

21 years agoMake search_all_symtabs() work in the same way as search_all_loctabs()
Nicholas Nethercote [Tue, 21 Jun 2005 23:09:45 +0000 (23:09 +0000)] 
Make search_all_symtabs() work in the same way as search_all_loctabs()
and search_all_scopetabs(), ie. search through SegInfos instead of Segments.
This reduces m_debuginfo's dependency on m_aspacemgr.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3994

21 years agoAdded VG_() prefixes to functions exported from m_ume to avoid
Nicholas Nethercote [Tue, 21 Jun 2005 23:03:36 +0000 (23:03 +0000)] 
Added VG_() prefixes to functions exported from m_ume to avoid
namespace pollution.

Also broadened a couple of _dl_* suppressions so that vgtest_ume
passes on my machine.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3993

21 years agoRename ume.c/ume.h as m_ume.c/pub_core_ume.h to be consistent with
Nicholas Nethercote [Tue, 21 Jun 2005 22:47:54 +0000 (22:47 +0000)] 
Rename ume.c/ume.h as m_ume.c/pub_core_ume.h to be consistent with
all the other modules.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3992

21 years agoMove VG_(resume_scheduler) to m_signals, and make it local. Reduces
Nicholas Nethercote [Tue, 21 Jun 2005 22:27:19 +0000 (22:27 +0000)] 
Move VG_(resume_scheduler) to m_signals, and make it local.  Reduces
m_signals' dependence on m_scheduler.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3991

21 years agoMove VKI_SIGVGKILL and VKI_SIGVGRTUSERMAX out of vki-linux.h since they're
Nicholas Nethercote [Tue, 21 Jun 2005 22:23:59 +0000 (22:23 +0000)] 
Move VKI_SIGVGKILL and VKI_SIGVGRTUSERMAX out of vki-linux.h since they're
not really from the kernel and they're defined in terms of VG_(max_signal),
which is in m_signals.  Renamed them with the VG_ prefix too, since they're
now not part of the kernel interface.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3990

21 years agoamd64 back end: handle 8Uto32.
Julian Seward [Tue, 21 Jun 2005 13:51:18 +0000 (13:51 +0000)] 
amd64 back end: handle 8Uto32.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1216

21 years agoRedirect the correct address to the vtime vsyscall instead of
Tom Hughes [Tue, 21 Jun 2005 13:26:17 +0000 (13:26 +0000)] 
Redirect the correct address to the vtime vsyscall instead of
redirecting the vgettimofday address to two different places.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3989

21 years agoFix bug causing TINVALs to throw away huge numbers of translations
Julian Seward [Tue, 21 Jun 2005 12:52:38 +0000 (12:52 +0000)] 
Fix bug causing TINVALs to throw away huge numbers of translations
unnecessarily.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3988

21 years agoppc32-linux build fix.
Julian Seward [Tue, 21 Jun 2005 10:11:36 +0000 (10:11 +0000)] 
ppc32-linux build fix.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3987

21 years agoGet ppc32 stage2 linked in the right place, so stage2 can actually start.
Julian Seward [Tue, 21 Jun 2005 10:07:25 +0000 (10:07 +0000)] 
Get ppc32 stage2 linked in the right place, so stage2 can actually start.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3986

21 years agoUn-break the build on ppc32-linux. This whole multiplatform
Julian Seward [Tue, 21 Jun 2005 09:56:56 +0000 (09:56 +0000)] 
Un-break the build on ppc32-linux.  This whole multiplatform
development deal is much more fragile than single-platform ..

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3985

21 years agowibble
Nicholas Nethercote [Tue, 21 Jun 2005 04:26:24 +0000 (04:26 +0000)] 
wibble

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3984

21 years agoMoved VG_(first_matching_thread_stack), removing m_threadstate's dependency
Nicholas Nethercote [Tue, 21 Jun 2005 04:01:51 +0000 (04:01 +0000)] 
Moved VG_(first_matching_thread_stack), removing m_threadstate's dependency
on m_machine.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3983

21 years agoSlight reduce m_syswrap's dependence on m_signals by moving
Nicholas Nethercote [Tue, 21 Jun 2005 03:52:49 +0000 (03:52 +0000)] 
Slight reduce m_syswrap's dependence on m_signals by moving
VG_(client_signal_OK)().

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3982

21 years agoRemove redundancy.
Nicholas Nethercote [Tue, 21 Jun 2005 03:36:01 +0000 (03:36 +0000)] 
Remove redundancy.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3981

21 years agoAttempt to fix the stage2.lds borkage.
Nicholas Nethercote [Tue, 21 Jun 2005 03:30:51 +0000 (03:30 +0000)] 
Attempt to fix the stage2.lds borkage.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3980

21 years agoMalloc replacement worked very much like a 'need', but wasn't one.
Nicholas Nethercote [Tue, 21 Jun 2005 03:20:17 +0000 (03:20 +0000)] 
Malloc replacement worked very much like a 'need', but wasn't one.
I've changed it so it now is, which makes it consistent with the
other 'needs'.  Because of this, I was also able to invert the dependence
between m_mallocfree and m_tooliface, which is related to setting
the redzone size for client heap blocks.  As a result, m_tooliface
now doesn't depend on anything except pub_core_basics.h, hooray!

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3979

21 years agoTweaked m_tooliface to reduce its dependencies on other things:
Nicholas Nethercote [Tue, 21 Jun 2005 01:54:38 +0000 (01:54 +0000)] 
Tweaked m_tooliface to reduce its dependencies on other things:

- VG_(sanity_check_needs)() now returns a message to m_main if it fails,
  for m_main to print and abort, rather than printing an error message and
  aborting itself.  This removes the dependency on m_libcprint and
  m_libcassert.

- Passing in an extra param to VG_(sanity_check_needs)() that says if
  shadow memory has been allocated, rather than using
  VG_(get_shadow_size)().  This removes the dependency on m_aspacemgr.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3978

21 years agoSimplify the implementation of m_trampoline and the stuff that refers
Julian Seward [Tue, 21 Jun 2005 01:41:34 +0000 (01:41 +0000)] 
Simplify the implementation of m_trampoline and the stuff that refers
to it.  Now there are no more offsets and no copying of code into the
stack.  We just redirect directly to entry points in m_syscalls.S.

This will mess up pointercheck, since the redirect targets are now in
Valgrind's address space, not the client's.  But pointercheck is hosed
anyway, and I'd rather back off to something simple whilst ppc32 is
stabilised.  When the address space management stuff is overhauled
then pointercheck may or may not get reinstated, and if it does then
the trampoline stuff will need revisiting.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3977

21 years agoDon't #include pub_core_stacktrace.h in pub_core_execontext.h. So
Nicholas Nethercote [Tue, 21 Jun 2005 00:33:19 +0000 (00:33 +0000)] 
Don't #include pub_core_stacktrace.h in pub_core_execontext.h.  So
a few places have to #include pub_core_stacktrace.h themselves, but
that's ok because explicit is better.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3976

21 years agoturn off debugging output
Nicholas Nethercote [Tue, 21 Jun 2005 00:28:43 +0000 (00:28 +0000)] 
turn off debugging output

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3975

21 years agoDon't #include pub_core_debuginfo.h in pub_core_aspacemgr.h. So have
Nicholas Nethercote [Tue, 21 Jun 2005 00:28:11 +0000 (00:28 +0000)] 
Don't #include pub_core_debuginfo.h in pub_core_aspacemgr.h.  So have
to #include it explicitly in lots of other places, but at least the
dependency is clear now.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3974

21 years agoMove typedef to a better spot.
Nicholas Nethercote [Tue, 21 Jun 2005 00:07:13 +0000 (00:07 +0000)] 
Move typedef to a better spot.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3973

21 years agoTweak comments and remove an unnecessary #include.
Nicholas Nethercote [Mon, 20 Jun 2005 23:58:15 +0000 (23:58 +0000)] 
Tweak comments and remove an unnecessary #include.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3972