Commit 3a70be9b authored by thestig@chromium.org's avatar thestig@chromium.org

Valgrind: Remove reference to gdb32.

Instead, just use plain gdb, which should be able to handle 32-bit binaries.

NOTRY=true

Review URL: https://codereview.chromium.org/404303002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284602 0039d316-1c4b-4281-b951-d872f2087c98
parent 39b324e8
...@@ -17,19 +17,9 @@ export THISDIR=`dirname $0` ...@@ -17,19 +17,9 @@ export THISDIR=`dirname $0`
setup_memcheck() { setup_memcheck() {
RUN_COMMAND="valgrind" RUN_COMMAND="valgrind"
GDB=gdb
EXE_INFO=$(file $1)
if [[ $? -eq 0 ]]; then
# Prefer a gdb that matches the executable if it's available.
if [[ "$EXE_INFO" == *32-bit* && -x /usr/bin/gdb32 ]]; then
GDB="/usr/bin/gdb32";
elif [[ "$EXE_INFO" == *64-bit* && -x /usr/bin/gdb64 ]]; then
GDB="/usr/bin/gdb64";
fi
fi
# Prompt to attach gdb when there was an error detected. # Prompt to attach gdb when there was an error detected.
DEFAULT_TOOL_FLAGS=("--db-command=$GDB -nw %f %p" "--db-attach=yes" \ DEFAULT_TOOL_FLAGS=("--db-command=gdb -nw %f %p" "--db-attach=yes" \
# Keep the registers in gdb in sync with the code. # Keep the registers in gdb in sync with the code.
"--vex-iropt-register-updates=allregs-at-mem-access" \ "--vex-iropt-register-updates=allregs-at-mem-access" \
# Overwrite newly allocated or freed objects # Overwrite newly allocated or freed objects
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment