Commit Graph

2905 Commits

Author SHA1 Message Date
Nicholas Nethercote
efe555f4fa Removed the clone_flags, parent_tidptr and child_tidptr flags, which were
written but never read, from os_thread_t.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3772
2005-05-18 22:56:00 +00:00
Nicholas Nethercote
5c8ec32594 Comment only change: improve comments on VG_(clone) for x86 and AMD64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3771
2005-05-18 22:42:24 +00:00
Nicholas Nethercote
e1a1c6a0de Make VG_(wait_for_threadstate) local to linux/core_os.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3770
2005-05-18 19:50:20 +00:00
Nicholas Nethercote
47039b20b9 Make VG_(sanitize_client_sigmask)() local to m_syscalls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3769
2005-05-18 19:47:46 +00:00
Nicholas Nethercote
63a20788e7 Un-export VG_(is_sig_ign)().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3768
2005-05-18 19:43:09 +00:00
Nicholas Nethercote
6248ef94a9 wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3767
2005-05-18 04:52:17 +00:00
Nicholas Nethercote
abf27fd3b3 Hmm, actually put some code into m_options.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3766
2005-05-18 04:36:01 +00:00
Nicholas Nethercote
733dd12283 Don't need to -I $(builddir)/include now that valgrind.h isn't
generated from valgrind.h.in.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3765
2005-05-17 21:14:54 +00:00
Nicholas Nethercote
3972c4b37b minor cleanups
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3764
2005-05-17 21:10:11 +00:00
Nicholas Nethercote
58d279dbf2 Avoid compiler warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3763
2005-05-17 21:07:46 +00:00
Nicholas Nethercote
5b109da717 Add missing #include.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3762
2005-05-17 21:02:03 +00:00
Tom Hughes
194bedbca9 Pass an explicit "-m32" or "-m64" in the C flags on x86/amd64 systems
so that we get the right compiler when --host is used to ask for an x86
build on amd64 or vice versa.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3761
2005-05-17 16:13:15 +00:00
Tom Hughes
ccae44d317 Get rid of all the duplicated settings of AM_CFLAGS in the makefiles
for the various core modules and use a single global setting so that
the flags are actually consistent everywhere.

Also get rid of most the USE_PIE blocks in the makefiles by having
configure pass expand a variable in the new global AM_CFLAGS to one
of "-fpie" or "" depending on whether PIE is in use.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3760
2005-05-17 16:11:40 +00:00
Julian Seward
e42dbdb2a0 Give this file a standard preamble, since having empty C files is
thoroughly confusing.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3759
2005-05-17 13:45:04 +00:00
Julian Seward
3f6306efcc comment-only wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3758
2005-05-17 13:43:54 +00:00
Tom Hughes
35f7bae2f3 Correct file name in error messages.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3757
2005-05-17 11:03:52 +00:00
Nicholas Nethercote
338b7b1a55 Remove orphaned comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3756
2005-05-17 04:28:23 +00:00
Nicholas Nethercote
932075c94f Move linux-only syscall wrappers into m_syscalls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3755
2005-05-17 04:20:31 +00:00
Nicholas Nethercote
0eec4e6ae2 Undo the awful Leak Error type-abuse.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3754
2005-05-17 04:00:11 +00:00
Nicholas Nethercote
26afa60bf2 Update website address.
MERGE TO 2.4 REPOSITORY



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3753
2005-05-17 03:22:38 +00:00
Julian Seward
a548e818d0 A 4999 entry hashtable is too small when there are a huge number (500k
ish) of blocks simultaneously live, and the client is doing intensive
malloc/frees.  Increase the table size 16-fold.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3752
2005-05-17 02:20:35 +00:00
Nicholas Nethercote
937a49ea05 Added module m_options for holding all the command-line option stuff.
Perhaps parts of process_cmd_line_option() should go in here, but I've
not done that for now.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3751
2005-05-16 23:31:24 +00:00
Tom Hughes
81e30f248f Fix test for amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3750
2005-05-16 23:16:25 +00:00
Nicholas Nethercote
09871f18f0 Move VGA_STACK_SIZE_W into m_syscalls, the only place that uses it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3749
2005-05-16 21:39:23 +00:00
Nicholas Nethercote
df94111968 Removed the core_arch_asm.h files. The OYNK macros now live in tool_asm.h,
at least for the moment.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3748
2005-05-16 21:30:24 +00:00
Nicholas Nethercote
9c67331c7d Move ThreadArchState into core.h and avoid duplication.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3747
2005-05-16 21:16:44 +00:00
Nicholas Nethercote
9e20a9de6f Remove VGP_LONGJMP and VGP_SETJMP, since they're the same on all
platforms.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3746
2005-05-16 20:50:52 +00:00
Nicholas Nethercote
586e79e4bd core.h: remove some #include lines, move some others to more localised
places.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3745
2005-05-16 20:40:51 +00:00
Julian Seward
dab52189a5 wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3744
2005-05-16 18:30:40 +00:00
Julian Seward
650de479d1 CFI reader: handle DW_CFA_GNU_window_save. Why is this sparc-specific
construct turning up in .so's in x86 SuSE 9.3 ?  Answers on a postcard
please.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3743
2005-05-16 18:25:09 +00:00
Julian Seward
1038a125cb More FC4 jiggery-pokery.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3742
2005-05-16 16:39:57 +00:00
Julian Seward
9ca614ab65 Disable a bunch of suppressions made obsolete by r3740.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3741
2005-05-16 16:39:28 +00:00
Julian Seward
868d021e86 Fix for sys_sysctl wrapper, from Ulrich Drepper.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3740
2005-05-16 16:38:45 +00:00
Nicholas Nethercote
816419fa9a No need to generate valgrind.h from valgrind.h.in. We can just use the
compiler symbols rather than our own symbols for the architectures (we
already were, more or less).  This simplifies the build, hurrah!

I also inverted the sense of the NVALGRIND ifdefs, to make them easier to
read, and fixed up some comments.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3739
2005-05-16 13:31:23 +00:00
Julian Seward
b6de06b6dc CFI reader: partially handle DW_CFA_expression and
DW_CFA_def_cfa_expression in the sense that they are parsed correctly,
but the contained expression is ignored.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3738
2005-05-16 11:48:34 +00:00
Julian Seward
2a2b57fdc5 Fix comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3737
2005-05-16 11:47:17 +00:00
Tom Hughes
0cee6603ab Fill in the amd64 case for regaddr_from_tst.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3736
2005-05-16 07:31:57 +00:00
Tom Hughes
c829917c1f Use movq to get the frame pointer on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3735
2005-05-16 07:31:05 +00:00
Nicholas Nethercote
5f3248aeb3 Complete restructuring of include/ directory -- I forgot about the ARM
stuff.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3734
2005-05-16 03:36:19 +00:00
Nicholas Nethercote
8c63e060a7 Restructured the include/ directory.
- All the subdirectories have gone: arm/, x86/, amd64/, linux/,         
  x86-linux/, amd64-linux/, arm-linux/.

- The following files were moved out of those directories into include/:

    amd64-linux/vki_arch.h            --> vki-amd64-linux.h
    x86-linux/vki_arch.h              --> vki-x86-linux.h
    x86-linux/vki_arch_posixtypes.h   --> vki_posixtypes-x86-linux.h
    linux/vki.h                       --> vki-linux.h
    amd64-linux/vki_arch_posixtypes.h --> vki_posixtypes-amd64-linux.h

- The following very small files were inlined into tool.h using the "#if
  defined(VGP_x86)..." technique:

    x86/tool_arch.h
    arm/tool_arch.h
    amd64/tool_arch.h

  The same technique was used twice to include the appropriate
  vki-$PLATFORM and vki-$OS files into tool.h.  

- The other files in those directories were removed.

- The build is much simpler, since we have 7(!) fewer Makefile.am files.
  Far fewer -I options are needed when compiling, too.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3733
2005-05-16 03:25:12 +00:00
Nicholas Nethercote
1365301e39 Moved the stack-walking macros into m_stacktrace.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3732
2005-05-16 00:16:56 +00:00
Nicholas Nethercote
b1b8637207 Move some decls in vg_dwarf.c closer to the comment explaining them.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3731
2005-05-16 00:04:02 +00:00
Nicholas Nethercote
87429d4894 Moved VGA_(reg_addr_from_tst)() and VGA_R_{STACK,FRAME}_PTR into vg_symtab2.c.
Also made regaddr() and co. 64-bit clean (I hope I did that correctly).





git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3730
2005-05-16 00:01:04 +00:00
Nicholas Nethercote
0fb8967ab3 Move VGA_GET_REAL_{STACK,FRAME}_PTR into vg_symtab2.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3729
2005-05-15 23:36:12 +00:00
Nicholas Nethercote
d36924d966 bugfix: don't print bogus "obj:" lines when generating suppressions.
Thanks to Julian for spotting and diagnosing it.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3728
2005-05-15 21:09:40 +00:00
Nicholas Nethercote
e093b9b370 Let's assume the client's address space starts at 0 until we port
to a platform for which that's not true.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3727
2005-05-15 21:03:42 +00:00
Nicholas Nethercote
7a6ee2fc93 Improved structure of LDT-related code:
- one declarations from core.h removed, one moved to within m_syscalls.
- all the x86 LDT stuff made local to m_syscalls.  x86-linux/ldt.c removed
  as a result.  x86/state.c slimmed down, too.  x86/x86_private.h removed
  too.
- all the AMD64 LDT stuff was deleted, since it was all commented out.  It
  can be added back in later in the appropriate places if necessary.
  Thus amd64-linux/ldt.c and amd64/amd64_private.h were removed.
- other minor naming changes

I hope I didn't break AMD64 compilation.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3726
2005-05-15 20:52:04 +00:00
Nicholas Nethercote
c14a5bb6a6 Cover the unknown-platform case.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3725
2005-05-15 18:51:47 +00:00
Nicholas Nethercote
6daae32217 Remove dead constant.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3724
2005-05-15 17:38:56 +00:00
Nicholas Nethercote
92c61a5fd1 Don't mix backticks and apostrophes when quoting words -- eg. use 'foo'
rather than `foo', as www.cl.cam.ac.uk/~mgk25/ucs/quotes.html explains
we should (in more detail than you'd imagine was possible).  I did this
both in output messages and in some comments, for consistency.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3723
2005-05-15 17:28:26 +00:00