File: process_wrapper.sh

package info (click to toggle)
android-platform-build 21-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,204 kB
  • ctags: 3,464
  • sloc: python: 3,797; cpp: 2,788; cs: 1,971; sh: 1,302; makefile: 1,114; ansic: 917; java: 734
file content (17 lines) | stat: -rwxr-xr-x 535 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# When using a process wrapper, this is the top-level
# command that is executed instead of the server
# command.  It starts a new xterm in which the user can
# interact with the new process.
#
# Inside of the xterm is a gdb session, through which
# the user can debug the new process.

# Save away these variables, since we may loose them
# when starting in the xterm.
export PREV_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
export PREV_PATH=$PATH

gnome-terminal -t "Wrapper: $1" --disable-factory -x $2/process_wrapper_gdb.sh "$@"