]> git.ipfire.org Git - thirdparty/valgrind.git/log
thirdparty/valgrind.git
21 years agoAlthough it doesn't actually matter from a generated-code point of
Julian Seward [Mon, 20 Jun 2005 18:14:27 +0000 (18:14 +0000)] 
Although it doesn't actually matter from a generated-code point of
view, it doesn't make much sense for the args to
VG_(mk_SysRes_{x86,amd64}_linux) to be stated as unsigned; therefore
make them signed.

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

21 years ago(Re)-drop reliance on <sys/mman.h> and disable ppc32-linux specific
Julian Seward [Mon, 20 Jun 2005 18:03:17 +0000 (18:03 +0000)] 
(Re)-drop reliance on <sys/mman.h> and disable ppc32-linux specific
vdso-related mashing until the purpose of it is clarified.

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

21 years agocomment wibble
Cerion Armour-Brown [Mon, 20 Jun 2005 16:28:32 +0000 (16:28 +0000)] 
comment wibble

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

21 years agoFinally, valgrind on ppc32.
Cerion Armour-Brown [Mon, 20 Jun 2005 15:51:07 +0000 (15:51 +0000)] 
Finally, valgrind on ppc32.
Plenty still to do, but simple programs like ls seem to run ok

Thanks, Paul, for having your ppc port of valgrind 2.4 to work from!

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

21 years agothis one was x86 code. grr.
Cerion Armour-Brown [Mon, 20 Jun 2005 14:57:59 +0000 (14:57 +0000)] 
this one was x86 code. grr.

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

21 years agoRemove some unnecessary #includes, comment some others.
Nicholas Nethercote [Mon, 20 Jun 2005 14:18:12 +0000 (14:18 +0000)] 
Remove some unnecessary #includes, comment some others.

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

21 years agomore ppc32 .orig files
Cerion Armour-Brown [Mon, 20 Jun 2005 13:52:30 +0000 (13:52 +0000)] 
more ppc32 .orig files

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

21 years agoFloating-point for ppc32
Cerion Armour-Brown [Mon, 20 Jun 2005 13:45:57 +0000 (13:45 +0000)] 
Floating-point for ppc32

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

21 years agoguest-ppc32
Cerion Armour-Brown [Mon, 20 Jun 2005 12:42:04 +0000 (12:42 +0000)] 
guest-ppc32
~~~~~~~~~~
- store-with-update instrs: Valgrind pagefault handler expects faulting address >= current stack ptr, so we need to update the stack ptr register _before_ storing the old stack ptr
- branch_ctr_ok (bad calc for 'branch if %ctr zero' case)
- mcrf: scanning bitfields in the wrong direction
- on spotting the magic sequence, delta += 24
- updated DIPs for +ve-only args

host-ppc32
~~~~~~~~~
- fixed CMov reg usage
- fixed Pin_Call in emit_PPC32Instr(): we already know how far we're jumping
- fixed Pin_Goto in emit_PPC32Instr(): vassert right range of jump deltas

other-ppc32
~~~~~~~~~~
- exported OFFSET_ppc32_(various) for valgrind

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

21 years agofix 'Usage:'
Cerion Armour-Brown [Mon, 20 Jun 2005 12:15:54 +0000 (12:15 +0000)] 
fix 'Usage:'

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

21 years agoUse BACKTRACE_DEPTH consistently.
Nicholas Nethercote [Mon, 20 Jun 2005 03:38:27 +0000 (03:38 +0000)] 
Use BACKTRACE_DEPTH consistently.

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

21 years agoRemove some unnecessary #includes, comment some others.
Nicholas Nethercote [Mon, 20 Jun 2005 03:36:51 +0000 (03:36 +0000)] 
Remove some unnecessary #includes, comment some others.

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

21 years agoRemove some unnecessary #includes, comment some others.
Nicholas Nethercote [Mon, 20 Jun 2005 02:23:07 +0000 (02:23 +0000)] 
Remove some unnecessary #includes, comment some others.

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

21 years agoAdd #include necessary for AMD64.
Nicholas Nethercote [Mon, 20 Jun 2005 02:22:00 +0000 (02:22 +0000)] 
Add #include necessary for AMD64.

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

21 years agoNew script for graphing module dependencies.
Nicholas Nethercote [Mon, 20 Jun 2005 01:02:53 +0000 (01:02 +0000)] 
New script for graphing module dependencies.

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

21 years agoMove VG_(get_memory_from_mmap_for_client) out of m_aspacemgr into
Nicholas Nethercote [Sun, 19 Jun 2005 21:57:54 +0000 (21:57 +0000)] 
Move VG_(get_memory_from_mmap_for_client) out of m_aspacemgr into
m_libcmman, next to VG_(get_memory_from_mmap).  Removes the (direct)
dependence of m_mallocfree on m_aspacemgr.

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

21 years agoPut VG_(client_trampoline_code) in m_trampoline.
Nicholas Nethercote [Sun, 19 Jun 2005 21:49:28 +0000 (21:49 +0000)] 
Put VG_(client_trampoline_code) in m_trampoline.

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

21 years agoMoved VG_(resolve_filename{,_nodup}) from m_syswrap into m_libcfile,
Nicholas Nethercote [Sun, 19 Jun 2005 21:10:42 +0000 (21:10 +0000)] 
Moved VG_(resolve_filename{,_nodup}) from m_syswrap into m_libcfile,
so that m_aspacemgr doesn't depend on m_syswrap any more.

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

21 years agowhoops
Nicholas Nethercote [Sun, 19 Jun 2005 19:38:03 +0000 (19:38 +0000)] 
whoops

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

21 years agoRemove now-unnecessary #includes.
Nicholas Nethercote [Sun, 19 Jun 2005 19:27:07 +0000 (19:27 +0000)] 
Remove now-unnecessary #includes.

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

21 years agoMoved VG_(start_debugger) out of m_main.c into its own module,
Nicholas Nethercote [Sun, 19 Jun 2005 19:25:44 +0000 (19:25 +0000)] 
Moved VG_(start_debugger) out of m_main.c into its own module,
m_debugger.  This removes the dependence of m_signals.c and m_errormgr.c
on m_main.c.  It required also moving VG_(clexecfd) out of m_main.c;  I put
it in m_libcproc.c which seemed like an ok-but-not-great choice.

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

21 years agoFix up the libc_freeres_wrapper code so that m_main depends on m_redir,
Nicholas Nethercote [Sun, 19 Jun 2005 18:58:03 +0000 (18:58 +0000)] 
Fix up the libc_freeres_wrapper code so that m_main depends on m_redir,
not the other way around.

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

21 years agoMove VG_(sanity_check_general) out of m_main.c into scheduler.c.
Nicholas Nethercote [Sun, 19 Jun 2005 18:49:19 +0000 (18:49 +0000)] 
Move VG_(sanity_check_general) out of m_main.c into scheduler.c.
Removes the dependence of m_scheduler/ on m_main.c;  reduces the
dependence of m_signals.c on m_main.c.

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

21 years agoMove VG_(bbs_done) out of main and make it local in scheduler.c. This
Nicholas Nethercote [Sun, 19 Jun 2005 18:38:24 +0000 (18:38 +0000)] 
Move VG_(bbs_done) out of main and make it local in scheduler.c.  This
removes the dependence of m_translate.c and m_libcassert.c on m_main.c.

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

21 years agoFix AMD64 build.
Robert Walsh [Sun, 19 Jun 2005 17:52:41 +0000 (17:52 +0000)] 
Fix AMD64 build.

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

21 years agoGet rid of the ELFSZ define, which is created at the configure stage
Julian Seward [Sun, 19 Jun 2005 16:14:06 +0000 (16:14 +0000)] 
Get rid of the ELFSZ define, which is created at the configure stage
and use VG_WORDSIZE, as that is used everywhere else.

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

21 years agoRemoved dependency on <sys/mman.h> by using our own versions of
Nicholas Nethercote [Sun, 19 Jun 2005 16:10:47 +0000 (16:10 +0000)] 
Removed dependency on <sys/mman.h> by using our own versions of
mmap/munmap.  Required making VG_(munmap_native) public.

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

21 years agoAdd a comment.
Nicholas Nethercote [Sun, 19 Jun 2005 16:07:49 +0000 (16:07 +0000)] 
Add a comment.

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

21 years agoUn-break the build on SuSE 9.1 (x86). It seems that something in
Julian Seward [Sun, 19 Jun 2005 15:58:33 +0000 (15:58 +0000)] 
Un-break the build on SuSE 9.1 (x86).  It seems that something in
<fcntl.h> messes up stuff acquired indirectly from vki-x86-linux.h.
This fix is therefore a kludge; it merely puts our defines ahead of
the glibc ones.  The right solution is to entirely remove the glibc
dependency.

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

21 years agoDon't #include <sys/stat.h>, which was causing problems due to
Nicholas Nethercote [Sun, 19 Jun 2005 15:46:27 +0000 (15:46 +0000)] 
Don't #include <sys/stat.h>, which was causing problems due to
it redefining certain names which clashed with field names in vki*.h.
There are plenty more glibc-isms that can be removed from m_main.c.

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

21 years agoFixed a bug in .valgrindrc reading I introduced recently -- freeing memory
Nicholas Nethercote [Sun, 19 Jun 2005 15:34:59 +0000 (15:34 +0000)] 
Fixed a bug in .valgrindrc reading I introduced recently -- freeing memory
I should not have.

Added a regression test for it.

MERGE TO 2.4 REPOSITORY

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

21 years agoGet "make dist" closer to working again.
Nicholas Nethercote [Sun, 19 Jun 2005 05:43:21 +0000 (05:43 +0000)] 
Get "make dist" closer to working again.

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

21 years agoIn m_redir.c, no longer need to handle the case of redirection to
Nicholas Nethercote [Sun, 19 Jun 2005 05:14:03 +0000 (05:14 +0000)] 
In m_redir.c, no longer need to handle the case of redirection to
a symbol -- we always redirect to a specific address.  This simplifies
things a bit.

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

21 years agoFinal commit for the initial modularisation pass:
Nicholas Nethercote [Sun, 19 Jun 2005 01:24:32 +0000 (01:24 +0000)] 
Final commit for the initial modularisation pass:

- Broke part of m_scheduler off into a new module m_threadstate.  It
  contains ThreadState, VG_(threads)[] and some basic operations on the
  thread table.  All simple stuff, the complex stuff stays in m_scheduler.
  This avoids lots of circular dependencies between m_scheduler and other
  modules.

- Managed to finally remove core.h and tool.h, double hurrah!

- Introduced pub_tool_basics.h and pub_core_basics.h, one of which is
  include by every single C file.

- Lots of little cleanups and changes related to the above.

- I even did a small amount of documentation updating.

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

21 years agoFix x86_64 build.
Robert Walsh [Sat, 18 Jun 2005 18:58:14 +0000 (18:58 +0000)] 
Fix x86_64 build.
Also fix vgtest_ume (although it fails on x86_64.)

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

21 years agoAdd some missing "_H" suffixes.
Nicholas Nethercote [Sat, 18 Jun 2005 18:49:40 +0000 (18:49 +0000)] 
Add some missing "_H" suffixes.

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

21 years agoAdd some svn:ignore entries.
Nicholas Nethercote [Sat, 18 Jun 2005 18:44:33 +0000 (18:44 +0000)] 
Add some svn:ignore entries.

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

21 years agoMove CPUID functions into their own module, m_cpuid.
Nicholas Nethercote [Sat, 18 Jun 2005 18:31:26 +0000 (18:31 +0000)] 
Move CPUID functions into their own module, m_cpuid.

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

21 years agoMake the stage2.lds building platform-independent by not trying to match
Nicholas Nethercote [Sat, 18 Jun 2005 16:41:30 +0000 (16:41 +0000)] 
Make the stage2.lds building platform-independent by not trying to match
an exact address (idea from Paul Mackerras' PPC port).  Thus it could be
moved into coregrind/Makefile.am.

Let me know if this breaks anything on other platforms.

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

21 years agoMoved call_on_new_stack_0_1 and jump_and_switch_stacks to better places.
Nicholas Nethercote [Sat, 18 Jun 2005 15:54:25 +0000 (15:54 +0000)] 
Moved call_on_new_stack_0_1 and jump_and_switch_stacks to better places.
This enabled the removal of $ARCH/jmp_with_stack.c, hurrah!

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

21 years agoMove VG_(set_fault_catcher) out of tool.h. Had to create a
Nicholas Nethercote [Sat, 18 Jun 2005 15:18:15 +0000 (15:18 +0000)] 
Move VG_(set_fault_catcher) out of tool.h.  Had to create a
pub_tool_signals.h for this which I didn't want to, but I couldn't
see how else to do it.

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

21 years agoReplace use of __amd64__ with VGA_amd64.
Nicholas Nethercote [Sat, 18 Jun 2005 15:09:28 +0000 (15:09 +0000)] 
Replace use of __amd64__ with VGA_amd64.

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

21 years agoMinor rearrangement, no functional change.
Nicholas Nethercote [Sat, 18 Jun 2005 15:07:39 +0000 (15:07 +0000)] 
Minor rearrangement, no functional change.

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

21 years agoMake do_syscall_WRK take UWord arguments and return UWord results to
Tom Hughes [Sat, 18 Jun 2005 11:58:18 +0000 (11:58 +0000)] 
Make do_syscall_WRK take UWord arguments and return UWord results to
avoid inappropriate truncations on 64 bit systems. Also make it static
as it is not used anywhere else.

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

21 years agoExport amd64 specific trampline offsets.
Tom Hughes [Sat, 18 Jun 2005 11:37:01 +0000 (11:37 +0000)] 
Export amd64 specific trampline offsets.

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

21 years agoMove VG_CLO_DEFAULT_LOGPORT to a better spot.
Nicholas Nethercote [Sat, 18 Jun 2005 04:13:54 +0000 (04:13 +0000)] 
Move VG_CLO_DEFAULT_LOGPORT to a better spot.

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

21 years agoRenamed tool_asm.h as pub_basics_asm.h. Removed core_asm.h.
Nicholas Nethercote [Sat, 18 Jun 2005 04:10:56 +0000 (04:10 +0000)] 
Renamed tool_asm.h as pub_basics_asm.h.  Removed core_asm.h.

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

21 years agoMoved VGA_(getArchAndSubArch) into m_translate and made it local. This
Nicholas Nethercote [Sat, 18 Jun 2005 03:44:34 +0000 (03:44 +0000)] 
Moved VGA_(getArchAndSubArch) into m_translate and made it local.  This
allowed the removal of $ARCH/state.c, hooray!

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

21 years agoMoved the code trampoline stuff into a new module, m_trampoline. Not
Nicholas Nethercote [Sat, 18 Jun 2005 03:27:58 +0000 (03:27 +0000)] 
Moved the code trampoline stuff into a new module, m_trampoline.  Not
certain this was the right thing to do, but that stuff sure as hell
didn't fit in any of the existing modules.

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

21 years agoMoved VG_BUGS_TO out of basic_types.h into libcassert.h.
Nicholas Nethercote [Sat, 18 Jun 2005 02:25:16 +0000 (02:25 +0000)] 
Moved VG_BUGS_TO out of basic_types.h into libcassert.h.

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

21 years agoCreated coregrind.h, a counterpart to valgrind.h containing the internal
Nicholas Nethercote [Sat, 18 Jun 2005 02:18:04 +0000 (02:18 +0000)] 
Created coregrind.h, a counterpart to valgrind.h containing the internal
client requests.

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

21 years agoForgot to remove these decls in the last commit.
Nicholas Nethercote [Sat, 18 Jun 2005 01:42:21 +0000 (01:42 +0000)] 
Forgot to remove these decls in the last commit.

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

21 years agoMoved two functions out of $ARCH/state.c into m_main, the only module
Nicholas Nethercote [Sat, 18 Jun 2005 01:35:16 +0000 (01:35 +0000)] 
Moved two functions out of $ARCH/state.c into m_main, the only module
that uses them.

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

21 years agoRename m_syscalls/ as m_syswrap/ to complete the module renaming.
Nicholas Nethercote [Fri, 17 Jun 2005 22:27:21 +0000 (22:27 +0000)] 
Rename m_syscalls/ as m_syswrap/ to complete the module renaming.

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

21 years agoRenamed the m_syscalls module m_syswrap, which better describes what it
Nicholas Nethercote [Fri, 17 Jun 2005 22:19:06 +0000 (22:19 +0000)] 
Renamed the m_syscalls module m_syswrap, which better describes what it
does and better distinguishes it from m_syscall.  Did everything for this
except renaming the m_syscalls/ directory -- I'll do that shortly, I don't
think Subversion can handle renaming a directory and files within that
directory at the same time.

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

21 years agoMoved the basic syscall stuff out of m_libcbase.c into a new module
Nicholas Nethercote [Fri, 17 Jun 2005 21:31:45 +0000 (21:31 +0000)] 
Moved the basic syscall stuff out of m_libcbase.c into a new module
m_syscall.c.  Plus some associated cleanups.

Moved VG_(sigreturn) into m_signals.c and made it local.

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

21 years agoFix strchr. It was rather bogus.
Nicholas Nethercote [Fri, 17 Jun 2005 19:28:29 +0000 (19:28 +0000)] 
Fix strchr.  It was rather bogus.

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

21 years agoDon't do strlen on ui->compdir if it is NULL. Duh.
Julian Seward [Fri, 17 Jun 2005 13:06:53 +0000 (13:06 +0000)] 
Don't do strlen on ui->compdir if it is NULL.  Duh.

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

21 years agoRenamed VG_(mark_from_registers) to the more general
Nicholas Nethercote [Fri, 17 Jun 2005 03:06:27 +0000 (03:06 +0000)] 
Renamed VG_(mark_from_registers) to the more general
VG_(apply_to_GP_regs).  Moved it into m_machine.

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

21 years agoForgot to add strchrc.stderr.exp.
Nicholas Nethercote [Thu, 16 Jun 2005 13:14:51 +0000 (13:14 +0000)] 
Forgot to add strchrc.stderr.exp.

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

21 years agoMake sure redirects are fully initialised and add them to the resolved
Tom Hughes [Thu, 16 Jun 2005 09:20:43 +0000 (09:20 +0000)] 
Make sure redirects are fully initialised and add them to the resolved
list straight away if they are resolved or we will wind up asserting.

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

21 years agoA cleanup of the redirection stuff.
Nicholas Nethercote [Thu, 16 Jun 2005 03:56:58 +0000 (03:56 +0000)] 
A cleanup of the redirection stuff.

- Renamed VG_INTERCEPT as VG_REPLACE_FUNCTION to make its purpose
  clearer.

- Renamed VG_WRAPPER as VG_NOTIFY_ON_LOAD to make its purpose cleare.
  Started calling that stuff "load notification".

- Moved various things into m_redir.c, a much more sensible place for
  them.  This reduced the number of exported functions overall.  Renamed
  intercept_demangle() as Z_decode() as part of this.

- Improved the documentation of this stuff, especially in
  pub_core_redir.c.

- Got --run-libc-freeres=yes working again.  It was doing nothing.

- Renamed vg_inject.so as vg_preload_core.so to match
  vg_preload_<tool>.so

- Renamed vg_intercept.c as vg_preloaded.c.  (I kept the "vg_" prefix
  because this filename can appear in stack traces, so the "vg_" is a
  useful hint for users that it belongs to Valgrind.)

- Removed all the Memcheck-specific calls to add_redirect_sym_to_sym()
  from VG_(setup_redirect_table)(), instead using VG_REPLACE_FUNCTION in
  mac_replace_strmem.c, just like vg_replace_malloc.c.  This is the
  right way to do it.  This required moving some of
  coregrind/pub_core_redir.h into the newly added
  include/pub_tool_redir.h.  add_redirect_sym_to_sym() is no longer
  used...

- Now only handing off symbols to m_redir for inspection/decoding after
  they have been deemed to be interesting by the symbol table reader.

- Factored out commonality between the add_redirect_*_to_* functions
  into add_redirect_X_to_X().

- Added "Zh", meaning '-' ('h' for "hyphen"), to the Z-decoding scheme,
  to handle sonames like "ld-linux-x86-64.so.2".

- Added a FAQ explaining the newly found issue of glibc aliasing
  sometimes causing the wrong function name to appear in stack traces.

- Added a new regtest strchr.c.  It's possible this will fail on some
  platforms.  If so, an alternative output file can be provided, but
  I'd like to see it in practice first.

It's possible that there will be minor breakage on other
platforms/setups, but it should be minimal and easily fixable.

Plus some ordinary cleanups in symtab.c:

- Removed the old optimisation from VG_(addStr)() whereby it kept track
  of the previous 5 added strings and avoiding duplicating any of them.
  Turns out it was barely having any effect any more, and just
  complicated things.

- Made read_symtab() more readable, by introducing a new variable
  "sym_name" and introducing the auxiliary function
  is_symbol_interesting().

- renamed the module variable 'segInfo' as 'segInfo_list' to make it
  more obvious it's a module variable and not just some ordinary local
  variable (which was an easy mistake to make).

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

XXX: [later] remove add_redirect_sym_to_sym, and everything related to
     X_to_sym?  (ie. only need X_to_addr)

XXX: better function names?  all those 'resolved' names...
     [later...]

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

21 years agoUpdate expected output.
Julian Seward [Wed, 15 Jun 2005 21:34:35 +0000 (21:34 +0000)] 
Update expected output.

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

21 years agoEnable the fadvise system calls again.
Tom Hughes [Wed, 15 Jun 2005 10:31:10 +0000 (10:31 +0000)] 
Enable the fadvise system calls again.

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

21 years agoFix message to refer to the correct file.
Tom Hughes [Wed, 15 Jun 2005 10:24:26 +0000 (10:24 +0000)] 
Fix message to refer to the correct file.

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

21 years agoWhen separate debug information is used make sure we look for all
Tom Hughes [Wed, 15 Jun 2005 10:19:43 +0000 (10:19 +0000)] 
When separate debug information is used make sure we look for all
the DWARF sections we now need in the separate debug file.

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

21 years agoicc police strike again
Julian Seward [Tue, 14 Jun 2005 21:59:16 +0000 (21:59 +0000)] 
icc police strike again

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

21 years agoComplete the merge of Eric Estievenart's DWARF2 directory-reading
Julian Seward [Tue, 14 Jun 2005 21:51:14 +0000 (21:51 +0000)] 
Complete the merge of Eric Estievenart's DWARF2 directory-reading
patch.  This actually requires a major restructuring of the DWARF2
line number reading stuff.

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

21 years agoBe quieter when outputting XML.
Julian Seward [Mon, 13 Jun 2005 18:22:17 +0000 (18:22 +0000)] 
Be quieter when outputting XML.

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

21 years agoUpdates to the rest of the debuginfo module to track directory names.
Julian Seward [Mon, 13 Jun 2005 17:39:06 +0000 (17:39 +0000)] 
Updates to the rest of the debuginfo module to track directory names.
The only interesting part is a change of signature of
VG_(get_filename_linenum) so that callers can optionally request
directory info too.

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

21 years agoPartially merge in a (heavily modified) patch from Eric Estievenart
Julian Seward [Mon, 13 Jun 2005 17:33:27 +0000 (17:33 +0000)] 
Partially merge in a (heavily modified) patch from Eric Estievenart
which adds support for reading directory names from DWARF2 debug info.

Also rework the representation of file and directory tables in the
DWARF2 reader.  This removes a longstanding but only-just-discovered
curiousity that the previous code expanded the filename table one
entry at a time, so that reading file names from a DWARF2 object was
quadratic in the number of file names.  It's now N log N.

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

21 years agoUpdated date :-)
Julian Seward [Mon, 13 Jun 2005 16:50:29 +0000 (16:50 +0000)] 
Updated date :-)

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

21 years agoEmit XML preamble in a more parseable way.
Julian Seward [Mon, 13 Jun 2005 16:48:32 +0000 (16:48 +0000)] 
Emit XML preamble in a more parseable way.

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

21 years agoUpdate with recent (minor) changes.
Julian Seward [Mon, 13 Jun 2005 16:44:33 +0000 (16:44 +0000)] 
Update with recent (minor) changes.

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

21 years agoMake iropt not complain about missing folding rules at the default
Julian Seward [Mon, 13 Jun 2005 16:30:18 +0000 (16:30 +0000)] 
Make iropt not complain about missing folding rules at the default
verbosity setting (zero).

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

21 years agoThe guest-state effect declaration for x86 'fldenv' has been wrong for
Julian Seward [Mon, 13 Jun 2005 12:33:36 +0000 (12:33 +0000)] 
The guest-state effect declaration for x86 'fldenv' has been wrong for
a long time -- it says fldenv writes the FP regs, which isn't true.

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

21 years agoImplement fldenv/fstenv on amd64.
Julian Seward [Mon, 13 Jun 2005 12:17:27 +0000 (12:17 +0000)] 
Implement fldenv/fstenv on amd64.

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

21 years agoComment fix - the ARCH_SET_xxx constants are in the x86_64 prctl.h as well.
Tom Hughes [Mon, 13 Jun 2005 08:46:57 +0000 (08:46 +0000)] 
Comment fix - the ARCH_SET_xxx constants are in the x86_64 prctl.h as well.

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

21 years agoCreated m_machine, for various machine-related things.
Nicholas Nethercote [Mon, 13 Jun 2005 04:21:38 +0000 (04:21 +0000)] 
Created m_machine, for various machine-related things.

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

21 years agoImprove comment.
Nicholas Nethercote [Sun, 12 Jun 2005 20:51:09 +0000 (20:51 +0000)] 
Improve comment.

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

21 years agoMove VG_(libdir) into m_libcproc.
Nicholas Nethercote [Sun, 12 Jun 2005 17:47:24 +0000 (17:47 +0000)] 
Move VG_(libdir) into m_libcproc.

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

21 years agoMoved the last two functions out of linux/core_os.c, and removed it.
Nicholas Nethercote [Sun, 12 Jun 2005 17:26:29 +0000 (17:26 +0000)] 
Moved the last two functions out of linux/core_os.c, and removed it.

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

21 years agoFormatting wibble
Nicholas Nethercote [Sun, 12 Jun 2005 16:43:33 +0000 (16:43 +0000)] 
Formatting wibble

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

21 years agomc-tech-docs.xml:
Donna Robinson [Sun, 12 Jun 2005 10:23:23 +0000 (10:23 +0000)] 
mc-tech-docs.xml:
- fixed link to comply with house-style
mc-manual.xml:
- rm'd unhelpful sentence + it's footnote
quick-start-guide.xml:
- fixed up some section ids + xreflabels
  so we don't get cool filenames like 'bk01s02.html'.

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

21 years agoMove the *ROUND* macros to a better place.
Nicholas Nethercote [Sun, 12 Jun 2005 04:34:51 +0000 (04:34 +0000)] 
Move the *ROUND* macros to a better place.

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

21 years agoMoved more stuff out of core_os.c into better places.
Nicholas Nethercote [Sun, 12 Jun 2005 04:19:17 +0000 (04:19 +0000)] 
Moved more stuff out of core_os.c into better places.

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

21 years agoMove VG_(fcntl) into m_libcfile.
Nicholas Nethercote [Sun, 12 Jun 2005 02:49:35 +0000 (02:49 +0000)] 
Move VG_(fcntl) into m_libcfile.

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

21 years agoFinished the modularisation of vg_mylibc.c, which meant it could be removed.
Nicholas Nethercote [Sun, 12 Jun 2005 02:43:17 +0000 (02:43 +0000)] 
Finished the modularisation of vg_mylibc.c, which meant it could be removed.

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

21 years agoMove comment to the right place.
Nicholas Nethercote [Sun, 12 Jun 2005 00:06:24 +0000 (00:06 +0000)] 
Move comment to the right place.

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

21 years agowibble
Nicholas Nethercote [Sat, 11 Jun 2005 17:19:18 +0000 (17:19 +0000)] 
wibble

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

21 years agoModularised the libc low-level memory management stuff (mmap, etc).
Nicholas Nethercote [Sat, 11 Jun 2005 15:51:30 +0000 (15:51 +0000)] 
Modularised the libc low-level memory management stuff (mmap, etc).

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

21 years agoPRE(wrap_sys_shmat): don't change ARG2 if we're going to pre-fail the
Julian Seward [Sat, 11 Jun 2005 10:47:27 +0000 (10:47 +0000)] 
PRE(wrap_sys_shmat): don't change ARG2 if we're going to pre-fail the
syscall.

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

21 years agoStop gcc complaining about Helgrind on 64-bit platforms. Note, this
Julian Seward [Sat, 11 Jun 2005 10:33:35 +0000 (10:33 +0000)] 
Stop gcc complaining about Helgrind on 64-bit platforms.  Note, this
is not a proper fix :-)

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

21 years agoamd64 build fixes.
Julian Seward [Sat, 11 Jun 2005 10:32:57 +0000 (10:32 +0000)] 
amd64 build fixes.

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

21 years agoRemove use of vki_unistd.h -- not needed, and coregrind/amd64/state.c
Julian Seward [Sat, 11 Jun 2005 10:23:41 +0000 (10:23 +0000)] 
Remove use of vki_unistd.h -- not needed, and coregrind/amd64/state.c
doesn't include it.

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

21 years agoRemove VG_ERRTXT_LEN from core.h.
Nicholas Nethercote [Sat, 11 Jun 2005 05:04:09 +0000 (05:04 +0000)] 
Remove VG_ERRTXT_LEN from core.h.

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

21 years agoMove some decls out of tool.h into the new file pub_tool_aspacemgr.h.
Nicholas Nethercote [Sat, 11 Jun 2005 04:58:29 +0000 (04:58 +0000)] 
Move some decls out of tool.h into the new file pub_tool_aspacemgr.h.

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

21 years agoMove NULL from tool.h into basic_types.h.
Nicholas Nethercote [Sat, 11 Jun 2005 04:44:38 +0000 (04:44 +0000)] 
Move NULL from tool.h into basic_types.h.

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

21 years agoMove OINK from tool.h to pub_tool_libcprint.h.
Nicholas Nethercote [Sat, 11 Jun 2005 03:31:09 +0000 (03:31 +0000)] 
Move OINK from tool.h to pub_tool_libcprint.h.

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

21 years agoRemove the hard-coding of "_vgi_" as the intercept prefix in
Nicholas Nethercote [Sat, 11 Jun 2005 03:28:48 +0000 (03:28 +0000)] 
Remove the hard-coding of "_vgi_" as the intercept prefix in
vg_replace_malloc.c.

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