[dev] Add script for debugging 32bit x86 binaries in chroot
[dev] Add script for debugging 32bit x86 binaries in chroot

When I'm working, I build and run my unit tests often.  Sometimes they
crash and I'd like to debug them.  This script automates the setup
needed to run (from my development chroot) a gdb that can handle
binaries built for a 32bit x86 target.  It also has support for pulling in
split-out debug symbols, libraries in a non-standard location, and a core file

The common case:
$ debug_32bit.sh --board x86-generic shill_unittest

Max flexibility:
$ debug_32bit.sh --board x86-generic --sysroot /tmp/m --debug_file_dir ./debug /tmp/m/sbin/session_manager session_manager.20111015.024847.3848.core

BUG=None
TEST=CXXFLAGS=-g cros_workon_make --board x86-generic shill --test; debug_32bit.sh --board x86-generic shill_unittest

Change-Id: Ie0b3973010e36e8e4548d631517caa75327d2f38
Reviewed-on: http://gerrit.chromium.org/gerrit/10494
Reviewed-by: Chris Masone <98e3d65c6b0e9e2391eb4c2e8b1e572b77e544ed@chromium.org>
Tested-by: Chris Masone <98e3d65c6b0e9e2391eb4c2e8b1e572b77e544ed@chromium.org>
Commit-Ready: Chris Masone <98e3d65c6b0e9e2391eb4c2e8b1e572b77e544ed@chromium.org>

coreos/dev-util,marineam/coreos-dev-util,coreos/dev-util,marineam/coreos-dev-util,mgireesh05/dev-util,mgireesh05/dev-util,mgireesh05/dev-util,coreos/dev-util