]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Pick up 'egrep' and 'strings' from $PATH instead of using
authorFlorian Krohm <florian@eich-krohm.de>
Wed, 16 Sep 2015 08:59:03 +0000 (08:59 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Wed, 16 Sep 2015 08:59:03 +0000 (08:59 +0000)
hardwired absolute path names. People can always arrange $PATH
such that these tools are found.
Fixes BZ #294065. Patch by Austin English <austinenglish@gmail.com>

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

NEWS
coregrind/m_debuginfo/readpdb.c

diff --git a/NEWS b/NEWS
index 7119ab8b8de9f3663b1303b6b7f328eccaaa4abf..872a56011ead0ae2d0fb292ab2631e20016c9d02 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -193,6 +193,7 @@ where XXXXXX is the bug number as listed below.
 226609  Crediting upstream authors in man page
 231257  Valgrind omits path when executing script from shebang line
 254164  OS X task_info: UNKNOWN task message [id 3405, to mach_task_self() [..]
+294065  Improve the pdb file reader by avoiding hardwired absolute pathnames
 269360  s390x: Fix addressing mode selection for compare-and-swap
 302630  Memcheck: Assertion failed: 'sizeof(UWord) == sizeof(UInt)'
         == 326797
index 08a9f56819b43bb36fdeff0b981ea0f8aa0317d2..8b63e9562e65ceaa9e8fa8e7ced80a0f39816c63 100644 (file)
@@ -2503,8 +2503,8 @@ HChar* ML_(find_name_of_pdb_file)( const HChar* pename )
       sh -c "strings (pename) | egrep '\.pdb$|\.PDB$' > (tmpname)"
    */
    const HChar* sh      = "/bin/sh";
-   const HChar* strings = "/usr/bin/strings";
-   const HChar* egrep   = "/usr/bin/egrep";
+   const HChar* strings = "strings";
+   const HChar* egrep   = "grep -E";
 
    /* (sh) -c "(strings) (pename) | (egrep) 'pdb' > (tmpname) */
    Int cmdlen = VG_(strlen)(strings) + VG_(strlen)(pename)