Mail Archives: cygwin/1998/06/10/23:00:39
I use the following script:
#!/bin/sh
if [ "$1" = "" ] ; then
echo usage gdbcore corefile
exit 0
fi
program=`head -1 $1 | awk '{print $1}' | tr '(\\\\' ' /' `
if [ -f $program ] ; then
awk '/pc =/{ printf ( "info line *%s\n",$10 ) }' $1 > gdbinit
gdb $program -x gdbinit
else
echo $program not found
exit 2
fi
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -