This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb c++ template functions


hello,

> uname -a
Darwin  8.9.0 Darwin Kernel
>gdb --version
GNU gdb 6.3.50-20050815 (Apple version gdb-563) (Wed Jul 19 05:17:43 GMT 2006)
>g++ --version
g++-dp-4.2 (GCC) 4.2.0 20070307 (prerelease)

I have built a shared library (.dylib on darwin platform) which contains explicitly instantiated
c++ templates.
Using gdb under emacs, as i step inside main(), everything works fine.
When i step in the first function that is inside the shared library, the correct line is shown
in the source code, but:
#3  0x00242678 in FINH::PricingModel::price (this=Could not find the frame base for "FINH::PricingModel::price(FINH::Contract const&, FINH::PricingModelParameters const&) const".
) at PricingModel.h:151
#4  0x00003750 in main (argc=3, argv=0xbffff494) at main.cpp:30

the message "Could not find the frame base for " is displayed.

I can correctly continue stepping after that point, but i can't print/display arguments, local variables....

any ideas,

thanks,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]