This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb.mi/mi-pthreads.exp query


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]