delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/10/23:00:39

From: Kjeld DOT F DOT Christensen AT dxd DOT ericsson DOT se
Subject: Re: Parsing *.EXE.core files
10 Jun 1998 23:00:39 -0700 :
Message-ID: <H00000b0000707ab.cygnus.gnu-win32@MHS>
References: <357d5977 DOT 136376970 AT smtp DOT goodnet DOT com>
Mime-Version: 1.0
Cc: gnu-win32 AT cygnus DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019