gdb and shared libraries issue

Discussion in 'C Programming' started by cagnulein@gmail.com, Oct 8, 2012.

  1. Guest

    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
    , Oct 8, 2012
    #1
    1. Advertising

  2. Noob Guest

    Roberto wrote:

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


    Hello Roberto,

    I think you will have to ask the GDB experts.

    https://www.gnu.org/software/gdb/mailing-lists/

    Regards.
    Noob, Oct 8, 2012
    #2
    1. Advertising

  3. Guest

    , Oct 8, 2012
    #3
  4. jacob navia Guest

    Le 08/10/12 11:28, a écrit :
    > On Monday, October 8, 2012 10:30:19 AM UTC+2, Noob wrote:
    >>
    >> Hello Roberto,
    >>
    >>
    >>
    >> I think you will have to ask the GDB experts.
    >>
    >>
    >>
    >> https://www.gnu.org/software/gdb/mailing-lists/
    >>
    >>
    >>
    >> Regards.

    >
    > I've already did it http://sourceware.org/ml/gdb/2012-10/msg00018.html
    > But no answer. Did you have any experiences on it?
    >


    My experience with gdb is that

    1) Usenet doesn't work and the newsgroups aren't really read by anyone
    competent.

    2) I submitted a patch for a bug 2 years ago. The bug is still there.

    3) As soon as you pay an important quantity of money you will get
    anything you want. If you buy a Red Hat support contract (US$ 25000)
    you can have access to the developers.

    But the most important is:

    4) Since I had the source code I never found a problem that I couldn't
    solve myself. But I have been working in this field for years and I know
    what I am doing. Not everyone does.

    You can solve your problem if you follow the gdb source in arm and in
    windows. You will see what variables are inspected when the message is
    printed "No libraries loaded". See when they are set, why they aren't
    set on windows.

    Then find out where the bug is.

    In general gnu stuff doesn't work well on windows.
    jacob navia, Oct 8, 2012
    #4
  5. Noob Guest

    Roberto wrote:

    > I've already did it http://sourceware.org/ml/gdb/2012-10/msg00018.html
    > But no answer. Did you have any experiences on it?


    I think the main problem is that you have omitted key pieces
    of information in your request.

    Things like the object format of the target, output from the
    commands you tried, output from sharedlibrary, output from
    show sysroot, etc.
    Noob, Oct 8, 2012
    #5
  6. Guest

    On Monday, October 8, 2012 11:47:22 AM UTC+2, jacob navia wrote:
    >
    > > On Monday, October 8, 2012 10:30:19 AM UTC+2, Noob wrote:

    >
    > >>

    >
    > >> Hello Roberto,

    >
    > >>

    >
    > >>

    >
    > >>

    >
    > >> I think you will have to ask the GDB experts.

    >
    > >>

    >
    > >>

    >
    > >>

    >
    > >> https://www.gnu.org/software/gdb/mailing-lists/

    >
    > >>

    >
    > >>

    >
    > >>

    >
    > >> Regards.

    >
    > >

    >
    > > I've already did it http://sourceware.org/ml/gdb/2012-10/msg00018.html

    >
    > > But no answer. Did you have any experiences on it?

    >
    > >

    >
    >
    >
    > My experience with gdb is that
    >
    >
    >
    > 1) Usenet doesn't work and the newsgroups aren't really read by anyone
    >
    > competent.
    >
    >
    >
    > 2) I submitted a patch for a bug 2 years ago. The bug is still there.
    >
    >
    >
    > 3) As soon as you pay an important quantity of money you will get
    >
    > anything you want. If you buy a Red Hat support contract (US$ 25000)
    >
    > you can have access to the developers.
    >
    >
    >
    > But the most important is:
    >
    >
    >
    > 4) Since I had the source code I never found a problem that I couldn't
    >
    > solve myself. But I have been working in this field for years and I know
    >
    > what I am doing. Not everyone does.
    >
    >
    >
    > You can solve your problem if you follow the gdb source in arm and in
    >
    > windows. You will see what variables are inspected when the message is
    >
    > printed "No libraries loaded". See when they are set, why they aren't
    >
    > set on windows.
    >
    >
    >
    > Then find out where the bug is.
    >
    >
    >
    > In general gnu stuff doesn't work well on windows.


    Ok, i'm not a windows noob, but you're right, i've asked too much.
    I want to know only a few inputs (maybe shared libraries can't be display on gdbserver on arm (it's just an example)).
    , Oct 8, 2012
    #6
  7. James Kuyper Guest

    On 10/08/2012 06:26 AM, wrote:
    > On Monday, October 8, 2012 11:47:22 AM UTC+2, jacob navia wrote:

    ....
    >> 1) Usenet doesn't work and the newsgroups aren't really read by anyone
    >> competent.


    Wow - not only has jacob managed to insult the competence of absolutely
    everyone reading his message, but also himself. Pretty impressive people
    skills, there.
    --
    James Kuyper
    James Kuyper, Oct 8, 2012
    #7
  8. jacob navia Guest

    Le 08/10/12 13:46, James Kuyper a écrit :
    > On 10/08/2012 06:26 AM, wrote:
    >> On Monday, October 8, 2012 11:47:22 AM UTC+2, jacob navia wrote:

    > ...
    >>> 1) Usenet doesn't work and the newsgroups aren't really read by anyone
    >>> competent.

    >
    > Wow - not only has jacob managed to insult the competence of absolutely
    > everyone reading his message, but also himself. Pretty impressive people
    > skills, there.
    >

    We were speaking about the gnu newsgroups Mr Kuyper. I never had any
    real answer in those newsgroups when I asked a technical question.

    For instance when I asked about gcc C++ exception handling there wasn't
    any answer. At most I would get:
    "read the source code"

    The same when I reported a bug in the gdb newsgroup. Or asked about the
    support for stabs debug info:
    "Read the source code"
    jacob navia, Oct 8, 2012
    #8
  9. Angel Guest

    On 2012-10-08, James Kuyper <> wrote:
    > On 10/08/2012 06:26 AM, wrote:
    >> On Monday, October 8, 2012 11:47:22 AM UTC+2, jacob navia wrote:

    > ...
    >>> 1) Usenet doesn't work and the newsgroups aren't really read by anyone
    >>> competent.

    >
    > Wow - not only has jacob managed to insult the competence of absolutely
    > everyone reading his message, but also himself. Pretty impressive people
    > skills, there.


    And now you know why I have had him in the bozo list pretty much from my
    first week here.


    --
    "C provides a programmer with more than enough rope to hang himself.
    C++ provides a firing squad, blindfold and last cigarette."
    - seen in comp.lang.c
    Angel, Oct 8, 2012
    #9
  10. James Kuyper Guest

    On 10/08/2012 09:04 AM, Angel wrote:
    > On 2012-10-08, James Kuyper <> wrote:
    >> On 10/08/2012 06:26 AM, wrote:
    >>> On Monday, October 8, 2012 11:47:22 AM UTC+2, jacob navia wrote:

    >> ...
    >>>> 1) Usenet doesn't work and the newsgroups aren't really read by anyone
    >>>> competent.

    >>
    >> Wow - not only has jacob managed to insult the competence of absolutely
    >> everyone reading his message, but also himself. Pretty impressive people
    >> skills, there.

    >
    > And now you know why I have had him in the bozo list pretty much from my
    > first week here.


    I gave him a lot more benefit of the doubt than you did, but he's been
    on my list, too, for several years. I only saw this comment because it
    was quoted by cagnulin.
    --
    James Kuyper
    James Kuyper, Oct 8, 2012
    #10
  11. Guest

    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?
    , Oct 9, 2012
    #11
  12. Guest

    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Surendra
    Replies:
    0
    Views:
    508
    Surendra
    Mar 23, 2006
  2. seba
    Replies:
    1
    Views:
    1,443
    mlimber
    Mar 22, 2007
  3. Ajay 0x007
    Replies:
    8
    Views:
    1,749
    Jorgen Grahn
    Jul 20, 2009
  4. Timothy Madden
    Replies:
    1
    Views:
    1,617
    Timothy Madden
    Sep 17, 2009
  5. Emanuel Berg
    Replies:
    2
    Views:
    617
    Emanuel Berg
    Aug 30, 2013
Loading...

Share This Page