From: fjh@cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: Parsing  *.EXE.core files
9 Jun 1998 23:50:12 -0700
Message-ID: <19980610061343.42053.cygnus.gnu-win32@murlibobo.cs.mu.OZ.AU>
References: <199806081257.IAA28432.cygnus.gnu-win32@monty>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
To: gnu-win32@cygnus.com

On 08-Jun-1998, Christopher G. Faylor <cgf@cygnus.com> wrote:
> >2. Does anyone know how to get GDB to erturn a source line number ginve
> >   an address.

Well, one way is to use the "list *address" command.

(gdb) list *main
0x120001170 is in main (foo.c:20).
.... followed by 10 lines of stuff you can ignore

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3        |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
