Commit Graph

1617 Commits

Author SHA1 Message Date
Julian Seward
df13f9efcc Further un-break signal handling following the merge. It's really
scandalous how difficult it is to figure out what code messes with
what global state, and generally how stuff is supposed to work.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3307
2005-03-12 17:24:33 +00:00
Nicholas Nethercote
fc984f6a56 Update version to 3.0.0.CVS. Also change startup message to use this
version number again, rather than "SVN >= xxx".



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3306
2005-03-12 16:54:07 +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
c0e91e1d8e Unbreak build (for me, gcc-4.0.0-pre -- nested functions can't be static).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3302
2005-03-12 15:39:54 +00:00
Julian Seward
f03dd1e385 Fix yielding properly.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3301
2005-03-12 15:16:31 +00:00
Julian Seward
e60e34d51c Add missing comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3300
2005-03-12 15:16:07 +00:00
Julian Seward
3286b17553 No longer needed. Bye!
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3299
2005-03-12 14:40:38 +00:00
Julian Seward
493ecf52a4 Get rid of dead code and/or localise global functions as needed to
avoid warnings from -fwarn-missing-prototypes.  vg_replace_malloc.c
has not been done yet though.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3298
2005-03-12 13:32:06 +00:00
Nicholas Nethercote
85da1e0285 Add declaration for VG_(pre_clo_init) so we don't get warnings about it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3297
2005-03-12 06:23:46 +00:00
Nicholas Nethercote
7fb220d397 Remove dead code.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3296
2005-03-12 06:04:07 +00:00
Nicholas Nethercote
6477952f31 Fix warnings identified after I attached a "format" attribute to
VALGRIND_INTERNAL_PRINTF.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3295
2005-03-12 06:01:45 +00:00
Nicholas Nethercote
29cc7c8a6c Remove dead functions: VG_(set_arg_and_bogus_ret), VG_(thread_initial_stack).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3294
2005-03-12 05:48:06 +00:00
Nicholas Nethercote
b0c0c9b9b8 Remove meaningless "vg_" prefixes from several variables.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3292
2005-03-12 05:37:54 +00:00
Nicholas Nethercote
4cfbb7f38c Remove dead function: VG_(do_pthread_sigmask_SCSS_upd).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3291
2005-03-12 05:35:01 +00:00
Nicholas Nethercote
56bce432c3 Get rid of the VALGRIND_INTERNAL_PRINTF_BACKTRACE request -- it's no longer
used.

And move VALGRIND_INTERNAL_PRINTF() out of core.h into vg_replace_malloc.c,
which is the only place it's used now.  Also made it print it's message with
Vg_DebugMsg rather than Vg_UserMsg, which makes more sense, since it's used
for --trace-malloc which is debugging-style info.

Improved some comments about this stuff too.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3290
2005-03-12 05:32:28 +00:00
Nicholas Nethercote
3aee14f1a3 These files are no longer used, thank heavens.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3289
2005-03-12 05:10:40 +00:00
Nicholas Nethercote
d9d1e37683 Remove dead declarations.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3288
2005-03-12 05:04:30 +00:00
Nicholas Nethercote
e8e7ff1972 Make these vg_message.c functions local, they're no longer used outside the
module, as VG_(vmessage)() superseded them.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3287
2005-03-12 04:59:51 +00:00
Julian Seward
6ddcb7dc7d Detect and reject misaligned args for mmap. This makes
none/tests/map_unaligned work.  The PRE handlers for sys_mmap and
sys_old_mmap are more convoluted than I would like, and might benefit
from a rewrite.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3284
2005-03-11 14:12:38 +00:00
Julian Seward
46bc07d683 Handle Vex-supplied guest address mapping failures in the scheduler.
This makes none/tests/x86/badseg work.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3283
2005-03-11 13:19:47 +00:00
Julian Seward
5fee346604 Un-break --trace-children=yes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3282
2005-03-11 12:56:56 +00:00
Nicholas Nethercote
53643ee2a6 Fix a printf formatting inconsistency.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3280
2005-03-11 05:07:16 +00:00
Nicholas Nethercote
1b3b96a692 Fix false assertion in pattern matching.
MERGED FROM CVS HEAD


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3279
2005-03-11 05:05:50 +00:00
Nicholas Nethercote
0384583ee1 Fix Nulgrind's filter_stderr, and also fix the none/tests/cmdline2 test
(required fixing the usage msg slightly).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3278
2005-03-11 04:57:30 +00:00
Nicholas Nethercote
fdfc8ecaf7 Memset the whole ehdr structure (though this will only initialize the
padding).

MERGED FROM CVS HEAD


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3276
2005-03-11 04:47:23 +00:00
Nicholas Nethercote
73933817e2 Only try matching if the pointer could be resolved to a name.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3275
2005-03-11 04:46:09 +00:00
Nicholas Nethercote
6498475675 Fix VG_(calloc)() so it actually zeroes the entire memory area it allocates.
Also rename the variables involve to lessen the chance of such confusion        
occurring again.  

MERGED FROM CVS HEAD


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3274
2005-03-11 04:44:10 +00:00
Julian Seward
ae8df0379b Fix PRE wrapper for sys_exit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3268
2005-03-11 02:47:32 +00:00
Julian Seward
d5b545da24 These files are no longer needed. Bye!
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3266
2005-03-11 00:22:10 +00:00
Julian Seward
0356d27ca6 Merge in changes from the 2.4.0 line. This basically brings in the
overhaul of the thread support.  Many things are now probably broken,
but at least with --tool=none, simple and not-so-simple threaded and
non-thread programs work.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3265
2005-03-10 23:59:00 +00:00
Julian Seward
7c542ccd39 Add new files resulting from merging in the 2.4.0 line. Many of these
seem to be simply duplication of the x86 instruction set tests into
the addrcheck and helgrind trees.  I'm not sure what this duplication
achieves.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3264
2005-03-10 23:23:45 +00:00
Julian Seward
2e00d9e22a Fix enough syscall stuff so that simple X applications run (xfontsel,
xedit).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3261
2005-03-02 16:01:23 +00:00
Julian Seward
243713971c Minimal, horrible hacks needed to make vsyscalls work on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3259
2005-03-02 14:06:08 +00:00
Julian Seward
3fe41b4fd9 Fix struct ume_auxv so that auxc walking on 64-bit platforms works.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3258
2005-03-02 14:04:19 +00:00
Julian Seward
435d820b6d Clean up handling of socket system calls on amd64-linux, so that the
code for them is shared between amd64-linux and x86-linux.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3257
2005-03-01 19:00:30 +00:00
Julian Seward
a978be5bcb Factor out all the socket-related syscall handlers into their own
functions, so the same handlers can be used on amd64-linux as
x86-linux without tons of code duplications.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3256
2005-03-01 16:45:23 +00:00
Julian Seward
d2445e3d81 Fix more RES-is-not-set assertions, and move a couple of comments to
their correct homes.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3255
2005-02-28 20:50:29 +00:00
Julian Seward
006c9e84c3 When handling syscalls, don't try to figure out if the pre-handler set
the syscall result by inspecting RES after the pre-handler has run.
Instead, give each thread a syscall_result_set Bool, and make
SET_RESULT set it.  Inspect that Bool.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3254
2005-02-28 17:27:04 +00:00
Julian Seward
be6b72b2d3 Various cleanups to revised low-level memory manager.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3253
2005-02-28 14:39:21 +00:00
Julian Seward
2cfb6bc855 On AMD64 it's valid to access up to 128 bytes below %rsp. Or to be
more accurate, on the amd64-linux ABI that is allowable.  Anyway,
parameterise the signal handler so it isn't confused by such accesses.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3252
2005-02-25 02:45:39 +00:00
Julian Seward
4bfc4e090b Rearrange debug printing a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3251
2005-02-23 11:36:56 +00:00
Julian Seward
a84f1bd656 More amd64 system calls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3250
2005-02-19 22:45:15 +00:00
Julian Seward
f62998dc1b Clean up startup grunge a bit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3249
2005-02-18 09:39:05 +00:00
Julian Seward
4b34a53a19 Make ELF symbol reading work on both 32 and 64 bit platforms.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3248
2005-02-18 09:38:08 +00:00
Julian Seward
f122d86dc0 Further cleanups to low-level memory management. It's still a
conceptual mess and needs a redesign, but this is a start.  Most stuff
now works again.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3247
2005-02-18 08:28:32 +00:00
Julian Seward
a5787a4558 Fix enough syscalls to get through 'hello world' on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3246
2005-02-17 09:30:21 +00:00
Julian Seward
07be6896f6 Fix comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3245
2005-02-17 09:29:33 +00:00
Julian Seward
353c6ca6c5 Turn off tons of debug printing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3244
2005-02-16 01:58:51 +00:00
Julian Seward
e57df07ce8 Duh; mmap doesn't work if you don't use the post-mmap wrapper too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3243
2005-02-16 01:58:01 +00:00
Julian Seward
245173117c Major rewrite of the machinery which keeps track of segments:
* remove initialisation-time circularities by not using the
  skiplist mechanism and therefore not using any dynamically
  allocated memory in support of this mechanism

* Add comments about how it works (it is pretty opaque) so as
  to help future maintainers/bug-fixers

It only just works and many things are still broken.  That should
improve rapidly however.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3242
2005-02-16 01:31:37 +00:00