]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
22 years ago--> 1.9.6 svn/VALGRIND_2_0_BRANCH
Julian Seward [Mon, 5 May 2003 22:27:34 +0000 (22:27 +0000)] 
--> 1.9.6

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1623

22 years agoMerge rev 1.41:
Julian Seward [Mon, 5 May 2003 22:26:52 +0000 (22:26 +0000)] 
Merge rev 1.41:

Merge patch from JosefW:

Hi,

recently I found that there is sometimes cost attributed to some
strange lines (with cachegrind/calltree) with GCC 3.x (using the
DWARF2 debug info format).

I had time to look at this. There is a bug in the DWARF2 debug line
info loader when instructions following each other have source lines
far from each other (e.g. with inlined functions).

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1622

22 years agoMerge rev 1.4 (final changes for 1.9.6)
Julian Seward [Mon, 5 May 2003 22:24:19 +0000 (22:24 +0000)] 
Merge rev 1.4 (final changes for 1.9.6)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1621

22 years agoMerge rev 1.7 (final changes for 1.9.6)
Julian Seward [Mon, 5 May 2003 22:23:20 +0000 (22:23 +0000)] 
Merge rev 1.7 (final changes for 1.9.6)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1620

22 years ago--> 1.9.6pre1
Julian Seward [Mon, 5 May 2003 01:08:03 +0000 (01:08 +0000)] 
--> 1.9.6pre1

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1610

22 years agoMerge rev 1.3 (changes for 1.9.6)
Julian Seward [Mon, 5 May 2003 01:05:40 +0000 (01:05 +0000)] 
Merge rev 1.3 (changes for 1.9.6)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1609

22 years agoMerge rev 1.28:
Julian Seward [Mon, 5 May 2003 00:17:30 +0000 (00:17 +0000)] 
Merge rev 1.28:

Added syscall creat(), courtesy of Tom Hughes <thh@cyberscience.com>.

Weird that it's never come up before, everyone must use open() in preference.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1606

22 years agoMerge revs 1.7 and 1.8, which have the effect of adding
Julian Seward [Mon, 5 May 2003 00:15:51 +0000 (00:15 +0000)] 
Merge revs 1.7 and 1.8, which have the effect of adding
valgrind-listener to some list or other.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1605

22 years agoMerge rev 1.32:
Julian Seward [Mon, 5 May 2003 00:12:40 +0000 (00:12 +0000)] 
Merge rev 1.32:

Minor fix for lookup_dcookie

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1604

22 years agoMerge rev 1.31:
Julian Seward [Mon, 5 May 2003 00:11:44 +0000 (00:11 +0000)] 
Merge rev 1.31:

Fixed some syscalls a little bit:

 - getcwd() now uses the result for the post_mem_write length rather than
   the argument, which would have over-estimated

 - accept(), recvfrom() and getsockopt() can now all take NULL buffers (which
   are quite legitimate) without Memcheck giving spurious errors

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1603

22 years agoMerge rev 1.16:
Julian Seward [Mon, 5 May 2003 00:09:41 +0000 (00:09 +0000)] 
Merge rev 1.16:

Couple of minor fixes:
  - don't keel over if run on an empty file
  - abort if the "summary:" line is missing;  previously it gave a warning
    and tried to keep going but then other things broke.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1602

22 years agoMerge rev 1.30:
Julian Seward [Mon, 5 May 2003 00:08:21 +0000 (00:08 +0000)] 
Merge rev 1.30:

Add __NR_prctl.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1601

22 years agoMerge rev 1.41:
Julian Seward [Mon, 5 May 2003 00:06:43 +0000 (00:06 +0000)] 
Merge rev 1.41:

report_and_quit: Tell people to look at the FAQ.txt for advice.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1600

22 years agoMerge rev 1.89:
Julian Seward [Mon, 5 May 2003 00:05:15 +0000 (00:05 +0000)] 
Merge rev 1.89:

Don't call VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH) if all we're doing
is exiting normally.  There's no point, and it causes breakage when
programs which write their environment variables, finish normally.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1599

22 years agoMerge rev 1.88:
Julian Seward [Mon, 5 May 2003 00:03:43 +0000 (00:03 +0000)] 
Merge rev 1.88:

Support kernels >= 2.5.68 (Anders Gustafsson <andersg@0x63.nu>)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1598

22 years agoMerge rev 1.29:
Julian Seward [Mon, 5 May 2003 00:02:29 +0000 (00:02 +0000)] 
Merge rev 1.29:

Add __NR_lookup_dcookie, whatever that might be.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1597

22 years agoMerge rev 1.40:
Julian Seward [Mon, 5 May 2003 00:00:41 +0000 (00:00 +0000)] 
Merge rev 1.40:

Merge patch from Josef Weidendorfer <Josef.Weidendorfer@gmx.de>:

Read symbols from both "symtab" and "dynsym" sections, rather than
merely from the one that comes last in the file.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1596

22 years agoMerge revs:
Julian Seward [Sun, 4 May 2003 23:58:54 +0000 (23:58 +0000)] 
Merge revs:
   valgrind/coregrind vg_libpthread.c,1.122,1.123
                      vg_libpthread_unimp.c,1.39,1.40

Add possibly-bogus implementations for __libc_current_sigrtmin,
__libc_current_sigrtmax and __libc_allocate_rtsig.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1595

22 years agoMerge revs
Julian Seward [Sun, 4 May 2003 23:56:47 +0000 (23:56 +0000)] 
Merge revs
   valgrind/include   vg_constants_skin.h,1.4,1.5
   valgrind/coregrind vg_include.h,1.122,1.123
                      vg_intercept.c,1.11,1.13
                      vg_libpthread.c,1.121,1.122

Fix threading problems on glibc-2.3.2 or later.  Note this is *not*
NPTL support.

The behaviour of weak vs strong symbols seems to have changed in
glibc-2.3.2.  This caused problems in coregrind/vg_intercept.c,
wherein strong symbols in vg_libpthread.c were intended to
override weak symbols in vg_intercept.c, in order to give alternative
thread-safe implementations of some functions, poll(), select(), etc.

The change involves moving the nonblocking implementations of poll, etc
into vg_intercept.c, renaming them to (eg)  VGR_(poll), and routing
all calls to poll to VGR_(poll) [dually for other such fns].  This
means even single-threaded programs now use these functions, but
that doesn't strike me as harmful.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1594

22 years agoMerge revs
Julian Seward [Sun, 4 May 2003 23:33:59 +0000 (23:33 +0000)] 
Merge revs
    valgrind/coregrind vg_include.h,1.121,1.122
                       vg_main.c,1.86,1.87
                       vg_scheduler.c,1.117,1.118:

Record the correct address of the initial thread's stack, as determined
by the initial scan of /proc/self/maps, so that we correctly identify
addresses in it.  This fix is thanks to Dirk Mueller.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1593

22 years agoMerge rev 1.125:
Julian Seward [Sun, 4 May 2003 23:11:59 +0000 (23:11 +0000)] 
Merge rev 1.125:

Fix interception of pthread_atfork with glibc-2.3.2.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1592

22 years agoMerge rev 1.129:
Julian Seward [Sun, 4 May 2003 23:07:59 +0000 (23:07 +0000)] 
Merge rev 1.129:

Increase  VG_N_CLEANUPSTACK  to 16.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1591

22 years agoMerge revs
Julian Seward [Sun, 4 May 2003 23:06:29 +0000 (23:06 +0000)] 
Merge revs
valgrind/coregrind vg_include.h,1.127,1.128
                   vg_memory.c,1.37,1.38
                   vg_scheduler.c,1.121,1.122
                   vg_transtab.c,1.20,1.21

Unchain translations when doing VALGRIND_DISCARD_TRANSLATIONS.  Otherwise
the tt/tc are left in an inconsistent state afterwards.  (Adam Gundy
<arg@cyberscience.com>)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1590

22 years agoInclude FAQ.txt in the distro. (Partial merge of rev 1.45)
Julian Seward [Sun, 4 May 2003 22:55:58 +0000 (22:55 +0000)] 
Include FAQ.txt in the distro.  (Partial merge of rev 1.45)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1589

22 years agoThis commit was manufactured by cvs2svn to create branch
no author [Sat, 26 Apr 2003 22:23:35 +0000 (22:23 +0000)] 
This commit was manufactured by cvs2svn to create branch
'VALGRIND_2_0_BRANCH'.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1566

22 years agoDocument in the source distro, the changes between versions, for the
Julian Seward [Mon, 7 Apr 2003 22:37:22 +0000 (22:37 +0000)] 
Document in the source distro, the changes between versions, for the
benefit of users.  It's stupid not to.

MERGE TO STABLE

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1515

22 years ago---> 1.9.5
Julian Seward [Mon, 7 Apr 2003 22:11:42 +0000 (22:11 +0000)] 
---> 1.9.5

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1514

22 years agoDelete the NPTL test program after use.
Julian Seward [Mon, 7 Apr 2003 22:11:16 +0000 (22:11 +0000)] 
Delete the NPTL test program after use.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1513

22 years agoMerge in a minimal set of patches needed to make it sort-of work
Julian Seward [Mon, 7 Apr 2003 21:25:51 +0000 (21:25 +0000)] 
Merge in a minimal set of patches needed to make it sort-of work
on Red Hat 9.

valgrind/helgrind hg_main.c,1.46,1.47
valgrind/memcheck mc_main.c,1.26,1.27
valgrind/addrcheck ac_main.c,1.31,1.32
valgrind/coregrind valgrind.in,1.21,1.22
                   vg_include.h,1.114,1.115
                   vg_kerneliface.h,1.20,1.21
                   vg_main.c,1.77,1.78
                   vg_memory.c,1.32,1.33
valgrind/coregrind valgrind.in,1.23,1.24
valgrind configure.in,1.79,1.80

A minimal set of changes to make it work on Red Hat 9, at least in the
interim.  All hats off to Graydon Hoare for this, plus to whoever
devised the LD_ASSUME_KERNEL trapdoor.

This does not provide NPTL support.  Instead it turns out we can ask
for the old LinuxThreads interface to be used (wonderful!)

Other than that we have to deal with kernels with SYSINFO pages at the
top of memory.  No big deal, apparently.

--------------

Add and use a configure test to determine if this is an NPTL based
system.  Hopefully this will allow it to build out of the box and
(sort-of) work on RH9.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1512

22 years agoMerge rev 1.26: (note, original commit msg was wrong; 151 is
Julian Seward [Thu, 3 Apr 2003 22:36:47 +0000 (22:36 +0000)] 
Merge rev 1.26: (note, original commit msg was wrong; 151 is
munlock, not munlockall).

Support __NR_munlockall (syscall 151).

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1505

22 years agoMerge rev 1.112:
Julian Seward [Thu, 3 Apr 2003 22:29:32 +0000 (22:29 +0000)] 
Merge rev 1.112:

Add a fix for this

   vg_scheduler.c:732 (cleanup_waiting_fd_table):
      Assertion `waiters == 1' failed.

from monty@mysql.com.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1503

22 years agoMerge rev 1.42
Julian Seward [Thu, 3 Apr 2003 22:12:26 +0000 (22:12 +0000)] 
Merge rev 1.42

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1501

22 years agoMerge rev 1.3:
Julian Seward [Thu, 3 Apr 2003 22:11:04 +0000 (22:11 +0000)] 
Merge rev 1.3:

Document renaming of valgrind.h to memcheck.h.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1500

22 years agoMerge revs
Julian Seward [Thu, 3 Apr 2003 21:56:34 +0000 (21:56 +0000)] 
Merge revs

   coregrind/docs/coregrind_skins.html,1.3,1.4
                  coregrind_intro.html,1.3,1.4

Documentation changes only.

Added a couple of links to the "Valgrind skins" doc, because there were none.

Added a section "suggested skins" in the "Valgrind skins" doc, just in case it
inspires anyone in user-land.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1497

22 years agoMerge rev 1.41:
Julian Seward [Thu, 3 Apr 2003 21:53:56 +0000 (21:53 +0000)] 
Merge rev 1.41:

Documentation changes only.

Added a couple of links to the "Valgrind skins" doc, because there were none.

Added a section "suggested skins" in the "Valgrind skins" doc, just in case it
inspires anyone in user-land.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1496

22 years agoMerge rev 1.42:
Julian Seward [Thu, 3 Apr 2003 21:46:50 +0000 (21:46 +0000)] 
Merge rev 1.42:

Fix a bug to do with lazy eflags updating and FPU insns.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1495

22 years agoMerge rev 1.17 (suppressions for SuSE 8.2).
Julian Seward [Sun, 16 Mar 2003 11:00:41 +0000 (11:00 +0000)] 
Merge rev 1.17 (suppressions for SuSE 8.2).

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1481

22 years ago--> 1.9.5pre
Julian Seward [Sun, 16 Mar 2003 01:47:42 +0000 (01:47 +0000)] 
--> 1.9.5pre

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1479

22 years agoMerge rev 1.40.
Julian Seward [Sun, 16 Mar 2003 01:36:35 +0000 (01:36 +0000)] 
Merge rev 1.40.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1478

22 years agoMerge rev 1.3.
Julian Seward [Sun, 16 Mar 2003 01:35:39 +0000 (01:35 +0000)] 
Merge rev 1.3.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1477

22 years agoMerge rev 1.12.
Julian Seward [Sun, 16 Mar 2003 01:33:21 +0000 (01:33 +0000)] 
Merge rev 1.12.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1476

22 years agoMerge rev 1.36.
Julian Seward [Sun, 16 Mar 2003 01:32:30 +0000 (01:32 +0000)] 
Merge rev 1.36.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1475

22 years agoMerge rev 1.111.
Julian Seward [Sun, 16 Mar 2003 01:31:57 +0000 (01:31 +0000)] 
Merge rev 1.111.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1474

22 years agoMerge rev 1.120.
Julian Seward [Sun, 16 Mar 2003 01:31:18 +0000 (01:31 +0000)] 
Merge rev 1.120.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1473

22 years agoMerge rev 1.9.
Julian Seward [Sun, 16 Mar 2003 01:30:29 +0000 (01:30 +0000)] 
Merge rev 1.9.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1472

22 years agoMerge rev 1.14.
Julian Seward [Sun, 16 Mar 2003 01:29:57 +0000 (01:29 +0000)] 
Merge rev 1.14.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1471

22 years agoMerge rev 1.2.
Julian Seward [Sun, 16 Mar 2003 01:29:05 +0000 (01:29 +0000)] 
Merge rev 1.2.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1470

22 years agoMerge rev 1.32.
Julian Seward [Sun, 16 Mar 2003 01:28:00 +0000 (01:28 +0000)] 
Merge rev 1.32.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1469

22 years agoMerge rev 1.114.
Julian Seward [Sun, 16 Mar 2003 01:20:28 +0000 (01:20 +0000)] 
Merge rev 1.114.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1468

22 years agoMerge rev 1.8.
Julian Seward [Sun, 16 Mar 2003 01:19:04 +0000 (01:19 +0000)] 
Merge rev 1.8.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1467

22 years agoMerge rev 1.11.
Julian Seward [Sun, 16 Mar 2003 01:18:32 +0000 (01:18 +0000)] 
Merge rev 1.11.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1466

22 years agoMerge rev 1.3.
Julian Seward [Sun, 16 Mar 2003 01:17:53 +0000 (01:17 +0000)] 
Merge rev 1.3.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1465

22 years agoMerge rev 1.7.
Julian Seward [Sun, 16 Mar 2003 01:17:08 +0000 (01:17 +0000)] 
Merge rev 1.7.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1464

22 years agoMerge rev 1.10.
Julian Seward [Sun, 16 Mar 2003 01:16:18 +0000 (01:16 +0000)] 
Merge rev 1.10.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1463

22 years agoMerge rev 1.2.
Julian Seward [Sun, 16 Mar 2003 01:15:18 +0000 (01:15 +0000)] 
Merge rev 1.2.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1462

22 years agoMerge revs 1.5 and 1.6 (stuff to do with profiling valgrind itself)
Julian Seward [Sat, 15 Mar 2003 18:42:03 +0000 (18:42 +0000)] 
Merge revs 1.5 and 1.6 (stuff to do with profiling valgrind itself)

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1455

22 years agoMerge rev 1.8:
Julian Seward [Sat, 15 Mar 2003 18:39:57 +0000 (18:39 +0000)] 
Merge rev 1.8:

vg_profile.c, which is #included by skins that want to profile, was using some
core only functions (vg_assert and VG_(core_panic)), which screwed things up.
Replaced them with the skin versions.  I don't know how this ever worked.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1454

22 years agoThis commit was manufactured by cvs2svn to create branch
no author [Sat, 15 Mar 2003 18:39:57 +0000 (18:39 +0000)] 
This commit was manufactured by cvs2svn to create branch
'VALGRIND_2_0_BRANCH'.

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_0_BRANCH@1453

22 years agoRequire automake >= 1.5, as suggested by Dirk Mueller.
Julian Seward [Sat, 1 Mar 2003 01:26:55 +0000 (01:26 +0000)] 
Require automake >= 1.5, as suggested by Dirk Mueller.

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

22 years agoChange a bunch of AM_CFLAGS, AM_CXXFLAGS to CFLAGS, CXXFLAGS.
Julian Seward [Fri, 28 Feb 2003 23:22:44 +0000 (23:22 +0000)] 
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

22 years agoAdded a stderr filter for new_override, that removes the exact numbers for
Nicholas Nethercote [Wed, 26 Feb 2003 10:16:02 +0000 (10:16 +0000)] 
Added a stderr filter for new_override, that removes the exact numbers for
malloc, because different glibc versions seem to allocate different amounts of
memory.

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

22 years agoMake CXXFLAGS be the same as AM_CXXFLAGS, so the correct options are
Julian Seward [Tue, 25 Feb 2003 23:49:46 +0000 (23:49 +0000)] 
Make CXXFLAGS be the same as AM_CXXFLAGS, so the correct options are
used to build the regression tests.  I don't know if this is really
the correct way to fix this problem.  I don't understand why
AM_CXXFLAGS aren't used by default for C++, seeing as how AM_CFLAGS
evidently are used for C sources.

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

22 years agodon't delete it too early
Dirk Mueller [Tue, 25 Feb 2003 11:52:52 +0000 (11:52 +0000)] 
don't delete it too early

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

22 years agofix make distcheck with newer automake
Dirk Mueller [Tue, 25 Feb 2003 01:48:15 +0000 (01:48 +0000)] 
fix make distcheck with newer automake

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

22 years agoAdded a regression test that checks if command line arguments with spaces work.
Nicholas Nethercote [Mon, 24 Feb 2003 22:05:38 +0000 (22:05 +0000)] 
Added a regression test that checks if command line arguments with spaces work.

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

22 years agoUndo rev 1.78, which I committed by accident. Duh.
Julian Seward [Mon, 24 Feb 2003 21:59:31 +0000 (21:59 +0000)] 
Undo rev 1.78, which I committed by accident.  Duh.

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

22 years ago o I fixed a small bug: the code in coregrind/vg_syscalls.c seems
Julian Seward [Mon, 24 Feb 2003 21:55:34 +0000 (21:55 +0000)] 
  o  I fixed a small bug:  the code in coregrind/vg_syscalls.c seems
     to assume that all sockaddrs are non-NULL and non-zero in
     length.  This isn't always true, and when I ran a program that
     used a NULL sockaddr through Valgrind it segfaulted.  I believe
     that the change that I made fixes this bug in general, but I
     might be overlooking something.

From kclark@CetaceanNetworks.com (Kevin D. Clark)

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

22 years agoChange the recently added VG_(memcmp) to use UChars instead of Chars.
Nicholas Nethercote [Mon, 24 Feb 2003 21:43:05 +0000 (21:43 +0000)] 
Change the recently added VG_(memcmp) to use UChars instead of Chars.

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

22 years agoFixes handling of parameters with spaces in, and misc other
Julian Seward [Mon, 24 Feb 2003 21:42:53 +0000 (21:42 +0000)] 
Fixes handling of parameters with spaces in, and misc other
magic hacks from Nick.

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

22 years agoSupport for glibc-2.3.X. (from Stephan Kulow)
Julian Seward [Mon, 24 Feb 2003 21:24:41 +0000 (21:24 +0000)] 
Support for glibc-2.3.X.  (from Stephan Kulow)

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

22 years ago[Julian, you might like to check these changes]
Nicholas Nethercote [Mon, 24 Feb 2003 10:49:08 +0000 (10:49 +0000)] 
[Julian, you might like to check these changes]

Fixed demangler bug -- it was relying on glibc for some functions.  This
triggered an incredibly obscure bug in my experimental skin -- memcpy() was
called within the demangler at (about?) the same time as the dynamic linker was
fiddling with the memcpy() entry, which caused one word of memory (probably
some counter in the dynamic linker) to be incremented, which my skin didn't
like.

So I removed all (AFAICT) of the demangler's dependencies on glibc.  This
required adding macros for memset, memcpy, strlen, strcmp..., to replace them
with their VG_(...) version.  The only #includes now are to .h files that are
part of Valgrind.

Also required #defining "size_t" as "Int".

Also required adding VG_(memcmp)() to vg_mylibc.c.

Also removed the "-1 == EOF" part of the compile-time test in safe-ctype.h
that checks the character set is ASCII.  This was to remove the dependency
on stdio.h.  Slightly dodgy, but should be ok I think/hope.

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

22 years agoAdded two new events: pre_deliver_signal and post_deliver_signal.
Nicholas Nethercote [Mon, 24 Feb 2003 10:42:47 +0000 (10:42 +0000)] 
Added two new events: pre_deliver_signal and post_deliver_signal.

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

22 years agoAdded two new events: pre_deliver_signal and post_deliver_signal.
Nicholas Nethercote [Mon, 24 Feb 2003 10:36:48 +0000 (10:36 +0000)] 
Added two new events: pre_deliver_signal and post_deliver_signal.

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

22 years agoAdded a useful skin instrumentation function.
Nicholas Nethercote [Mon, 24 Feb 2003 10:32:51 +0000 (10:32 +0000)] 
Added a useful skin instrumentation function.

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

22 years agoIncreased maximum number of non-compact helpers.
Nicholas Nethercote [Mon, 24 Feb 2003 10:21:45 +0000 (10:21 +0000)] 
Increased maximum number of non-compact helpers.

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

22 years ago Initial rough hack to spot the stack segment at startup by looking
Julian Seward [Sun, 23 Feb 2003 03:54:59 +0000 (03:54 +0000)] 
   Initial rough hack to spot the stack segment at startup by looking
   for a rwx mapping which contains the startup %esp.

Might be better to look for just rw-.  Stack might not be executable
if there's a noexec patch, and x86-64 actually enforces the x bit
distinctly from r.

--> Look for just rw-.

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

22 years agoFix comment bug.
Julian Seward [Sun, 23 Feb 2003 03:40:03 +0000 (03:40 +0000)] 
Fix comment bug.

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

22 years agoMake poll() return (errno==EINTR) if the poll is interrupted by a signal.
Julian Seward [Sun, 23 Feb 2003 03:37:58 +0000 (03:37 +0000)] 
Make poll() return (errno==EINTR) if the poll is interrupted by a signal.

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

22 years agoHopefully deal with system 252 (__NR_exit_group) correctly.
Julian Seward [Sun, 23 Feb 2003 03:26:08 +0000 (03:26 +0000)] 
Hopefully deal with system 252 (__NR_exit_group) correctly.

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

22 years ago---> 1.9.4
Julian Seward [Sun, 23 Feb 2003 03:25:36 +0000 (03:25 +0000)] 
---> 1.9.4

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

22 years agoSupport kernels > 2.5.43 (David Kimdon <dwhedon@debian.org>)
Julian Seward [Sun, 23 Feb 2003 03:09:33 +0000 (03:09 +0000)] 
Support kernels > 2.5.43 (David Kimdon <dwhedon@debian.org>)

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

22 years agoApply the following:
Julian Seward [Sun, 23 Feb 2003 03:00:29 +0000 (03:00 +0000)] 
Apply the following:

The veneers for msgrcv in vg_intercept.c and vg_libpthread.c are not
returning the number of bytes read correctly - they always return zero
for any non-error case, which causes programs using msgrcv to behave
somewhat non-optimally when running under valgrind ;-)

Attached is a patch against 1.9.3 which fixes this.

Tom

--
Tom Hughes (thh@cyberscience.com)

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

22 years agoFurther cleanups re new method for finding the stack segment at
Julian Seward [Sun, 23 Feb 2003 01:41:17 +0000 (01:41 +0000)] 
Further cleanups re new method for finding the stack segment at
startup.

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

22 years agoInitial rough hack to spot the stack segment at startup by looking
Julian Seward [Sun, 23 Feb 2003 01:25:51 +0000 (01:25 +0000)] 
Initial rough hack to spot the stack segment at startup by looking
for a rwx mapping which contains the startup %esp.  This should be
more robust than the previous mechanism, which checked a small number
of known places and gave up if none matched.  This change is motivated
by Gentoo Linux's high security mode, in which the stack location is
chosen randomly for each new process.

Thanks to Catherine Allen for helping out on this.

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

22 years agoChanged comments only: added a couple of missing syscall numbers.
Nicholas Nethercote [Wed, 19 Feb 2003 11:39:02 +0000 (11:39 +0000)] 
Changed comments only:  added a couple of missing syscall numbers.

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

22 years agoCommitted Jeremy F's patch 86:
Nicholas Nethercote [Mon, 17 Feb 2003 10:09:19 +0000 (10:09 +0000)] 
Committed Jeremy F's patch 86:

  Fix a bug introduced in err_extra changes; not all errors have an 'extra'.

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

22 years agoFixed a minor bug -- the condition for determining whether
Nicholas Nethercote [Mon, 10 Feb 2003 10:17:26 +0000 (10:17 +0000)] 
Fixed a minor bug -- the condition for determining whether
VG_(handle_esp_assignment)() was needed by a skin (and thus whether to register
it in the baseBlock) was different to that used when determining whether to
call it in code generation... so it could be (attempted to be) called having
not been registered.

Fixed this by consistifying the conditions, using a function
VG_(need_to_handle_esp_assignment)() that is used in both places.  The bug
hadn't been found previously because no existing skin exercised the mismatched
conditions in conflicting ways.

Also took VG_(track).post_mem_write out of consideration because it's no longer
important (due to a change in how stack switching is detected).

----
Improved the error message for when a helper can't be found in the baseBlock --
now looks up the debug info to tell you the name of the not-found function.

----
Increased the number of noncompact helpers allowed from 8 to 24

----
Removed a magic number that was hardcoded all over the place, introducing
VG_MAX_REGS_USED for the size of the arrays needed by VG_(get_reg_usage)()

----
Also added these functions

   VG_(get_archreg)()
   VG_(get_thread_archreg)()
   VG_(get_thread_shadow_archreg)()
   VG_(set_thread_shadow_archreg)()

which can be useful for skins.

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

22 years agoFix really stupid cut + paste error.
Nicholas Nethercote [Thu, 6 Feb 2003 08:17:08 +0000 (08:17 +0000)] 
Fix really stupid cut + paste error.

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

22 years agoUgh, fixed it properly this time.
Nicholas Nethercote [Wed, 5 Feb 2003 22:08:58 +0000 (22:08 +0000)] 
Ugh, fixed it properly this time.

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

22 years agoFixed comment typo.
Nicholas Nethercote [Wed, 5 Feb 2003 22:06:48 +0000 (22:06 +0000)] 
Fixed comment typo.

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

22 years agoMade VGOFF_(helper_idiv_64_32) and all the similar helper offsets visible to
Nicholas Nethercote [Mon, 3 Feb 2003 12:33:31 +0000 (12:33 +0000)] 
Made VGOFF_(helper_idiv_64_32) and all the similar helper offsets visible to
skins, so they can determine which helper is being called for CALLM
instructions.

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

22 years agoMinor documentation update about 'details'.
Nicholas Nethercote [Mon, 3 Feb 2003 12:21:53 +0000 (12:21 +0000)] 
Minor documentation update about 'details'.

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

22 years agoMade the setting of VG_(details).avg_translation_sizeB optional, defaulting to
Nicholas Nethercote [Mon, 3 Feb 2003 12:20:07 +0000 (12:20 +0000)] 
Made the setting of VG_(details).avg_translation_sizeB optional, defaulting to
100 bytes (added VG_DEFAULT_TRANS_SIZEB).  Took the now-unnecessary settings
out of Nulgrind and CoreCheck.  Also made .avg_translation_sizeB a UInt (from
an Int), to avoid possibility of negatives.

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

22 years agoAdded some functions for skins to access shadow registers:
Nicholas Nethercote [Mon, 3 Feb 2003 12:03:22 +0000 (12:03 +0000)] 
Added some functions for skins to access shadow registers:
VG_(get_shadow_archreg), VG_(set_shadow_archreg), VG_(shadow_archreg_address).
Curiously, the only way skins could previously access them was with
VG_(shadow_reg_offset), which wasn't very flexible.

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

22 years agoAdded a comment.
Nicholas Nethercote [Mon, 3 Feb 2003 11:25:34 +0000 (11:25 +0000)] 
Added a comment.

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

22 years agoRenamed VG_(nameCondcode)() as VG_(name_UCondcode)() to make it consistent
Nicholas Nethercote [Mon, 3 Feb 2003 11:17:46 +0000 (11:17 +0000)] 
Renamed VG_(nameCondcode)() as VG_(name_UCondcode)() to make it consistent
with similar functions, and made it visible to skins (useful).

Also bumped up the skin interface minor version number due to this change; this
bumping will cover any other binary-compatible changes between now and the next
release (after 1.9.3).

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

22 years agoFixed minor error in --trace-codegen=1xxxx output that meant 'shrdl' was being
Nicholas Nethercote [Mon, 3 Feb 2003 11:08:52 +0000 (11:08 +0000)] 
Fixed minor error in --trace-codegen=1xxxx output that meant 'shrdl' was being
printed as 'shldl'.

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

22 years agoMade more informative the error message that is shown when liveness problems
Nicholas Nethercote [Mon, 3 Feb 2003 11:07:03 +0000 (11:07 +0000)] 
Made more informative the error message that is shown when liveness problems
occur... this is helpful when writing skins, because it's easy for problems
with SK_(instrument)() to screw it up.

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

22 years agoAdded VG_(get_obj)().
Nicholas Nethercote [Tue, 28 Jan 2003 20:40:57 +0000 (20:40 +0000)] 
Added VG_(get_obj)().

Also added declaration for VG_(get_error_where)() to vg_skin.h (which should
have been included with the last commit).

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

22 years agoTwo minor changes:
Nicholas Nethercote [Tue, 28 Jan 2003 19:59:38 +0000 (19:59 +0000)] 
Two minor changes:

  - When recording errors, VG_(dup_extra_and_update)() previously was only
    called if the 'extra' field was non-NULL.  Now it's always called.
    This is for two reasons:

      a. The 'extra' field could be holding a non-pointer value that just
         happens to be 0
      b. The skin might want to update the error, even if it doesn't use
         the 'extra' field.

    A pretty minor change that shouldn't upset anybody.

  - Made the ExeContext 'where' field of an error visible to skins, by
    adding VG_(get_error_where)().  This can be useful, eg. for comparing
    errors for equality.

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