This is the mail archive of the gdb-prs@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]

gdb/335: gdb 5.1.1, gcc HEAD, -gstabs+ fails on gdb.base/interrupt.exp



>Number:         335
>Category:       gdb
>Synopsis:       gdb 5.1.1, gcc HEAD, -gstabs+ fails on gdb.base/interrupt.exp
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 04 10:58:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     mec@shout.net
>Release:        gdb 5.1.1
>Organization:
>Environment:
target i686-pc-linux-gnulibc2.2-rh7.2
host native
gdb 5.1.1
gcc HEAD pulled 2002-02-01
-gstabs+
>Description:
gdb.base/interrupt.exp worked in 5.1 and fails in 5.1.1.
>How-To-Repeat:
Run test script gdb.base/interrupt.exp on this configuration.
>Fix:
Works properly in gdb HEAD.

This bug does not bother me.  I'm just filing a PR to record the information for posterity.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="z3.txt"
Content-Disposition: inline; filename="z3.txt"

# gdb 5.1, gcc HEAD, -gstabs+

Running /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.base/interrupt.exp ...
Executing on host: gcc /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.base/interrupt.c  -g  -lm   -gstabs+ -o /berman/migchain/build/native/gdb-5.1/gdb/testsuite/gdb.base/interrupt    (timeout = 300)
GNU gdb 5.1
Copyright 2001 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 "i686-pc-linux-gnu".
(gdb) set height 0
(gdb) set width 0
(gdb) dir
Reinitialize source path to empty? (y or n) y
Source directories searched: $cdir:$cwd
(gdb) dir /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.base
Source directories searched: /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) symbol-file /berman/migchain/build/native/gdb-5.1/gdb/testsuite/gdb.base/i 
nterrupt
Reading symbols from /berman/migchain/build/native/gdb-5.1/gdb/testsuite/gdb.base/interrupt...done.
(gdb) exec-file /berman/migchain/build/native/gdb-5.1/gdb/testsuite/gdb.base/int 
errupt
(gdb) shell stty intr '^C'
(gdb) PASS: gdb.base/interrupt.exp: set interrupt character in interrupt.exp
delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x8048460: file /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.base/interrupt.c, line 14.
(gdb) run 
Starting program: /berman/migchain/build/native/gdb-5.1/gdb/testsuite/gdb.base/interrupt 

Breakpoint 1, main () at /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.base/interrupt.c:14
14	  printf ("talk to me baby\n");
(gdb) continue
Continuing.
talk to me baby
PASS: gdb.base/interrupt.exp: child process is alive
a
PASS: gdb.base/interrupt.exp: child process ate our char

Program received signal SIGINT, Interrupt.
0x4012f544 in __libc_read () from /lib/i686/libc.so.6
(gdb) PASS: gdb.base/interrupt.exp: send_gdb control C
p func1 ()
$1 = 4
(gdb) PASS: gdb.base/interrupt.exp: call function when asleep
p func1 ()
$2 = 4
(gdb) PASS: gdb.base/interrupt.exp: call function a second time
continue
Continuing.
PASS: gdb.base/interrupt.exp: continue
data
PASS: gdb.base/interrupt.exp: echo data
Unknown error 512
data
end of file

Program exited normally.
(gdb) XPASS: gdb.base/interrupt.exp: send end of file
testcase /berman/migchain/source/gdb-5.1/gdb/testsuite/gdb.base/interrupt.exp completed in 3 seconds



# gdb 5.1.1, gcc HEAD, -gstabs+

Running /berman/migchain/source/gdb-5.1.1/gdb/testsuite/gdb.base/interrupt.exp ...
Executing on host: gcc /berman/migchain/source/gdb-5.1.1/gdb/testsuite/gdb.base/interrupt.c  -g  -lm   -gstabs+ -o /berman/migchain/build/native/gdb-5.1.1/gdb/testsuite/gdb.base/interrupt    (timeout = 300)
GNU gdb 5.1.1
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 "i686-pc-linux-gnu".
(gdb) set height 0
(gdb) set width 0
(gdb) dir
Reinitialize source path to empty? (y or n) y
Source directories searched: $cdir:$cwd
(gdb) dir /berman/migchain/source/gdb-5.1.1/gdb/testsuite/gdb.base
Source directories searched: /berman/migchain/source/gdb-5.1.1/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) symbol-file /berman/migchain/build/native/gdb-5.1.1/gdb/testsuite/gdb.base 
/interrupt
Reading symbols from /berman/migchain/build/native/gdb-5.1.1/gdb/testsuite/gdb.base/interrupt...done.
(gdb) exec-file /berman/migchain/build/native/gdb-5.1.1/gdb/testsuite/gdb.base/i 
nterrupt
(gdb) shell stty intr '^C'
(gdb) PASS: gdb.base/interrupt.exp: set interrupt character in interrupt.exp
delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x8048460: file /berman/migchain/source/gdb-5.1.1/gdb/testsuite/gdb.base/interrupt.c, line 14.
(gdb) run 
Starting program: /berman/migchain/build/native/gdb-5.1.1/gdb/testsuite/gdb.base/interrupt 

Breakpoint 1, main () at /berman/migchain/source/gdb-5.1.1/gdb/testsuite/gdb.base/interrupt.c:14
14	  printf ("talk to me baby\n");
(gdb) continue
Continuing.
talk to me baby
PASS: gdb.base/interrupt.exp: child process is alive
a
PASS: gdb.base/interrupt.exp: child process ate our char

Program received signal SIGINT, Interrupt.
0x4012f544 in __libc_read () from /lib/i686/libc.so.6
(gdb) PASS: gdb.base/interrupt.exp: send_gdb control C
p func1 ()
$1 = 4
(gdb) PASS: gdb.base/interrupt.exp: call function when asleep
p func1 ()
$2 = 4
(gdb) PASS: gdb.base/interrupt.exp: call function a second time
continue
Continuing.
Unknown error 512
FAIL: gdb.base/interrupt.exp: continue (timeout)
data
data
FAIL: gdb.base/interrupt.exp: echo data (timeout)
end of file

Program exited normally.
(gdb) XPASS: gdb.base/interrupt.exp: send end of file
testcase /berman/migchain/source/gdb-5.1.1/gdb/testsuite/gdb.base/interrupt.exp completed in 123 seconds



# gdb HEAD, gcc HEAD, -gstabs+

Running /berman/fsf/_today_/source/gdb/HEAD/gdb/testsuite/gdb.base/interrupt.exp ...
Executing on host: gcc /berman/fsf/_today_/source/gdb/HEAD/gdb/testsuite/gdb.base/interrupt.c  -g  -lm   -gstabs+ -o /berman/fsf/_today_/berman/native/build/gdb/HEAD/gdb/testsuite/gdb.base/interrupt    (timeout = 300)
GNU gdb 2002-02-02-cvs
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 "i686-pc-linux-gnu".
(gdb) set height 0
(gdb) set width 0
(gdb) dir
Reinitialize source path to empty? (y or n) y
Source directories searched: $cdir:$cwd
(gdb) dir /berman/fsf/_today_/source/gdb/HEAD/gdb/testsuite/gdb.base
Source directories searched: /berman/fsf/_today_/source/gdb/HEAD/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) symbol-file /berman/fsf/_today_/berman/native/build/gdb/HEAD/gdb/testsuite 
/gdb.base/interrupt
Reading symbols from /berman/fsf/_today_/berman/native/build/gdb/HEAD/gdb/testsuite/gdb.base/interrupt...done.
(gdb) exec-file /berman/fsf/_today_/berman/native/build/gdb/HEAD/gdb/testsuite/g 
db.base/interrupt
(gdb) shell stty intr '^C'
(gdb) PASS: gdb.base/interrupt.exp: set interrupt character in interrupt.exp
delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x8048460: file /berman/fsf/_today_/source/gdb/HEAD/gdb/testsuite/gdb.base/interrupt.c, line 14.
(gdb) run 
Starting program: /berman/fsf/_today_/berman/native/build/gdb/HEAD/gdb/testsuite/gdb.base/interrupt 

Breakpoint 1, main () at /berman/fsf/_today_/source/gdb/HEAD/gdb/testsuite/gdb.base/interrupt.c:14
14	  printf ("talk to me baby\n");
(gdb) continue
Continuing.
talk to me baby
PASS: gdb.base/interrupt.exp: child process is alive
a
PASS: gdb.base/interrupt.exp: child process ate our char

Program received signal SIGINT, Interrupt.
0x4012f544 in __libc_read () from /lib/i686/libc.so.6
(gdb) PASS: gdb.base/interrupt.exp: send_gdb control C
p func1 ()
$1 = 4
(gdb) PASS: gdb.base/interrupt.exp: call function when asleep
p func1 ()
$2 = 4
(gdb) PASS: gdb.base/interrupt.exp: call function a second time
continue
Continuing.
PASS: gdb.base/interrupt.exp: continue
data
PASS: gdb.base/interrupt.exp: echo data
data
end of file

Program exited normally.
(gdb) XPASS: gdb.base/interrupt.exp: send end of file
testcase /berman/fsf/_today_/source/gdb/HEAD/gdb/testsuite/gdb.base/interrupt.exp completed in 4 seconds


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