public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug server/14670] New: Shared libraries issue
@ 2012-10-04 10:18 r.viola at elcoelettronica dot it
  2012-10-09  7:47 ` [Bug server/14670] " r.viola at elcoelettronica dot it
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: r.viola at elcoelettronica dot it @ 2012-10-04 10:18 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14670

             Bug #: 14670
           Summary: Shared libraries issue
           Product: gdb
           Version: 7.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: server
        AssignedTo: unassigned@sourceware.org
        ReportedBy: r.viola@elcoelettronica.it
    Classification: Unclassified


Hi,
        it's my first time here, so be gently :)

I'm working on ARM system with gdb 7.1. I'm using this tool to debug an
application composed by several shared libraries.

If I debug this application on the ARM side, with gdb 7.1 i can see the
shared loaded libraries (digiting "share"). Perfect!

I'm trying to do the same thing remotelly with gdb for arm on windows
host and gdbserver on ARM.

So i have:
1) gdb on windows for arm v.7.4.1 (i've tried 7.3.1 too)
2) gdbserver on arm v.7.1

On Windows i can debug everything flawless except for the shared
libraries: infact, when i tried to digit "share" it says there isn't any
shared loaded libraries. I'm absolutely sure that at least one library
has loaded (on arm side the same situation works fine).

Any idea?

Thanks in advance
Roberto Viola

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug server/14670] Shared libraries issue
  2012-10-04 10:18 [Bug server/14670] New: Shared libraries issue r.viola at elcoelettronica dot it
@ 2012-10-09  7:47 ` r.viola at elcoelettronica dot it
  2012-10-09 14:41 ` palves at redhat dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: r.viola at elcoelettronica dot it @ 2012-10-09  7:47 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14670

--- Comment #1 from Roberto Viola <r.viola at elcoelettronica dot it> 2012-10-09 07:47:53 UTC ---
probably i've found something: 

In gcc on arm, when i ask for shared loaded libraries ("share") it calls
function solib.c:info_sharedlibrary_command with full support for solib. (and
it works fine) 

Instead, when i ask for the same command on gdb on windows and gdbserver on
arm, it passes the command "qXfer:libraries:read:" that doesn't manage any
solib, only dlls! And the dlls list is obviously empty. 

Did i miss something?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug server/14670] Shared libraries issue
  2012-10-04 10:18 [Bug server/14670] New: Shared libraries issue r.viola at elcoelettronica dot it
  2012-10-09  7:47 ` [Bug server/14670] " r.viola at elcoelettronica dot it
@ 2012-10-09 14:41 ` palves at redhat dot com
  2012-10-09 15:10 ` r.viola at elcoelettronica dot it
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: palves at redhat dot com @ 2012-10-09 14:41 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14670

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com

--- Comment #2 from Pedro Alves <palves at redhat dot com> 2012-10-09 14:41:15 UTC ---
Hard to say without more info - e.g., how exactly you've configured gdb.
You need to configure it for arm-linux, not just bare metal arm.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug server/14670] Shared libraries issue
  2012-10-04 10:18 [Bug server/14670] New: Shared libraries issue r.viola at elcoelettronica dot it
  2012-10-09  7:47 ` [Bug server/14670] " r.viola at elcoelettronica dot it
  2012-10-09 14:41 ` palves at redhat dot com
@ 2012-10-09 15:10 ` r.viola at elcoelettronica dot it
  2012-10-09 15:19 ` palves at redhat dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: r.viola at elcoelettronica dot it @ 2012-10-09 15:10 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14670

--- Comment #3 from Roberto Viola <r.viola at elcoelettronica dot it> 2012-10-09 15:10:16 UTC ---
(In reply to comment #2)
> Hard to say without more info - e.g., how exactly you've configured gdb.
> You need to configure it for arm-linux, not just bare metal arm.

Do you mean gdb or gdbserver?
I configure gdbserver with these settings
CC=arm-angstrom-linux-gnueabi-gcc ./configure --target=arm-linux
--host=arm-linux --disable-tui

gdb on windows is yagarto ( http://www.yagarto.de/ ).

Do you think is host side related or arm side?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug server/14670] Shared libraries issue
  2012-10-04 10:18 [Bug server/14670] New: Shared libraries issue r.viola at elcoelettronica dot it
                   ` (2 preceding siblings ...)
  2012-10-09 15:10 ` r.viola at elcoelettronica dot it
@ 2012-10-09 15:19 ` palves at redhat dot com
  2012-10-09 15:20 ` palves at redhat dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: palves at redhat dot com @ 2012-10-09 15:19 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14670

--- Comment #4 from Pedro Alves <palves at redhat dot com> 2012-10-09 15:19:23 UTC ---
I mean gdb.  (gdbserver is a linux program; never bare metal).

That page talks about embedded toolchains, and arm-none-eabi.  That's for bare
metal, not GNU/Linux.  To confirm, what does the "This GDB was configured as
..." line when you startup gdb say?

If it doesn't say arm-linux-gnueabi or something similar with "linux" in it,
that's the problem.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug server/14670] Shared libraries issue
  2012-10-04 10:18 [Bug server/14670] New: Shared libraries issue r.viola at elcoelettronica dot it
                   ` (3 preceding siblings ...)
  2012-10-09 15:19 ` palves at redhat dot com
@ 2012-10-09 15:20 ` palves at redhat dot com
  2012-10-09 15:23 ` r.viola at elcoelettronica dot it
  2012-10-09 21:00 ` r.viola at elcoelettronica dot it
  6 siblings, 0 replies; 8+ messages in thread
From: palves at redhat dot com @ 2012-10-09 15:20 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14670

--- Comment #5 from Pedro Alves <palves at redhat dot com> 2012-10-09 15:20:55 UTC ---
FAOD, I think this is host side related.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug server/14670] Shared libraries issue
  2012-10-04 10:18 [Bug server/14670] New: Shared libraries issue r.viola at elcoelettronica dot it
                   ` (4 preceding siblings ...)
  2012-10-09 15:20 ` palves at redhat dot com
@ 2012-10-09 15:23 ` r.viola at elcoelettronica dot it
  2012-10-09 21:00 ` r.viola at elcoelettronica dot it
  6 siblings, 0 replies; 8+ messages in thread
From: r.viola at elcoelettronica dot it @ 2012-10-09 15:23 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14670

--- Comment #6 from Roberto Viola <r.viola at elcoelettronica dot it> 2012-10-09 15:23:00 UTC ---
It says:

This GDB was configured as "--host=i686-pc-mingw32 --target=arm-none-eabi"

So i need to recompile it, i will let you know if it will work.
Thanks again for your precious help.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug server/14670] Shared libraries issue
  2012-10-04 10:18 [Bug server/14670] New: Shared libraries issue r.viola at elcoelettronica dot it
                   ` (5 preceding siblings ...)
  2012-10-09 15:23 ` r.viola at elcoelettronica dot it
@ 2012-10-09 21:00 ` r.viola at elcoelettronica dot it
  6 siblings, 0 replies; 8+ messages in thread
From: r.viola at elcoelettronica dot it @ 2012-10-09 21:00 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14670

Roberto Viola <r.viola at elcoelettronica dot it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #7 from Roberto Viola <r.viola at elcoelettronica dot it> 2012-10-09 21:00:02 UTC ---
Thanks! 
It works flawless now! 
Cheers

Roberto

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-10-09 21:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-04 10:18 [Bug server/14670] New: Shared libraries issue r.viola at elcoelettronica dot it
2012-10-09  7:47 ` [Bug server/14670] " r.viola at elcoelettronica dot it
2012-10-09 14:41 ` palves at redhat dot com
2012-10-09 15:10 ` r.viola at elcoelettronica dot it
2012-10-09 15:19 ` palves at redhat dot com
2012-10-09 15:20 ` palves at redhat dot com
2012-10-09 15:23 ` r.viola at elcoelettronica dot it
2012-10-09 21:00 ` r.viola at elcoelettronica dot it

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).