This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
thread testcase compile issue (question)
When I execute tests under gdb.threads/ directory for instance killed.exp,
I see 2 complies of the same testcase, the first one gets a linker error
/usr/bin/ld: cannot find -lpthreads but the second time it works with no
errors. Anyone has any idea why???
Here is the output on x86 for you to compare:
=== gdb tests ===
Schedule of variations:
unix
Running target unix
Using /home/manjo/projects/gdb/june/src/dejagnu/baseboards/unix.exp as
board des
cription file for target.
Using /home/manjo/projects/gdb/june/src/dejagnu/config/unix.exp as generic
inter
face file for target.
Using ./config/unix.exp as tool-and-target-specific interface file.
Running ./gdb.threads/killed.exp ...
Executing on host: gcc ./gdb.threads/killed.c
-I/home/manjo/projects/gdb/june/s
rc/gdb/testsuite -g -lpthreads -lm -o
/home/manjo/projects/gdb/june/src/gdb/t
estsuite/gdb.threads/killed (timeout = 300)
/usr/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
/usr/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
Executing on host: gcc ./gdb.threads/killed.c
-I/home/manjo/projects/gdb/june/s
rc/gdb/testsuite -g -lpthread -lm -o
/home/manjo/projects/gdb/june/src/gdb/te
stsuite/gdb.threads/killed (timeout = 300)
PASS: gdb.threads/killed.exp: successfully compiled posix threads test
case
GNU gdb 2004-06-30-cvs
Thanks
----- ----
Manoj Iyer
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Cognito ergo sum +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
On Thu, 5 Aug 2004, Manoj Iyer wrote:
>
> Michael,
>
> I tried ur suggestion but it still did not work, so I used send_gdb and
> gdb_expect{} and got it to work. Thanks for the help.
>
> Thanks
> ----- ----
> Manoj Iyer
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> + Cognito ergo sum +
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> On Wed, 4 Aug 2004, Michael Chastain wrote:
>
> > I don't even use gdb_continue ... how about just plain:
> >
> > gdb_test_multiple "continue" "continue to foo ..." {
> > ...
> > }
> >
> > Or maybe I'm not getting the problem.
> >
> > Michael C
> >
>