Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Frank van Eijkelenburg" <frank.van.eijkelenburg@technolution.nl>
To: "Kevin Buettner" <kevinb@redhat.com>,
	"Gnu Debugger mailing list" <gdb@sources.redhat.com>
Subject: RE: loading shared library
Date: Fri, 31 Jan 2003 10:53:00 -0000	[thread overview]
Message-ID: <JJEILELDMJJENLCGJHOIOEGCCEAA.frank.van.eijkelenburg@technolution.nl> (raw)
In-Reply-To: <1030131103942.ZM3246@localhost.localdomain>

> > I tried this, and it was working. At this moment I've upgraded
> my glibc on
> > the target from 2.1.3 to 2.2.4. I also build a complete
> toolchain with glibc
> > 2.2.4. Now I want to debug a simple multithreaded program
> remote. But the
> > following occured:
> >
> > GNU gdb 5.3
> > Copyright 2002 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public
> License, and you are
> > welcome to change it and/or distribute copies of it under certain
> > conditions.
> > Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB.  Type "show warranty"
> for details.
> > This GDB was configured as "--host=i686-pc-linux-gnu
> --target=arm-linux"...
> > 0x40002a70 in ?? ()
> > (gdb) b 20
> > Breakpoint 1 at 0x8590: file ex1.c, line 20.
> > (gdb) c
> > Continuing.
> >
> > Breakpoint 1, main () at ex1.c:26
> > 26        retcode = pthread_create(&th_a, NULL, process, (void *) "a");
> > (gdb) sharedlibrary
> > Reading symbols from
> /usr/arm/tools/arm-linux/lib/libpthread.so.0...done.
> > Ignoring packet error, continuing...
> > Loaded symbols for /usr/arm/tools/arm-linux/lib/libpthread.so.0
> > Reading symbols from /usr/arm/tools/arm-linux/lib/libc.so.6...done.
> > Error while reading shared library symbols:
> > putpkt: write failed: Broken pipe.
> > Reading symbols from /usr/arm/tools/arm-linux/lib/ld-linux.so.2...done.
> > Error while reading shared library symbols:
> > putpkt: write failed: Broken pipe.
> > putpkt: write failed: Broken pipe.
> > (gdb) show solib-absolute-prefix
> > Prefix for loading absolute shared library symbol files is "/dev/null".
> > (gdb) show solib-
> > solib-absolute-prefix  solib-search-path
> > (gdb) show solib-search-path
> > The search path for loading non-absolute shared library symbol files is
> > "/usr/arm/tools/arm-linux/lib".
> > (gdb)
> >
> > It's trying to load the right libraries, but fails on
> libpthread (I can load
> > the other two without any problems). Any idea of what's causing the
> > problem???
>
> Check the following:
>
> 1) That libthread_db.so on the target is from the new glibc.
>
> 2) That your gdbserver (or rda) is built with the libthread_db.so from
>    the new glibc.  (This is kind of a long shot - so long as it's not
>    statically linked it probably shouldn't matter.)
>
> 3) That libpthread.so on target and host (as found in
>    /usr/arm/tools/arm-linux/lib/libpthread.so.0) are the same.
>
> Kevin

Thank you very much, it was point 3. I had on my target another libpthread
as on the host. However, both were libpthread-0.9.so (from glibc 2.2.4). But
I saw difference in the filesize.

Frank


      reply	other threads:[~2003-01-31 10:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-27  9:56 Frank van Eijkelenburg
2003-01-27 10:38 ` Frank van Eijkelenburg
2003-01-27 16:05   ` Kevin Buettner
2003-01-31  9:55     ` Frank van Eijkelenburg
2003-01-31 10:39       ` Kevin Buettner
2003-01-31 10:53         ` Frank van Eijkelenburg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=JJEILELDMJJENLCGJHOIOEGCCEAA.frank.van.eijkelenburg@technolution.nl \
    --to=frank.van.eijkelenburg@technolution.nl \
    --cc=gdb@sources.redhat.com \
    --cc=kevinb@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox