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: Elena Zannoni <ezannoni at redhat dot com>
- To: Michael Elizabeth Chastain <mec at shout dot net>
- Cc: ezannoni at redhat dot com, keiths at redhat dot com, gdb at sources dot redhat dot com
- Date: Mon, 6 Jan 2003 12:36:45 -0500
- Subject: Re: gdb.mi/mi-pthreads.exp query
- References: <200301021740.h02HerU28515@duracef.shout.net>
Michael Elizabeth Chastain writes:
> 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.
>
Yes, seems that way:
I get:
-thread-select 7
^done,new-thread-id="7",frame={level="0",addr="0x4008abb5",func="__sigsuspend",args=[{name="set",value="0x42997abc"}],file="../sysdeps/unix/sysv/linux/sigsuspend.c",line="45"},line="45",file="../sysdeps/unix/sysv/linux/sigsuspend.c"
(gdb)
PASS: 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="0x401175e1",func="__libc_nanosleep",args=[],file="__libc_nanosleep",line="-1"},line="-1",file="__libc_nanosleep"
(gdb)
PASS: gdb.mi/mi-pthreads.exp: check_mi_thread_command_set: -thread-select 6
-thread-select 2
^done,new-thread-id="2",frame={level="0",addr="0x4008ab11",func="__kill",args=[],file="__kill",line="-1"},line="-1",file="__kill"
(gdb)
Elena