Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Debugging C++ shared libraries under Linux
Debugging C++ shared libraries under Linux [message #144829] Sat, 07 May 2005 22:55 Go to next message
Eclipse UserFriend
Originally posted by: hasmeta.yahoo.com

I am running eclipse 3.0.2 under Linux kernel 2.6.8 and g++ 3+. I have a
C++ library that is built as a shared object and would like to be able to
debug it as a third party application attaches to it, but have been unable
to do so. Any pointers on the topic is greatly appreciated. Thanks,
Re: Debugging C++ shared libraries under Linux [message #144891 is a reply to message #144829] Mon, 09 May 2005 01:18 Go to previous message
Eclipse UserFriend
Originally posted by: stefanm.uniblue.net

hasmeta wrote:

> I am running eclipse 3.0.2 under Linux kernel 2.6.8 and g++ 3+. I have a
> C++ library that is built as a shared object and would like to be able to
> debug it as a third party application attaches to it, but have been unable
> to do so. Any pointers on the topic is greatly appreciated. Thanks,

Well, I am not sure about linux as I am using Windows. However I can say
that I can debug my shared libraries without problem. However one stupid
thing happened when I moved to Eclipse and GNU is that I forgot to build
debug and release versions. If your project properties are not set to
build a debug version then no information will be available for the
debugger to debug the shared library and subsequently you will not be able
to attach yourself to the shared library.

I would suggest the following: Build a minimal shared library with one
function and then create a client console poject that uses the library. A
minimalistic approach. Ensure that all project settings are correct and
start from there.

Good luck,

Stefan
Previous Topic:Newbie ? on Make Src Directory
Next Topic:CDT versus M$ SFU
Goto Forum:
  


Current Time: Fri May 09 23:11:17 EDT 2025

Powered by FUDForum. Page generated in 0.03245 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top