From: Kjeld.F.Christensen@dxd.ericsson.se
Subject: Re: Parsing  *.EXE.core files
10 Jun 1998 23:00:39 -0700
Message-ID: <H00000b0000707ab.cygnus.gnu-win32@MHS>
References: <357d5977.136376970@smtp.goodnet.com>
Mime-Version: 1.0
Content-Type: text/plain; name="Re:"; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: gnu-win32@cygnus.com

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@cygnus.com" with one line of text: "help".
