blob: 9c3104ef83e4db4c55132f3a1e220d39aa10502e [file] [log] [blame]
The Android Open Source Project88b60792009-03-03 19:28:42 -08001#!/bin/sh
2
3# When using a process wrapper, this is the top-level
4# command that is executed instead of the server
5# command. It starts a new xterm in which the user can
6# interact with the new process.
7#
8# Inside of the xterm is a gdb session, through which
9# the user can debug the new process.
10
11# Save away these variables, since we may loose them
12# when starting in the xterm.
13export PREV_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
14export PREV_PATH=$PATH
15
16gnome-terminal -t "Wrapper: $1" --disable-factory -x $2/process_wrapper_gdb.sh "$@"
17