Subject: Re: Parsing *.EXE.core files
From: [email-masked]

10 Jun 1998 23:00:39 -0700
Message-ID: <H00000b0000707ab.cygnus.gnu-win32@MHS>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; name="Re:"; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: [email-masked]

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
"[email-masked]" with one line of text: "help".