Can't step into shared library function
dao_at_snakebrook.com
Date: 01/31/05
- Next message: Kasper Dupont: "Re: Getting eth0 ip address"
- Previous message: Jose Maria Lopez Hernandez: "Re: Getting eth0 ip address"
- Next in thread: Alvin Beach: "Re: Can't step into shared library function"
- Reply: Alvin Beach: "Re: Can't step into shared library function"
- Reply: David E. Konerding DSD staff: "Re: Can't step into shared library function"
- Reply: Andrei Voropaev: "Re: Can't step into shared library function"
- Reply: Last2Know: "Re: Can't step into shared library function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 Jan 2005 12:42:10 -0800
This is crazy. I have done thins so many times before, on Solaris and
I'm pretty sure linux as well.
I can't step into a function contained within my shared library. I have
broken out a simple example where the .so containes just a single
function: foo() and the main.c program contains main() which calls
foo() and exits. The program works as foo() prints out a message. I
can't, however, use gdb to step into the foo() form main(). Yes, the
source for foo.c is compiled with -g. Here's the comlete output from
make:
andromeda: /home/dao/tmp > make
cc -g -c main.c
cc -g -c foo.c
cc -shared -o libfoo.so foo.o
cc -o main main.o -L. -lfoo
The versions of the OS, gcc and gdb are
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
GNU gdb 6.2
Linux andromeda 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386
GNU/Linux
This is red hat 9.
Attempting to step into foo() from main() results in essentially the
safe thing as 'next'. I am typing 'step' to make sure I am not hitting
some alias.
I'm just baffled by this.
Any help is appreciated.
Thanks, Jack
- Next message: Kasper Dupont: "Re: Getting eth0 ip address"
- Previous message: Jose Maria Lopez Hernandez: "Re: Getting eth0 ip address"
- Next in thread: Alvin Beach: "Re: Can't step into shared library function"
- Reply: Alvin Beach: "Re: Can't step into shared library function"
- Reply: David E. Konerding DSD staff: "Re: Can't step into shared library function"
- Reply: Andrei Voropaev: "Re: Can't step into shared library function"
- Reply: Last2Know: "Re: Can't step into shared library function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|