How to debug executable with shared library

Ask questions about Arch Linux ARM. Please search before making a new topic.

How to debug executable with shared library

Postby mwpowellhtx » Tue Mar 19, 2013 4:05 pm

Hello,

I'm reaching out to find answers to a perplexing question.

Background and environment:

Host: Ubuntu Linux 10.04 LTS with some 12.x upgrades.
Target: ARM (soft) running ArchLinux (latest AFAIK) Kernel 3.7.1 (AFAIK)
Development: Sourcery CodeBench: GCC 4.7.2 (AFAIK) with c++11 support

Briefly, I can run and debug a simple executable just fine. Now I want to graduate to the next level and include a shared library in the same workspace. Our workspace goes something like this:

factorial-sample/
factorial-sample-lib/

factorial-sample (executable) references the factorial-sample-lib (shared library). All I want to do for example/training purposes is move the factorial function into the shared library.

It builds okay, that's successful. However, attempts to debug on the target are met with frustration: can't seem to tell Eclipse/CodeBench to deploy the shared library along with the executable.

It's also possible I need to configure a shared library debug session itself. That is, to include the target executable with it, and simply debug into the shared library. Kind of cumbersome, but that's plausible as well.

Anyone done something like this, or with these sorts of tool chains, that you'd be willing to share?

Thanks...

Regards,

Michael Powell
mwpowellhtx
 
Posts: 8
Joined: Thu Feb 14, 2013 12:00 pm

Return to User Questions

Who is online

Users browsing this forum: No registered users and 11 guests