Commit Graph

22 Commits

Author SHA1 Message Date
Julian Seward
ac60633d65 Bug 345248 - add support for Solaris OS in valgrind
Authors of this port:
    Petr Pavlu         setup@dagobah.cz
    Ivo Raisr          ivosh@ivosh.net
    Theo Schlossnagle  theo@omniti.com
            


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15426
2015-07-21 14:44:28 +00:00
Julian Seward
082f9298a1 Add a port to Linux/TileGx. Zhi-Gang Liu (zliu@tilera.com)
Valgrind aspects, to match vex r3124.

See bug 339778 - Linux/TileGx platform support to Valgrind



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15080
2015-04-10 12:30:09 +00:00
Florian Krohm
665280aeaf Merge r14202 from the BUF_REMOVAL branch to trunk.
This patch changes the interface and behaviour of VG_(demangle) and
VG_(maybe_Z_demangle). Instead of copying the demangled name into a
fixed sized buffer that is passed in from the caller (HChar *buf, Int n_buf),
the demangling functions will now return a pointer to the full-length
demangled name (HChar **result). It is the caller's responsiblilty to
make a copy if needed. 

This change in function parameters ripples upward
- first: to get_sym_name
- then to the convenience wrappers
  - VG_(get_fnname)
  - VG_(get_fnname_w_offset)
  - VG_(get_fnname_if_entry)
  - VG_(get_fnname_raw)
  - VG_(get_fnname_no_cxx_demangle)
  - VG_(get_datasym_and_offset)

The changes in foComplete then forces the arguments of
  - VG_(get_objname) to be changed as well

There are some issues regarding the ownership and persistence of
character strings to consider.
In general, the returned character string is owned by "somebody else"
which means the caller must not free it. Also, the caller must not 
modify the returned string as it possibly points to read only memory.
Additionally, the returned string is not necessarily persistent. Here are
the scenarios:
- the returned string is a demangled function name in which case the
  memory holding the string will be freed when the demangler is called again.
- the returned string hangs off of a DebugInfo structure in which case
  it will be freed when the DebugInfo is discarded
- the returned string hangs off of a segment in the address space manager
  in which case it may be overwritten when the segment is merged with
  another segment
So the rule of thunb here is: if in doubt strdup the string.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14664
2014-10-25 19:20:38 +00:00
Philippe Waroquiers
ac73d50e9c Add missing file in EXTRA_DIST
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14390
2014-08-29 22:48:27 +00:00
Mark Wielaard
e5ce1c9b68 With gcc 4.9.1 exp-sgcheck/tests/globalerr sees array "a", not unknown.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14388
2014-08-29 21:18:17 +00:00
Mark Wielaard
8d3e1da04c exp-sgcheck/tests/hackedbz2.c mark vex_strlen as noinline
Explicitly set noinline so the test can check it is in the backtrace.
Newer gcc versions happily optimize it away otherwise.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14326
2014-08-21 12:33:31 +00:00
Florian Krohm
9de72049d5 Silence clang warnings for the none and exp-sgcheck tools.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13605
2013-10-02 15:37:03 +00:00
Petar Jovanovic
127fcef31f Change uname based arch-check to match machine hardware name in sgcheck.
Some hardware platforms will return "unknown" for 'uname -i', so it is more
accurate and common to run 'uname -m' which returns machine hardware name.
This way, some platforms that do not support sgcheck will avoid running tests
for it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13022
2012-10-04 23:53:03 +00:00
Petar Jovanovic
3acf4e19d3 exp-sgcheck is not supported for MIPS architecture.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12760
2012-07-19 15:40:48 +00:00
Florian Krohm
46b85eeb12 Require automake-1.10 for proper handling of include file dependencies
in .S files. Also included here is some cleanup, including a reversion
of r10378. Fixes bugzilla #197914.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12555
2012-05-06 03:37:25 +00:00
Florian Krohm
8853ef8bd7 Fix prerequisite to also require linux. So testcases get skipped
and do not fail on Darwin.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12261
2011-11-08 20:14:35 +00:00
Bart Van Assche
dfcdba8bdb Make sure that exp-sgcheck/tests/stackerr passes on openSUSE 11.4 x86
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12134
2011-10-11 18:17:48 +00:00
Florian Krohm
8c0229599d Update exp file. Back trace changed due to r12108.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12125
2011-10-08 15:58:26 +00:00
Bart Van Assche
71a513f01a Format functions: change format specifier %t into %pS. Remove the _no_f_c formatting function variants.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12108
2011-10-06 19:08:37 +00:00
Florian Krohm
31bc246787 Attempt to unbreak this testcase on systems with GCC 4.5.1 and newer.
I suspect the breakage is related to GCC's debug info.
Replace initialization with explicit assignment statement.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12100
2011-10-05 03:29:57 +00:00
Florian Krohm
dbf8393445 Update for x86. This should have happened in r11741 which
changed the message format.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12078
2011-10-02 00:18:29 +00:00
Julian Seward
ad7de5b336 Delete the AIX5 port. The last release this worked for is 3.4.1,
and then only on AIX 5.2 and 5.3.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11842
2011-06-28 07:25:29 +00:00
Julian Seward
0ffb0b1095 Update expected outputs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11763
2011-05-17 15:52:28 +00:00
Julian Seward
ea6aa5fd25 Make this test much more independent of glibc, and update outputs
accordingly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11762
2011-05-17 15:36:01 +00:00
Julian Seward
e9392d2bbc Remove old exp-ptrcheck tests which were never used.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11750
2011-05-12 19:15:06 +00:00
Julian Seward
f5fb84ba81 Delete exp-sgcheck tests that are redundant following the removal of the
heap checking facilities.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11749
2011-05-12 16:38:56 +00:00
Julian Seward
b71e8bb6c5 Rename 'exp-ptrcheck' to 'exp-sgcheck' and hope this does not cause
too much build carnage.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11745
2011-05-11 16:04:28 +00:00