Author Topic: Can i make "step into" function from c shared library?  (Read 4739 times)

Offline freq

  • Single posting newcomer
  • *
  • Posts: 8
Can i make "step into" function from c shared library?
« on: June 19, 2013, 11:01:57 pm »
I'm linking c shared library to c++ project in ubuntu 13.04 using Code::Blocks 12.11
Can i make "step into" function from c shared library when i debug my c++ project?
If yes, how i can do this?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Can i make "step into" function from c shared library?
« Reply #1 on: June 20, 2013, 12:06:47 am »
Build the library with debug symbols (-g and no stripping).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline freq

  • Single posting newcomer
  • *
  • Posts: 8
Re: Can i make "step into" function from c shared library?
« Reply #2 on: June 20, 2013, 12:15:04 am »
no stripping
What do you mean?
Can you explain, please?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Can i make "step into" function from c shared library?
« Reply #3 on: June 20, 2013, 12:39:19 am »
no stripping
What do you mean?
Can you explain, please?

"no stripping" means DO NOT use the linker option "-s".

http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html

Quote
-s
    Remove all symbol table and relocation information from the executable.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline freq

  • Single posting newcomer
  • *
  • Posts: 8
Re: Can i make "step into" function from c shared library?
« Reply #4 on: June 20, 2013, 12:54:25 am »
Thank you very much.