This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb.mi/mi-pthreads.exp query
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: ezannoni at redhat dot com, keiths at redhat dot com
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 2 Jan 2003 11:40:53 -0600
- Subject: Re: gdb.mi/mi-pthreads.exp query
Sure, here is the whole sections for mi-pthreads.exp from one gdb.log.
Hmmm, I see this:
-thread-select 7
^done,new-thread-id="7",frame={level="0",addr="0x42028d69",func="sigsuspend",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 7
The test script wants to see:
frame={.*},line=\"(-)?\[0-9\]+\",file=\".*\""
It looks like a test script problem rather than a gdb problem.
I'm using the vendor libc (without symbols). Maybe you have a libc with
symbols? Or maybe the frames are never in libc on your system.
Michael C
===
Running /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/mi-pthreads.exp ...
~"GNU gdb 2002-12-31-cvs\n"
~"Copyright 2002 Free Software Foundation, Inc.\n"
~"GDB is free software, covered by the GNU General Public License, and you are\n"
~"welcome to change it and/or distribute copies of it under certain conditions.\n"
~"Type \"show copying\" to see the conditions.\n"
~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"
~"This GDB was configured as \"i686-pc-linux-gnu\"."
~"\n"
(gdb)
100-gdb-set height 0
100^done
(gdb)
101-gdb-set width 0
101^done
(gdb)
Executing on host: gcc /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/pthreads.c -Igdb.mi -gdwarf-2 -lpthreads -lm -o /berman/fsf/_today_/berman/test/gdb.mi/pthreads (timeout = 300)
/berman/migchain/install/target/native/binutils-2.13.2/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
/berman/migchain/install/target/native/binutils-2.13.2/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
gdb compile failed, /berman/migchain/install/target/native/binutils-2.13.2/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
Executing on host: gcc /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/pthreads.c -Igdb.mi -gdwarf-2 -lpthread -lm -o /berman/fsf/_today_/berman/test/gdb.mi/pthreads (timeout = 300)
PASS: gdb.mi/mi-pthreads.exp: successfully compiled posix threads test case
104-environment-directory -r
104^done,source-path="$cdir:$cwd"
(gdb)
105-environment-directory /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi
105^done,source-path="/berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi:$cdir:$cwd"
(gdb)
105-file-exec-and-symbols /berman/fsf/_today_/berman/test/gdb.mi/pthreads
105^done
(gdb)
200-break-insert done_making_threads
200^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804849b",func="done_making_threads",file="/berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/pthreads.c",line="51",times="0"}
(gdb)
PASS: gdb.mi/mi-pthreads.exp: breakpoint at done_making_threads
000-exec-run
000^running
(gdb)
~"[New Thread 8192 (LWP 28515)]\n"
~"[New Thread 16385 (LWP 28516)]\n"
~"[New Thread 8194 (LWP 28517)]\n"
~"[New Thread 16387 (LWP 28518)]\n"
~"[New Thread 24580 (LWP 28519)]\n"
~"[New Thread 32773 (LWP 28520)]\n"
~"[New Thread 40966 (LWP 28521)]\n"
~"[Switching to Thread 8192 (LWP 28515)]\n"
000*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x0804849b",func="done_making_threads",args=[],file="/berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/pthreads.c",line="51"}
(gdb)
PASS: gdb.mi/mi-pthreads.exp: mi runto done_making_threads
-thread-list-ids
^done,thread-ids={thread-id="7",thread-id="6",thread-id="5",thread-id="4",thread-id="3",thread-id="2",thread-id="1"},number-of-threads="7"
(gdb)
PASS: gdb.mi/mi-pthreads.exp: -thread_list_ids (in check_mi_thread_command_set)
PASS: gdb.mi/mi-pthreads.exp: finding threads in MI output (in check_mi_thread_command_set)
-thread-select
^error,msg="mi_cmd_thread_select: USAGE: threadnum."
(gdb)
PASS: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select
-thread-select 123456789
&"Thread ID 123456789 not known.\n"
^error,msg="Thread ID 123456789 not known."
(gdb)
PASS: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 123456789
-thread-select 7
^done,new-thread-id="7",frame={level="0",addr="0x42028d69",func="sigsuspend",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 7
-thread-select 6
^done,new-thread-id="6",frame={level="0",addr="0x42028d69",func="sigsuspend",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 6
-thread-select 5
^done,new-thread-id="5",frame={level="0",addr="0x42028d69",func="sigsuspend",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 5
-thread-select 4
^done,new-thread-id="4",frame={level="0",addr="0x42028d69",func="sigsuspend",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 4
-thread-select 3
^done,new-thread-id="3",frame={level="0",addr="0x420da1be",func="clone",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 3
-thread-select 2
^done,new-thread-id="2",frame={level="0",addr="0x420d224b",func="poll",args=[],from="/lib/i686/libc.so.6"}
(gdb)
FAIL: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 2
-thread-select 1
^done,new-thread-id="1",frame={level="0",func="done_making_threads",args=[],file="/berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/pthreads.c",line="51"},line="51",file="/berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/pthreads.c"
(gdb)
PASS: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 1
testcase /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/mi-pthreads.exp completed in 1 seconds