Mail Archives: cygwin/1998/06/10/16:50:11
In article <19980610061343 DOT 42053 DOT cygnus DOT gnu-win32 AT murlibobo DOT cs DOT mu DOT OZ DOT AU>,
Fergus Henderson <fjh AT cs DOT mu DOT OZ DOT AU> wrote:
>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
Wow. That is exactly what I've been looking for. I knew about the '*'
construction but never put two and two together.
Thank you!
--
cgf AT cygnus DOT com "Everything has a boolean value, if you stand
http://www.cygnus.com/ far enough away from it." -- Galena Alyson Canada
- Raw text -