Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(751)

Unified Diff: debug_32bit.sh

Issue 6287010: crosutils:Remove dead scripts (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cros_upgrade_chroot ('k') | get_svn_repos.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debug_32bit.sh
diff --git a/debug_32bit.sh b/debug_32bit.sh
deleted file mode 100755
index 7ae6969ed5abbc730c246d7a116955149dde4e25..0000000000000000000000000000000000000000
--- a/debug_32bit.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/bash
-
-# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# Debug a 32 bit binary on 64 bit linux. Can be run from inside or outside
-# the chroot. If inside, then the 32 bit gdb from the chroot is used, otherwise
-# the system's 64 bit gdb is used.
-
-. "$(dirname "$0")/common.sh"
-
-# Command line options
-DEFINE_string chroot "$DEFAULT_CHROOT_DIR" "Location of chroot"
-
-# Parse command line and update positional args
-FLAGS "$@" || exit 1
-eval set -- "${FLAGS_ARGV}"
-
- # Die on any errors
-set -e
-
-if [ -z "$SYSROOT" ]; then
- if [ $INSIDE_CHROOT == 1 ]; then
- SYSROOT=/build/x86-generic
- else
- SYSROOT=$FLAGS_chroot/build/x86-generic
- fi
-fi
-
-if [ -z "$CHOST" ]; then
- CHOST="x86-generic"
-fi
-
-SYSROOT="$FLAGS_chroot/build/$CHOST"
-LIB_PATHS="/lib32:/usr/lib32:$LIB_PATHS:$SYSROOT/usr/lib:$SYSROOT/lib:."
-LIB_PATHS="$LIB_PATHS:$SYSROOT/opt/google/chrome/chromeos"
-
-if [ $INSIDE_CHROOT == 1 ]; then
- # if we're inside the chroot, the we'll be running a 32 bit gdb, so we'll
- # need the same library path as the target
- export LD_LIBRARY_PATH=$LIB_PATHS
- GDB="$SYSROOT/usr/bin/gdb"
-else
- GDB="gdb"
-fi
-
-exec $GDB \
- --eval-command "set environment LD_LIBRARY_PATH=$LIB_PATHS" \
- --eval-command "set sysroot $SYSROOT " \
- --eval-command "set prompt (cros-gdb) " \
- --args "$@"
« no previous file with comments | « cros_upgrade_chroot ('k') | get_svn_repos.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698