Community
cancel
Showing results for 
Search instead for 
Did you mean: 
YHade
New Contributor I
1,950 Views

Problem Debugging mit GDB in Eclipse (Galileo Gen2)

Hello,

I did not find details how to solve the problem here:

so i decided to create new thread, i'll add screenshot and details, so other members can save hours and days if they get the same error.

I have only one problem (the big one) then i'll finish my project based on Galileo Gen2.

The problem is my programme works fine but i can not debug it, i got an error.

I guess, GDB can not load the full symbol-file?

warning: Unable to find dynamic linker breakpoint function.

GDB will be unable to debug shared library initializers

and track explicitly loaded dynamic code.

warning: Could not load shared library symbols for 12 libraries, e.g. linux-gate.so.1.

Use the "info sharedlibrary" command to see the complete listing.

Do you need "set solib-search-path" or "set sysroot"?

info sharedlibrary

From To Syms Read Shared Object Library

No linux-gate.so.1

No /usr/lib/libmraa.so.1

No /usr/lib/libstdc++.so.6

No /lib/libm.so.6

No /lib/libgcc_s.so.1

No /lib/libc.so.6

No /lib/libpthread.so.0

No /lib/ld-linux.so.2

No /lib/libnss_compat.so.2

No /lib/libnsl.so.1

No /lib/libnss_nis.so.2

No /lib/libnss_files.so.2

Eclipse Platform:

Version: Luna SR2 (4.4.2)

Build id: M20150204-1700

Image: last Yacto downloaded from Intel website.

Thank you in advance

Regards

11 Replies
idata
Community Manager
134 Views

Hello Yacine85,

 

 

In order to use the debug functionality of Eclipse with Galileo you must have installed the debug library both on the host machine and the target, did you make sure to install it on both of them?

 

 

Peter.
YHade
New Contributor I
134 Views

Hey Peter,

I have GDB and GCC on my Windows.

you mean GDB and GCC and so one, or which debug library/how to install it?

Regards

idata
Community Manager
134 Views

Hi Yacince85,

 

 

The libraries that I mean are the mraa and upm debug libraries. Did you make sure to install them? They don't come pre-installed on the board by default, however they can be downloaded from the official repo: http://iotdk.intel.com/repos/3.0/. If you need help setting it up, let me know.

 

 

Peter.
YHade
New Contributor I
134 Views

Hi Peter,

i installed upm and mraa in Galileo and in Eclipse (synchronized) that what you mean?

Please let me know how i can do that if i'm wrong.

Regards

idata
Community Manager
134 Views

These are the libraries that I mean:

Let me know if you need help setting up the repo, I'll be glad to help.

Peter.

YHade
New Contributor I
134 Views

Yes i have that in Galileo, exactly the same:

Regards

idata
Community Manager
134 Views

I apologize my previous post was confusing. What I meant is that you should install those libraries. The output your board is currently showing only indicates that they're available. You can install them with the following command:

 

 

opkg install mraa-dbg mraa-dev upm-dbg upm-dev

 

 

Try that and let me know.

 

Peter.
YHade
New Contributor I
134 Views

Already done but no change with the probleme GDB, still the same.

You sid, i must install libraries on both, how can i install it on Windows 7?

idata
Community Manager
134 Views

Hi Yacine85,

 

 

From your first post I see that you checked this other thread, /thread/60102 https://communities.intel.com/thread/60102. However, I'm wondering if you tried to implement the solution from that thread. Did you? If so, what exactly did you do? As far as I understand, you'll need to add the libraries path to your project (the one from the library list that you shared in your first post), then you'll be able to solve the issue.

 

 

Regards,

 

Pablo
YHade
New Contributor I
134 Views

Hi Pablo,

yes i tried but the problem still the same.

I cannot debug my programs in C only what i wrote in Assembler.

Regards

idata
Community Manager
134 Views

Hi Yacine85,

Your configuration looks fine, right now it looks like it should work. Currently my best suggestion is that you try to reinstall the IDE and try again. Let us know if that helps.

-Peter.

Reply