On Tue, Jun 11, 2002 at 04:36:47AM -0400, John Baldwin wrote:
> > 2. How do I trace back funcname+offset to a particular line of C code ?
> > I tried objdump -d and gcc -S, but it's not easy to read. I thought
> > there was a way to get gcc to interleave the C code and the generated
> > assembly.
>
> gdb's 'l *foo+0x34' works wonders. :) If you are stuck with a kernel.debug
> on current that gdb doesn't grok, you can use nm to extract the address of
> the function, add the offset, and use 'addr2line -e kernel.debug 0xc0yyyyyy'.
I was looking for
objdump -S foo.o
-Arun
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message