File: gdbstexec

package info (click to toggle)
steptalk 0.10.0%2Bgit20200629-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,732 kB
  • sloc: objc: 12,182; yacc: 400; makefile: 40; sh: 34; csh: 4; awk: 3; lisp: 3
file content (19 lines) | stat: -rwxr-xr-x 413 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/csh
#
# gdbstexec - GDB wrapper for stexec
#
# Put this file to be reachable from your PATH
# 
# Use like stexec:
#        gdbstexec script_name ...
# This will run stexec in gdb and run it with script script_name. After
# finishing, backtrace is displayed
#
 

# set temp = `tempfile -p stexec`
# echo set args $*:q > $temp
# echo run >> $temp
# echo bt >> $temp
gdb --args `which stexec` $*:q
# rm $temp