delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/09/23:50:12

From: fjh AT cs DOT mu DOT OZ DOT 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 DOT IAA28432 DOT cygnus DOT gnu-win32 AT monty>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

On 08-Jun-1998, Christopher G. Faylor <cgf AT cygnus DOT 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 AT cs DOT mu DOT oz DOT 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 AT 128 DOT 250 DOT 37 DOT 3        |     -- the last words of T. S. Garp.
-
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