This is the mail archive of the gdb-testers@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] |
Test Run By cgf on Thu Nov 16 22:13:07 2000
Native configuration is i686-pc-linux-gnu
=== gdb tests ===
Schedule of variations:
unix
Running target unix
Using /cygnus/src/uberbaum/gdb/../dejagnu/baseboards/unix.exp as board description file for target.
Using /cygnus/src/uberbaum/gdb/../dejagnu/config/unix.exp as generic interface file for target.
Using /cygnus/src/uberbaum/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.asm/asm-source.exp ...
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.asm/asm-source.exp completed in 0 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/a2-run.exp ...
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/run.c -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/run (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/run.c -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/run
spawn /cygnus/build/native/gdb/testsuite/../../gdb/gdb -nw -nx
GNU gdb 5.0
Copyright 2000 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 /cygnus/src/uberbaum/gdb/testsuite/gdb.base
Source directories searched: /cygnus/src/uberbaum/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) file /cygnus/build/native/gdb/testsuite/gdb.base/run
Reading symbols from /cygnus/build/native/gdb/testsuite/gdb.base/run...done.
(gdb) run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/run
usage: factorial <number>
Program exited with code 01.
(gdb) PASS: gdb.base/a2-run.exp: run "run" with no args
run 5
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/run 5
120
Program exited normally.
(gdb) PASS: gdb.base/a2-run.exp: run "run" with arg
run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/run 5
120
Program exited normally.
(gdb) PASS: gdb.base/a2-run.exp: run "run" again with same args
set args
(gdb) run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/run
usage: factorial <number>
Program exited with code 01.
(gdb) PASS: gdb.base/a2-run.exp: run after setting args to nil
set args 6
(gdb) run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/run 6
720
Program exited normally.
(gdb) PASS: gdb.base/a2-run.exp: run "run" again after setting args
run `echo 8`
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/run `echo 8`
40320
Program exited normally.
(gdb) PASS: gdb.base/a2-run.exp: run "run" with shell
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.base/a2-run.exp completed in 1 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/all-bin.exp ...
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/all-types.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/all-types (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/all-types.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/all-types
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/all-types.ci (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/all-types.ci
spawn /cygnus/build/native/gdb/testsuite/../../gdb/gdb -nw -nx
GNU gdb 5.0
Copyright 2000 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 /cygnus/src/uberbaum/gdb/testsuite/gdb.base
Source directories searched: /cygnus/src/uberbaum/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) file /cygnus/build/native/gdb/testsuite/gdb.base/all-types
Reading symbols from /cygnus/build/native/gdb/testsuite/gdb.base/all-types...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x80483e6: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/all-types.c, line 35.
(gdb) run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/all-types
Breakpoint 1, main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/all-types.c:35
35 dummy();
(gdb) next
36 return 0;
(gdb) PASS: gdb.base/all-bin.exp: continuing after dummy()
print v_int+v_char
$1 = 71
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int+v_char
print v_int+v_short
$2 = 9
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int+v_short
print v_int+v_signed_char
$3 = 72
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int+v_signed_char
print v_int+v_unsigned_char
$4 = 73
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int+v_unsigned_char
print v_int+v_signed_short
$5 = 10
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int+v_signed_short
print v_int+v_unsigned_short
$6 = 11
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int+v_unsigned_short
print v_int+v_signed_int
$7 = 13
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int+v_signed_int
print v_int+v_unsigned_int
$8 = 14
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int+v_unsigned_int
print v_int+v_long
$9 = 15
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int+v_long
print v_int+v_signed_long
$10 = 16
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int+v_signed_long
print v_int+v_unsigned_long
$11 = 17
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int+v_unsigned_long
print v_int+v_float
$12 = 106.34343719482422
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int+v_float
print v_int+v_double
$13 = 206.56565599999999
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int+v_double
print v_int <= v_char
$14 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int<=v_char
print v_int <= v_short
$15 = 0
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int<=v_short
print v_int <= v_signed_char
$16 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int<=v_signed_char
print v_int <= v_unsigned_char
$17 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int<=v_unsigned_char
print v_int <= v_signed_short
$18 = 0
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int<=v_signed_short
print v_int <= v_unsigned_short
$19 = 0
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int<=v_unsigned_short
print v_int <= v_signed_int
$20 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int<=v_signed_int
print v_int <= v_unsigned_int
$21 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int<=v_unsigned_int
print v_int <= v_long
$22 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int<=v_long
print v_int <= v_signed_long
$23 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int<=v_signed_long
print v_int <= v_unsigned_long
$24 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int<=v_unsigned_long
print v_int <= v_float
$25 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int<=v_float
print v_int <= v_double
$26 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int<=v_double
set variable v_char=0
(gdb) PASS: gdb.base/all-bin.exp: set v_char=0
set variable v_double=0.0
(gdb) PASS: gdb.base/all-bin.exp: set v_double=0
set variable v_unsigned_long=0
(gdb) PASS: gdb.base/all-bin.exp: set v_unsigned_long=0
print v_int && v_char
$27 = 0
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int&&v_char
print v_int && v_short
$28 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int&&v_short
print v_int && v_signed_char
$29 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int&&v_signed_char
print v_int && v_unsigned_char
$30 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int&&v_unsigned_char
print v_int && v_signed_short
$31 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int&&v_signed_short
print v_int && v_unsigned_short
$32 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int&&v_unsigned_short
print v_int && v_signed_int
$33 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int&&v_signed_int
print v_int && v_unsigned_int
$34 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int&&v_unsigned_int
print v_int && v_long
$35 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int&&v_long
print v_int && v_signed_long
$36 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int&&v_signed_long
print v_int && v_unsigned_long
$37 = 0
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int&&v_unsigned_long
print v_int && v_float
$38 = 1
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int&&v_float
print v_int && v_double
$39 = 0
(gdb) PASS: gdb.base/all-bin.exp: print value of v_int&&v_double
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.base/all-bin.exp completed in 1 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.exp ...
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/annota1 (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/annota1
spawn /cygnus/build/native/gdb/testsuite/../../gdb/gdb -nw -nx
GNU gdb 5.0
Copyright 2000 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 /cygnus/src/uberbaum/gdb/testsuite/gdb.base
Source directories searched: /cygnus/src/uberbaum/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) file /cygnus/build/native/gdb/testsuite/gdb.base/annota1
Reading symbols from /cygnus/build/native/gdb/testsuite/gdb.base/annota1...done.
(gdb) set height 0
(gdb) break main
Breakpoint 1 at 0x804844e: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c, line 32.
(gdb) PASS: gdb.base/annota1.exp: breakpoint main
set annotate 2
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: annotation set at level 2
info break
post-prompt
breakpoints-headers
field 0
Num
field 1
Type
field 2
Disp
field 3
Enb
field 4
Address
field 5
What
breakpoints-table
record
field 0
1
field 1
breakpoint
field 2
keep
field 3
y
field 4
0x0804844e
field 5
in main at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c:32
breakpoints-table-end
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: breakpoint info
run
post-prompt
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/annota1
frames-invalid
frames-invalid
breakpoints-invalid
starting
frames-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
frames-invalid
frames-invalid
frames-invalid
frames-invalid
frames-invalid
breakpoint 1
Breakpoint 1,
frame-begin 0 0x804844e
frame-function-name
main
frame-args
()
frame-source-begin
at
frame-source-file
/cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c
frame-source-file-end
:
frame-source-line
32
frame-source-end
source /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c:32:323:beg:0x804844e
frame-end
stopped
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: run until main breakpoint
next
post-prompt
starting
frames-invalid
frames-invalid
frames-invalid
source /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c:34:359:beg:0x8048463
frame-end
stopped
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: go after array init line
print my_array
post-prompt
value-history-begin 1 -
$1 =
value-history-value
{
array-section-begin 0 -
1
elt
, 2
elt
, 3
elt
array-section-end
}
value-history-end
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: print array
print non_existent_value
post-prompt
error-begin
No symbol "non_existent_value" in current context.
error
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: print non_existent_value
break handle_USR1
post-prompt
breakpoints-invalid
Breakpoint 2 at 0x8048443: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c, line 19.
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: breakpoint handle_USR1
break printf
post-prompt
breakpoints-invalid
Breakpoint 3 at 0x4008805c
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: breakpoint printf
continue
post-prompt
Continuing.
starting
frames-invalid
breakpoint 3
Breakpoint 3,
frame-begin 0 0x4008805c
frame-address
0x4008805c
frame-address-end
in
frame-function-name
printf
frame-args
()
frame-where
from /lib/libc.so.6
frame-end
stopped
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: continue to printf
backtrace
post-prompt
frame-begin 0 0x4008805c
#0
frame-address
0x4008805c
frame-address-end
in
frame-function-name
printf
frame-args
()
frame-where
from /lib/libc.so.6
frame-end
frame-begin 1 0x8048492
#1
frame-address
0x8048492
frame-address-end
in
frame-function-name
main
frame-args
()
frame-source-begin
at
frame-source-file
/cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c
frame-source-file-end
:
frame-source-line
40
frame-source-end
frame-end
frame-begin 2 0x400529cb
#2
frame-address
0x400529cb
frame-address-end
in
frame-function-name
__libc_start_main
frame-args
()
frame-where
from /lib/libc.so.6
frame-end
pre-prompt
(gdb)
prompt
FAIL: gdb.base/annota1.exp: backtrace from shlibrary
signal SIGUSR1
post-prompt
Continuing with signal SIGUSR1.
starting
frames-invalid
breakpoint 2
Breakpoint 2,
frame-begin 0 0x8048443
frame-function-name
handle_USR1
frame-args
(
arg-begin
sig
arg-name-end
=
arg-value -
10
arg-end
)
frame-source-begin
at
frame-source-file
/cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c
frame-source-file-end
:
frame-source-line
19
frame-source-end
source /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c:19:240:beg:0x8048443
frame-end
stopped
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: send SIGUSR1
backtrace
post-prompt
frame-begin 0 0x8048443
#0
frame-function-name
handle_USR1
frame-args
(
arg-begin
sig
arg-name-end
=
arg-value -
10
arg-end
)
frame-source-begin
at
frame-source-file
/cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c
frame-source-file-end
:
frame-source-line
19
frame-source-end
frame-end
frame-begin 1 0x40058c68
#1
frame-address
0x40058c68
frame-address-end
in
frame-function-name
sigaction
frame-args
()
frame-where
from /lib/libc.so.6
frame-end
frame-begin 2 0x8048492
#2
frame-address
0x8048492
frame-address-end
in
frame-function-name
main
frame-args
()
frame-source-begin
at
frame-source-file
/cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c
frame-source-file-end
:
frame-source-line
40
frame-source-end
frame-end
frame-begin 3 0x400529cb
#3
frame-address
0x400529cb
frame-address-end
in
frame-function-name
__libc_start_main
frame-args
()
frame-where
from /lib/libc.so.6
frame-end
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: backtrace @ signal handler
delete 1
post-prompt
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: delete bp 1
delete 2
post-prompt
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: delete bp 2
delete 3
post-prompt
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: delete bp 3
break main
post-prompt
breakpoints-invalid
Breakpoint 4 at 0x804844e: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c, line 32.
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: break at 28
display value
post-prompt
display-begin
1
display-number-end
:
display-format
display-expression
value
display-expression-end
=
display-expression
7
display-end
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: set up display
run
post-prompt
pre-query
The program being debugged has been started already.
Start it from the beginning? (y or n)
query
y
post-query
frames-invalid
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/annota1
frames-invalid
frames-invalid
breakpoints-invalid
starting
frames-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
breakpoints-invalid
frames-invalid
frames-invalid
frames-invalid
frames-invalid
frames-invalid
breakpoint 4
Breakpoint 4,
frame-begin 0 0x804844e
frame-function-name
main
frame-args
()
frame-source-begin
at
frame-source-file
/cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c
frame-source-file-end
:
frame-source-line
32
frame-source-end
source /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c:32:323:beg:0x804844e
frame-end
display-begin
1
display-number-end
:
display-format
display-expression
value
display-expression-end
=
display-expression
0
display-end
stopped
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: re-run
break 46
post-prompt
breakpoints-invalid
Breakpoint 5 at 0x80484b8: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c, line 46.
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: break at 46
ignore 5 4
post-prompt
Will ignore next 4 crossings of breakpoint 5.
breakpoints-invalid
breakpoints-invalid
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: ignore 5 4
continue
post-prompt
Continuing.
starting
frames-invalid
value is 7
my_array[2] is 3
frames-invalid
frames-invalid
frames-invalid
frames-invalid
frames-invalid
frames-invalid
frames-invalid
frames-invalid
frames-invalid
breakpoint 5
Breakpoint 5,
frame-begin 0 0x80484b8
frame-function-name
main
frame-args
()
frame-source-begin
at
frame-source-file
/cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c
frame-source-file-end
:
frame-source-line
46
frame-source-end
source /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c:46:559:beg:0x80484b8
frame-end
display-begin
1
display-number-end
:
display-format
display-expression
value
display-expression-end
=
display-expression
11
display-end
stopped
breakpoints-invalid
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: annotate ignore count change
next
post-prompt
starting
frames-invalid
source /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c:45:531:beg:0x80484be
frame-end
display-begin
1
display-number-end
:
display-format
display-expression
value
display-expression-end
=
display-expression
12
display-end
stopped
pre-prompt
(gdb)
prompt
next
post-prompt
starting
frames-invalid
frames-invalid
frames-invalid
frames-invalid
frames-invalid
source /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.c:49:579:beg:0x80484c3
frame-end
display-begin
1
display-number-end
:
display-format
display-expression
value
display-expression-end
=
display-expression
12
display-end
stopped
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: breakpoint ignore count
signal SIGTRAP
post-prompt
Continuing with signal SIGTRAP.
starting
frames-invalid
frames-invalid
signalled
Program terminated with signal
signal-name
SIGTRAP
signal-name-end
,
signal-string
Trace/breakpoint trap
signal-string-end
.
The program no longer exists.
stopped
pre-prompt
(gdb)
prompt
PASS: gdb.base/annota1.exp: signal sent
Executing on build: ls core (timeout = 300)
spawn ls core
ls: core: No such file or directory
PASS: gdb.base/annota1.exp: No core dumped
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.base/annota1.exp completed in 1 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/arithmet.exp ...
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/int-type.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/int-type (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/int-type.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/int-type
spawn /cygnus/build/native/gdb/testsuite/../../gdb/gdb -nw -nx
GNU gdb 5.0
Copyright 2000 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 /cygnus/src/uberbaum/gdb/testsuite/gdb.base
Source directories searched: /cygnus/src/uberbaum/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) file /cygnus/build/native/gdb/testsuite/gdb.base/int-type
Reading symbols from /cygnus/build/native/gdb/testsuite/gdb.base/int-type...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x80483e3: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/int-type.c, line 17.
(gdb) run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/int-type
Breakpoint 1, main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/int-type.c:17
17 x = 14;
(gdb) set variable x=14
(gdb) PASS: gdb.base/arithmet.exp: set variable x=14
set variable y=2
(gdb) PASS: gdb.base/arithmet.exp: set variable y=2
set variable z=2
(gdb) PASS: gdb.base/arithmet.exp: set variable z=2
set variable w=3
(gdb) PASS: gdb.base/arithmet.exp: set variable w=3
print x
$1 = 14
(gdb) PASS: gdb.base/arithmet.exp: print value of x
print y
$2 = 2
(gdb) PASS: gdb.base/arithmet.exp: print value of y
print z
$3 = 2
(gdb) PASS: gdb.base/arithmet.exp: print value of z
print w
$4 = 3
(gdb) PASS: gdb.base/arithmet.exp: print value of w
print x+y
$5 = 16
(gdb) PASS: gdb.base/arithmet.exp: print value of x+y
print x-y
$6 = 12
(gdb) PASS: gdb.base/arithmet.exp: print value of x-y
print x*y
$7 = 28
(gdb) PASS: gdb.base/arithmet.exp: print value of x*y
print x/y
$8 = 7
(gdb) PASS: gdb.base/arithmet.exp: print value of x/y
print x%y
$9 = 0
(gdb) PASS: gdb.base/arithmet.exp: print value of x%y
print x+y+z
$10 = 18
(gdb) PASS: gdb.base/arithmet.exp: print value of x+y
print x-y-z
$11 = 10
(gdb) PASS: gdb.base/arithmet.exp: print value of x-y
print x*y*z
$12 = 56
(gdb) PASS: gdb.base/arithmet.exp: print value of x*y
print x/y/z
$13 = 3
(gdb) PASS: gdb.base/arithmet.exp: print value of x/y
print x%y%z
$14 = 0
(gdb) PASS: gdb.base/arithmet.exp: print value of x%y
set variable x=10
(gdb) PASS: gdb.base/arithmet.exp: set variable x
set variable y=4
(gdb) PASS: gdb.base/arithmet.exp: set variable y
set variable z=2
(gdb) PASS: gdb.base/arithmet.exp: set variable z
print x+y-z
$15 = 12
(gdb) PASS: gdb.base/arithmet.exp: print value of x+y-z
print x+y*z
$16 = 18
(gdb) PASS: gdb.base/arithmet.exp: print value of x+y*z
set variable z=3
(gdb) PASS: gdb.base/arithmet.exp: set variable z
print x+y%z
$17 = 11
(gdb) PASS: gdb.base/arithmet.exp: print value of x+y%z
print x+y/z
$18 = 11
(gdb) PASS: gdb.base/arithmet.exp: print value of x+y/z
set variable z=2
(gdb) PASS: gdb.base/arithmet.exp: set variable z
print x-y*z
$19 = 2
(gdb) PASS: gdb.base/arithmet.exp: print value of x-y*z
print x-y%z
$20 = 10
(gdb) PASS: gdb.base/arithmet.exp: print value of x-y%z
print x-y/z
$21 = 8
(gdb) PASS: gdb.base/arithmet.exp: print value of x-y/z
print x*y/z
$22 = 20
(gdb) PASS: gdb.base/arithmet.exp: print value of x*y/z
set variable z=3
(gdb) PASS: gdb.base/arithmet.exp: set z to 3
print x*y%z
$23 = 1
(gdb) PASS: gdb.base/arithmet.exp: print value of x*y%z
print x/y%z
$24 = 2
(gdb) PASS: gdb.base/arithmet.exp: print value of x/y%z
print x-(y+z)
$25 = 3
(gdb) PASS: gdb.base/arithmet.exp: print value of x-(y+z)
print x/(y*z)
$26 = 0
(gdb) PASS: gdb.base/arithmet.exp: print value of x/(y*z)
print x-(y/z)
$27 = 9
(gdb) PASS: gdb.base/arithmet.exp: print value of x-(y/z)
print (x+y)*z
$28 = 42
(gdb) PASS: gdb.base/arithmet.exp: print value of (x+y)*z
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.base/arithmet.exp completed in 0 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/assign.exp ...
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/all-types.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/all-types (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/all-types.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/all-types
spawn /cygnus/build/native/gdb/testsuite/../../gdb/gdb -nw -nx
GNU gdb 5.0
Copyright 2000 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 /cygnus/src/uberbaum/gdb/testsuite/gdb.base
Source directories searched: /cygnus/src/uberbaum/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) file /cygnus/build/native/gdb/testsuite/gdb.base/all-types
Reading symbols from /cygnus/build/native/gdb/testsuite/gdb.base/all-types...done.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x80483e6: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/all-types.c, line 35.
(gdb) run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/all-types
Breakpoint 1, main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/all-types.c:35
35 dummy();
(gdb) next
36 return 0;
(gdb) PASS: gdb.base/assign.exp: continuing after dummy()
print v_int=57
$1 = 57
(gdb) print v_int
$2 = 57
(gdb) PASS: gdb.base/assign.exp: v_int=57
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=57
$3 = 63
(gdb) print v_int
$4 = 63
(gdb) PASS: gdb.base/assign.exp: v_int+=57
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int-=57
$5 = -51
(gdb) print v_int
$6 = -51
(gdb) PASS: gdb.base/assign.exp: v_int-=57
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int*=5
$7 = 30
(gdb) print v_int
$8 = 30
(gdb) PASS: gdb.base/assign.exp: v_int*=5
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int/=4
$9 = 1
(gdb) print v_int
$10 = 1
(gdb) PASS: gdb.base/assign.exp: v_int/=4
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int%=4
$11 = 2
(gdb) print v_int
$12 = 2
(gdb) PASS: gdb.base/assign.exp: v_int%=4
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=v_char
$13 = 71
(gdb) print v_int
$14 = 71
(gdb) PASS: gdb.base/assign.exp: v_int+=char
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=v_signed_char
$15 = 72
(gdb) print v_int
$16 = 72
(gdb) PASS: gdb.base/assign.exp: v_int+=signed_char
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=v_unsigned_char
$17 = 73
(gdb) print v_int
$18 = 73
(gdb) PASS: gdb.base/assign.exp: v_int+=unsigned_char
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=v_short
$19 = 9
(gdb) print v_int
$20 = 9
(gdb) PASS: gdb.base/assign.exp: v_int+=short
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=v_signed_short
$21 = 10
(gdb) print v_int
$22 = 10
(gdb) PASS: gdb.base/assign.exp: v_int+=signed_short
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=v_unsigned_short
$23 = 11
(gdb) print v_int
$24 = 11
(gdb) PASS: gdb.base/assign.exp: v_int=+unsigned_short
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=v_signed_int
$25 = 13
(gdb) print v_int
$26 = 13
(gdb) PASS: gdb.base/assign.exp: v_int+=signed_int
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=v_unsigned_int
$27 = 14
(gdb) print v_int
$28 = 14
(gdb) PASS: gdb.base/assign.exp: v_int+=unsigned_int
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=v_long
$29 = 15
(gdb) print v_int
$30 = 15
(gdb) PASS: gdb.base/assign.exp: v_int+=long
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=v_signed_long
$31 = 16
(gdb) print v_int
$32 = 16
(gdb) PASS: gdb.base/assign.exp: v_int+=signed_long
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=v_unsigned_long
$33 = 17
(gdb) print v_int
$34 = 17
(gdb) PASS: gdb.base/assign.exp: v_int+=unsigned_long
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=v_float
$35 = 106
(gdb) print v_int
$36 = 106
(gdb) PASS: gdb.base/assign.exp: v_int+=v_float
set variable v_int = 6
(gdb) PASS: gdb.base/assign.exp: set v_int to 6
print v_int+=v_double
$37 = 206
(gdb) print v_int
$38 = 206
(gdb) PASS: gdb.base/assign.exp: v_int+=double
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.base/assign.exp completed in 1 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/async.exp ...
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/async.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/async (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/async.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/async
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/async.ci (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/async.ci
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.base/async.exp completed in 0 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/attach.exp ...
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.base/attach.exp completed in 0 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.exp ...
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/bitfields (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/bitfields
spawn /cygnus/build/native/gdb/testsuite/../../gdb/gdb -nw -nx
GNU gdb 5.0
Copyright 2000 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 /cygnus/src/uberbaum/gdb/testsuite/gdb.base
Source directories searched: /cygnus/src/uberbaum/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) file /cygnus/build/native/gdb/testsuite/gdb.base/bitfields
Reading symbols from /cygnus/build/native/gdb/testsuite/gdb.base/bitfields...done.
(gdb) set print sevenbit-strings
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break break1
Breakpoint 1 at 0x80483e3: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c, line 28.
(gdb) run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/bitfields
Breakpoint 1, break1 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:28
28 }
(gdb) print flags
$1 = {uc = 1 '\001', s1 = 0, u1 = 0, s2 = 0, u2 = 0, s3 = 0, u3 = 0, s9 = 0, u9 = 0, sc = 0 '\000'}
(gdb) PASS: gdb.base/bitfields.exp: print flags
cont
Continuing.
Breakpoint 1, break1 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:28
28 }
(gdb) PASS: gdb.base/bitfields.exp: continuing to break1 #1
print flags
$2 = {uc = 0 '\000', s1 = -1, u1 = 0, s2 = 0, u2 = 0, s3 = 0, u3 = 0, s9 = 0, u9 = 0, sc = 0 '\000'}
(gdb) PASS: gdb.base/bitfields.exp: bitfield uniqueness (s1)
cont
Continuing.
Breakpoint 1, break1 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:28
28 }
(gdb) PASS: gdb.base/bitfields.exp: continuing to break1 #2
print flags
$3 = {uc = 0 '\000', s1 = 0, u1 = 1, s2 = 0, u2 = 0, s3 = 0, u3 = 0, s9 = 0, u9 = 0, sc = 0 '\000'}
(gdb) PASS: gdb.base/bitfields.exp: bitfield uniqueness (u1)
cont
Continuing.
Breakpoint 1, break1 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:28
28 }
(gdb) PASS: gdb.base/bitfields.exp: continuing to break1 #3
print flags
$4 = {uc = 0 '\000', s1 = 0, u1 = 0, s2 = 1, u2 = 0, s3 = 0, u3 = 0, s9 = 0, u9 = 0, sc = 0 '\000'}
(gdb) PASS: gdb.base/bitfields.exp: bitfield uniqueness (s2)
cont
Continuing.
Breakpoint 1, break1 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:28
28 }
(gdb) PASS: gdb.base/bitfields.exp: continuing to break1 #4
print flags
$5 = {uc = 0 '\000', s1 = 0, u1 = 0, s2 = 0, u2 = 1, s3 = 0, u3 = 0, s9 = 0, u9 = 0, sc = 0 '\000'}
(gdb) PASS: gdb.base/bitfields.exp: bitfield uniqueness (u2)
cont
Continuing.
Breakpoint 1, break1 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:28
28 }
(gdb) PASS: gdb.base/bitfields.exp: continuing to break1 #5
print flags
$6 = {uc = 0 '\000', s1 = 0, u1 = 0, s2 = 0, u2 = 0, s3 = 1, u3 = 0, s9 = 0, u9 = 0, sc = 0 '\000'}
(gdb) PASS: gdb.base/bitfields.exp: bitfield uniqueness (s3)
cont
Continuing.
Breakpoint 1, break1 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:28
28 }
(gdb) PASS: gdb.base/bitfields.exp: continuing to break1 #6
print flags
$7 = {uc = 0 '\000', s1 = 0, u1 = 0, s2 = 0, u2 = 0, s3 = 0, u3 = 1, s9 = 0, u9 = 0, sc = 0 '\000'}
(gdb) PASS: gdb.base/bitfields.exp: bitfield uniqueness (u3)
cont
Continuing.
Breakpoint 1, break1 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:28
28 }
(gdb) PASS: gdb.base/bitfields.exp: continuing to break1 #7
print flags
$8 = {uc = 0 '\000', s1 = 0, u1 = 0, s2 = 0, u2 = 0, s3 = 0, u3 = 0, s9 = 1, u9 = 0, sc = 0 '\000'}
(gdb) PASS: gdb.base/bitfields.exp: bitfield uniqueness (s9)
cont
Continuing.
Breakpoint 1, break1 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:28
28 }
(gdb) PASS: gdb.base/bitfields.exp: continuing to break1 #8
print flags
$9 = {uc = 0 '\000', s1 = 0, u1 = 0, s2 = 0, u2 = 0, s3 = 0, u3 = 0, s9 = 0, u9 = 1, sc = 0 '\000'}
(gdb) PASS: gdb.base/bitfields.exp: bitfield uniqueness (u9)
cont
Continuing.
Breakpoint 1, break1 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:28
28 }
(gdb) PASS: gdb.base/bitfields.exp: continuing to break1 #9
print flags
$10 = {uc = 0 '\000', s1 = 0, u1 = 0, s2 = 0, u2 = 0, s3 = 0, u3 = 0, s9 = 0, u9 = 0, sc = 1 '\001'}
(gdb) PASS: gdb.base/bitfields.exp: bitfield uniqueness (sc)
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break break2
Breakpoint 2 at 0x80483eb: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c, line 32.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/bitfields
Breakpoint 2, break2 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:32
32 }
(gdb) print/x flags
$11 = {uc = 0xff, s1 = 0x0, u1 = 0x1, s2 = 0x0, u2 = 0x3, s3 = 0x0, u3 = 0x7, s9 = 0x0, u9 = 0x1ff, sc = 0x0}
(gdb) PASS: gdb.base/bitfields.exp: bitfield containment #1
cont
Continuing.
Breakpoint 2, break2 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:32
32 }
(gdb) PASS: gdb.base/bitfields.exp: continuing to break2
print/x flags
$12 = {uc = 0x0, s1 = 0xffffffff, u1 = 0x0, s2 = 0xffffffff, u2 = 0x0, s3 = 0xffffffff, u3 = 0x0, s9 = 0xffffffff, u9 = 0x0, sc = 0xff}
(gdb) PASS: gdb.base/bitfields.exp: bitfield containment #2
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break break3
Breakpoint 3 at 0x80483f3: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c, line 36.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/bitfields
Breakpoint 3, break3 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:36
36 }
(gdb) print flags
$13 = {uc = 0 '\000', s1 = 0, u1 = 1, s2 = 0, u2 = 3, s3 = 0, u3 = 7, s9 = 0, u9 = 511, sc = 0 '\000'}
(gdb) PASS: gdb.base/bitfields.exp: unsigned bitfield ranges
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break break4
Breakpoint 4 at 0x80483fb: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c, line 40.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/bitfields
Breakpoint 4, break4 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:40
40 }
(gdb) print flags
$14 = {uc = 0 '\000', s1 = 0, u1 = 0, s2 = 1, u2 = 0, s3 = 3, u3 = 0, s9 = 255, u9 = 0, sc = 0 '\000'}
(gdb) PASS: gdb.base/bitfields.exp: signed bitfields, max positive values
cont
Continuing.
Breakpoint 4, break4 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:40
40 }
(gdb) PASS: gdb.base/bitfields.exp: continuing to break4 #1
print i
$15 = -256
(gdb) PASS: gdb.base/bitfields.exp: determining signed-ness of bitfields
print flags
$16 = {uc = 0 '\000', s1 = -1, u1 = 0, s2 = -2, u2 = 0, s3 = -4, u3 = 0, s9 = -256, u9 = 0, sc = 0 '\000'}
(gdb) PASS: gdb.base/bitfields.exp: signed bitfields, max negative values
cont
Continuing.
Breakpoint 4, break4 () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.c:40
40 }
(gdb) PASS: gdb.base/bitfields.exp: continuing to break4 #2
print flags
$17 = {uc = 0 '\000', s1 = -1, u1 = 0, s2 = -1, u2 = 0, s3 = -1, u3 = 0, s9 = -1, u9 = 0, sc = 0 '\000'}
(gdb) PASS: gdb.base/bitfields.exp: signed bitfields with -1
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitfields.exp completed in 1 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitops.exp ...
spawn /cygnus/build/native/gdb/testsuite/../../gdb/gdb -nw -nx
GNU gdb 5.0
Copyright 2000 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 /cygnus/src/uberbaum/gdb/testsuite/gdb.base
Source directories searched: /cygnus/src/uberbaum/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) print !1
$1 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of !1
print !0
$2 = 1
(gdb) PASS: gdb.base/bitops.exp: print value of !0
print !100
$3 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of !100
print !1000
$4 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of !1000
print !10
$5 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of !10
print !2
$6 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of !2
print 10 | 5
$7 = 15
(gdb) PASS: gdb.base/bitops.exp: print value of 10 | 5
print 10 & 5
$8 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of 10 & 5
print 10 ^ 5
$9 = 15
(gdb) PASS: gdb.base/bitops.exp: print value of 10 ^ 5
print -!0
$10 = -1
(gdb) PASS: gdb.base/bitops.exp: print value of -!0
print ~-!0
$11 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of ~-!0
print 3 * 2 / 4.0 * 2.0
$12 = 3
(gdb) PASS: gdb.base/bitops.exp: print value of 3 * 2 / 4.0 * 2.0
print 8 << 2 >> 4
$13 = 2
(gdb) PASS: gdb.base/bitops.exp: print value of 8 << 2 >> 4
print -1 < 0 > 1
$14 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of -1 < 0 > 1
print 15 ^ 10 ^ 5 ^ 7
$15 = 7
(gdb) PASS: gdb.base/bitops.exp: print value of 15 ^ 10 ^ 5 ^ 7
print 3.5 < 4.0
$16 = 1
(gdb) PASS: gdb.base/bitops.exp: print value of 3.5 < 4.0
print 3.5 < -4.0
$17 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of 3.5 < -4.0
print 2 > -3
$18 = 1
(gdb) PASS: gdb.base/bitops.exp: print value of 2 > -3
print -3>4
$19 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of -3>4
print (-3 > 4)
$20 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of (-3 > 4)
print 3>=2.5
$21 = 1
(gdb) PASS: gdb.base/bitops.exp: print value of 3>=2.5
print 3>=4.5
$22 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of 3>=4.5
print 3==3.0
$23 = 1
(gdb) PASS: gdb.base/bitops.exp: print value of 3==3.0
print 3==4.0
$24 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of 3==4.0
print 3!=3.0
$25 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of 3!=3.0
print 3!=5.0
$26 = 1
(gdb) PASS: gdb.base/bitops.exp: print value of 3!=5.0
print 0 || 1 && 0 | 0 ^ 0 == 8 > 128 >>1 +2 *2
$27 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of 0 || 1 && 0 | 0 ^ 0 == 8 > 128 >>1 +2 *2
print 1.0 || 0
$28 = 1
(gdb) PASS: gdb.base/bitops.exp: print value of 1.0 || 0
print 0.0 || 1.0
$29 = 1
(gdb) PASS: gdb.base/bitops.exp: print value of 0.0 || 1.0
print 0.0 || 0
$30 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of 0.0 || 0
print 0 || 1 && 0 | 0 ^ 0 == 8
$31 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of 0 || 1 && 0 | 0 ^ 0 == 8
print 0 == 8 > 128 >> 1 + 2 * 2
$32 = 0
(gdb) PASS: gdb.base/bitops.exp: print value of 0 == 8 > 128 >> 1 + 2 * 2
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.base/bitops.exp completed in 0 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.exp ...
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/break (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/break
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/break.ci (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/break.ci
spawn /cygnus/build/native/gdb/testsuite/../../gdb/gdb -nw -nx
GNU gdb 5.0
Copyright 2000 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 /cygnus/src/uberbaum/gdb/testsuite/gdb.base
Source directories searched: /cygnus/src/uberbaum/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) file /cygnus/build/native/gdb/testsuite/gdb.base/break
Reading symbols from /cygnus/build/native/gdb/testsuite/gdb.base/break...done.
(gdb) delete breakpoints
(gdb) PASS: gdb.base/break.exp: Delete all breakpoints when none
break main
Breakpoint 1 at 0x80484d2: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 75.
(gdb) PASS: gdb.base/break.exp: breakpoint function
break break.c:factorial
Breakpoint 2 at 0x804858a: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 96.
(gdb) PASS: gdb.base/break.exp: breakpoint function in file
list main
65 int
66 main (argc, argv, envp)
67 int argc;
68 char *argv[], **envp;
69 #endif
70 {
71 #ifdef usestubs
72 set_debug_traps();
73 breakpoint();
74 #endif
(gdb) PASS: gdb.base/break.exp: use `list' to establish default source file
break 79
Breakpoint 3 at 0x8048500: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 79.
(gdb) PASS: gdb.base/break.exp: breakpoint line number
break 79
Note: breakpoint 3 also set at pc 0x8048500.
Breakpoint 4 at 0x8048500: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 79.
(gdb) PASS: gdb.base/break.exp: breakpoint duplicate
break break.c:85
Breakpoint 5 at 0x8048568: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 85.
(gdb) PASS: gdb.base/break.exp: breakpoint line number in file
info break
Num Type Disp Enb Address What
1 breakpoint keep y 0x080484d2 in main at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:75
2 breakpoint keep y 0x0804858a in factorial at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:96
3 breakpoint keep y 0x08048500 in main at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:79
4 breakpoint keep y 0x08048500 in main at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:79
5 breakpoint keep y 0x08048568 in main at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:85
(gdb) PASS: gdb.base/break.exp: breakpoint info
run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/break
Breakpoint 1, main (argc=1, argv=0xbffff3fc, envp=0xbffff404) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:75
75 if (argc == 12345) { /* an unlikely value < 2^16, in case uninited */
(gdb) PASS: gdb.base/break.exp: run until function breakpoint
continue
Continuing.
Breakpoint 3, main (argc=1, argv=0xbffff3fc, envp=0xbffff404) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:79
79 printf ("%d\n", factorial (atoi ("6")));
(gdb) PASS: gdb.base/break.exp: run until breakpoint set at a line number
continue
Continuing.
Breakpoint 2, factorial (value=6) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:96
96 if (value > 1) {
(gdb) PASS: gdb.base/break.exp: run until file:function(6) breakpoint
continue
Continuing.
Breakpoint 2, factorial (value=5) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:96
96 if (value > 1) {
(gdb) PASS: gdb.base/break.exp: run until file:function(5) breakpoint
continue
Continuing.
Breakpoint 2, factorial (value=4) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:96
96 if (value > 1) {
(gdb) PASS: gdb.base/break.exp: run until file:function(4) breakpoint
continue
Continuing.
Breakpoint 2, factorial (value=3) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:96
96 if (value > 1) {
(gdb) PASS: gdb.base/break.exp: run until file:function(3) breakpoint
continue
Continuing.
Breakpoint 2, factorial (value=2) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:96
96 if (value > 1) {
(gdb) PASS: gdb.base/break.exp: run until file:function(2) breakpoint
continue
Continuing.
Breakpoint 2, factorial (value=1) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:96
96 if (value > 1) {
(gdb) PASS: gdb.base/break.exp: run until file:function(1) breakpoint
continue
Continuing.
720
Breakpoint 5, main (argc=1, argv=0xbffff3fc, envp=0xbffff404) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:85
85 argc = (argc == 12345); /* This is silly, but we can step off of it */
(gdb) PASS: gdb.base/break.exp: run until file:linenum breakpoint
break +1
Breakpoint 6 at 0x8048579: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 86.
(gdb) PASS: gdb.base/break.exp: breakpoint offset +1
step
Breakpoint 6, main (argc=0, argv=0xbffff3fc, envp=0xbffff404) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:86
86 return argc;
(gdb) PASS: gdb.base/break.exp: step onto breakpoint
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) tbreak main
Breakpoint 7 at 0x80484d2: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 75.
(gdb) PASS: gdb.base/break.exp: Temporary breakpoint function
tbreak break.c:factorial
Breakpoint 8 at 0x804858a: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 96.
(gdb) PASS: gdb.base/break.exp: Temporary breakpoint function in file
tbreak 79
Breakpoint 9 at 0x8048500: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 79.
(gdb) PASS: gdb.base/break.exp: Temporary breakpoint line number #1
tbreak 75
Note: breakpoint 7 also set at pc 0x80484d2.
Breakpoint 10 at 0x80484d2: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 75.
(gdb) PASS: gdb.base/break.exp: Temporary breakpoint line number #2
tbreak break.c:85
Breakpoint 11 at 0x8048568: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 85.
(gdb) PASS: gdb.base/break.exp: Temporary breakpoint line number in file #1
tbreak break.c:81
Breakpoint 12 at 0x8048531: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 81.
(gdb) PASS: gdb.base/break.exp: Temporary breakpoint line number in file #2
info break
Num Type Disp Enb Address What
7 breakpoint del y 0x080484d2 in main at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:75
8 breakpoint del y 0x0804858a in factorial at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:96
9 breakpoint del y 0x08048500 in main at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:79
10 breakpoint del y 0x080484d2 in main at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:75
11 breakpoint del y 0x08048568 in main at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:85
12 breakpoint del y 0x08048531 in main at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:81
(gdb) PASS: gdb.base/break.exp: Temporary breakpoint info
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 13 at 0x80484d2: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 75.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/break
Breakpoint 13, main (argc=1, argv=0xbffff3fc, envp=0xbffff404) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:75
75 if (argc == 12345) { /* an unlikely value < 2^16, in case uninited */
(gdb) catch
Catch requires an event name.
(gdb) PASS: gdb.base/break.exp: catch requires an event name
catch fork
Catch of fork not yet implemented
(gdb) PASS: gdb.base/break.exp: set catch fork, never expected to trigger
catch vfork
Catch of vfork not yet implemented
(gdb) PASS: gdb.base/break.exp: set catch vfork, never expected to trigger
catch exec
Catch of exec not yet implemented
(gdb) PASS: gdb.base/break.exp: set catch exec, never expected to trigger
until 79
main (argc=1, argv=0xbffff3fc, envp=0xbffff404) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:79
79 printf ("%d\n", factorial (atoi ("6")));
(gdb) PASS: gdb.base/break.exp: until 79
until 80 then stop
Junk at end of arguments.
(gdb) PASS: gdb.base/break.exp: malformed until
break 999
No line 999 in file "/cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c".
(gdb) PASS: gdb.base/break.exp: break on non-existent source line
break
Breakpoint 14 at 0x8048500: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 79.
(gdb) PASS: gdb.base/break.exp: break on default location, 1st time
break
Note: breakpoint 14 also set at pc 0x8048500.
Breakpoint 15 at 0x8048500: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 79.
(gdb) PASS: gdb.base/break.exp: break on default location, 2nd time
break
Note: breakpoints 14 and 15 also set at pc 0x8048500.
Breakpoint 16 at 0x8048500: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 79.
(gdb) PASS: gdb.base/break.exp: break on default location, 3rd time
break
Note: breakpoints 14, 15 and 16 also set at pc 0x8048500.
Breakpoint 17 at 0x8048500: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 79.
(gdb) PASS: gdb.base/break.exp: break on default location, 4th time
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 18 at 0x80484d2: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 75.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/break
Breakpoint 18, main (argc=1, argv=0xbffff3fc, envp=0xbffff404) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:75
75 if (argc == 12345) { /* an unlikely value < 2^16, in case uninited */
(gdb) break 79
Breakpoint 19 at 0x8048500: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 79.
(gdb) PASS: gdb.base/break.exp: set to-be-silent break 79
commands 19
Type commands for when breakpoint 19 is hit, one per line.
End with a line saying just "end".
>silent
>end
(gdb) PASS: gdb.base/break.exp: set silent break 79
info break 19
Num Type Disp Enb Address What
19 breakpoint keep y 0x08048500 in main at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:79
silent
(gdb) PASS: gdb.base/break.exp: info silent break 79
continue
Continuing.
(gdb) PASS: gdb.base/break.exp: hit silent break 79
bt
#0 main (argc=1, argv=0xbffff3fc, envp=0xbffff404) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:79
#1 0x400529cb in __libc_start_main () from /lib/libc.so.6
(gdb) PASS: gdb.base/break.exp: stopped for silent break 79
break 80 thread 999
Unknown thread 999
(gdb) PASS: gdb.base/break.exp: thread-specific breakpoint on non-existent thread disallowed
break 80 thread foo
Junk after thread keyword.
(gdb) PASS: gdb.base/break.exp: thread-specific breakpoint on bogus thread ID disallowed
break 80 foo
Junk at end of arguments.
(gdb) PASS: gdb.base/break.exp: breakpoint with trailing garbage disallowed
next
720
81 marker1 ();
(gdb) PASS: gdb.base/break.exp: step over breakpoint
clear 81
No breakpoint at 81.
(gdb) PASS: gdb.base/break.exp: clear line has no breakpoint disallowed
clear
No breakpoint at this line.
(gdb) PASS: gdb.base/break.exp: clear current line has no breakpoint disallowed
set $foo=81
(gdb) PASS: gdb.base/break.exp: set convenience variable $foo to 81
break $foo
Breakpoint 20 at 0x8048531: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 81.
(gdb) PASS: gdb.base/break.exp: set breakpoint via convenience variable
set $foo=81.5
(gdb) PASS: gdb.base/break.exp: set convenience variable $foo to 81.5
break $foo
Convenience variables used in line specs must have integer values.
(gdb) PASS: gdb.base/break.exp: set breakpoint via non-integer convenience variable disallowed
break marker2
Breakpoint 21 at 0x80484af: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 49.
(gdb) PASS: gdb.base/break.exp: set breakpoint on to-be-called function
print marker2(99)
Breakpoint 21, marker2 (a=99) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:49
49 int marker2 (a) int a; { return (1); }
The program being debugged stopped while in a function called from GDB.
When the function (marker2) is done executing, GDB will silently
stop (instead of continuing to evaluate the expression containing
the function call).
(gdb) PASS: gdb.base/break.exp: hit breakpoint on called function
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 22 at 0x80484d2: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 75.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/break
Breakpoint 22, main (argc=1, argv=0xbffff3fc, envp=0xbffff404) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:75
75 if (argc == 12345) { /* an unlikely value < 2^16, in case uninited */
(gdb) finish 123
The "finish" command does not take any arguments.
(gdb) PASS: gdb.base/break.exp: finish with arguments disallowed
finish
Run till exit from #0 main (argc=1, argv=0xbffff3fc, envp=0xbffff404) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:75
720
0x400529cb in __libc_start_main () from /lib/libc.so.6
Value returned is $1 = 0
(gdb) PASS: gdb.base/break.exp: finish from outermost frame disallowed
break main
Note: breakpoint 22 also set at pc 0x80484d2.
Breakpoint 23 at 0x80484d2: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 75.
(gdb) PASS: gdb.base/break.exp: break main #1
break main
Note: breakpoints 22 and 23 also set at pc 0x80484d2.
Breakpoint 24 at 0x80484d2: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 75.
(gdb) PASS: gdb.base/break.exp: break main #2
clear main
Deleted breakpoints 24 23 22
(gdb) PASS: gdb.base/break.exp: clear main
kill
Kill the program being debugged? (y or n) y
(gdb) PASS: gdb.base/break.exp: kill program
delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break factorial
Breakpoint 25 at 0x804858a: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 96.
(gdb) PASS: gdb.base/break.exp: break at factorial
run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/break
Breakpoint 25, factorial (value=6) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:96
96 if (value > 1) {
(gdb) continue
Continuing.
Breakpoint 25, factorial (value=5) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:96
96 if (value > 1) {
(gdb) PASS: gdb.base/break.exp: continue to factorial(5)
backtrace
#0 factorial (value=5) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:96
#1 0x804859d in factorial (value=6) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:97
#2 0x804851e in main (argc=1, argv=0xbffff3fc, envp=0xbffff404) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:79
#3 0x400529cb in __libc_start_main () from /lib/libc.so.6
(gdb) PASS: gdb.base/break.exp: backtrace from factorial(5)
next
97 value *= factorial (value - 1);
(gdb) PASS: gdb.base/break.exp: next to recursive call
delete breakpoints
Delete all breakpoints? (y or n) y
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) next
99 return (value);
(gdb) PASS: gdb.base/break.exp: next over recursive call
backtrace
#0 factorial (value=120) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:99
#1 0x804859d in factorial (value=6) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:97
#2 0x804851e in main (argc=1, argv=0xbffff3fc, envp=0xbffff404) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:79
#3 0x400529cb in __libc_start_main () from /lib/libc.so.6
(gdb) PASS: gdb.base/break.exp: backtrace from factorial(5.1)
continue
Continuing.
720
Program exited normally.
(gdb) PASS: gdb.base/break.exp: continue until exit at recursive next test
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c "-O2" -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/breako2 (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c -O2 -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/breako2
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/breako2.ci (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/breako2.ci
spawn /cygnus/build/native/gdb/testsuite/../../gdb/gdb -nw -nx
GNU gdb 5.0
Copyright 2000 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 /cygnus/src/uberbaum/gdb/testsuite/gdb.base
Source directories searched: /cygnus/src/uberbaum/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) file /cygnus/build/native/gdb/testsuite/gdb.base/breako2
Reading symbols from /cygnus/build/native/gdb/testsuite/gdb.base/breako2...done.
(gdb) break main
Breakpoint 1 at 0x80484e7: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 79.
(gdb) PASS: gdb.base/break.exp: breakpoint function, optimized file
break marker4
Breakpoint 2 at 0x80484d3: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c, line 51.
(gdb) PASS: gdb.base/break.exp: breakpoint small function, optimized file
run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/breako2
Breakpoint 1, main (argc=1, argv=0xbffff3fc, envp=0xbffff404) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:79
79 printf ("%d\n", factorial (atoi ("6")));
(gdb) PASS: gdb.base/break.exp: run until function breakpoint, optimized file (code motion)
continue
Continuing.
720
Breakpoint 2, 0x80484d3 in marker4 (d=177601976) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.c:51
51 void marker4 (d) long d; {}
PASS: gdb.base/break.exp: run until breakpoint set at small function, optimized file
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.base/break.exp completed in 2 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.exp ...
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/call-ar-st (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/call-ar-st
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/call-ar-st.ci (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/call-ar-st.ci
spawn /cygnus/build/native/gdb/testsuite/../../gdb/gdb -nw -nx
GNU gdb 5.0
Copyright 2000 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 /cygnus/src/uberbaum/gdb/testsuite/gdb.base
Source directories searched: /cygnus/src/uberbaum/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) file /cygnus/build/native/gdb/testsuite/gdb.base/call-ar-st
Reading symbols from /cygnus/build/native/gdb/testsuite/gdb.base/call-ar-st...done.
(gdb) set print sevenbit-strings
(gdb) set print address off
(gdb) set width 0
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c, line 1155.
(gdb) run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/call-ar-st
Breakpoint 1, main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:1155
1155 id_int student_id = 23;
(gdb) tbreak 1209
Breakpoint 2: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c, line 1209.
(gdb) PASS: gdb.base/call-ar-st.exp: tbreakpoint line 1209
continue
Continuing.
main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:1209
1209 for (index = 0; index < 50; index++) {
(gdb) PASS: gdb.base/call-ar-st.exp: run until breakpoint set at a line
print print_double_array(double_array)
array_d :
=========
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 1
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 2
0.000000
23.456700 46.913400 70.370100 93.826800 117.283500 140.740200 164.196900 187.653600
211.110300 234.567000 258.023700 281.480400 304.937100 328.393800 351.850500 375.307200
398.763900 422.220600 445.677300 469.134000 492.590700 516.047400 539.504100 562.960800
586.417500 609.874200 633.330900 656.787600 680.244300 703.701000 727.157700 750.614400
774.071100 797.527800 820.984500 844.441200 867.897900 891.354600 914.811300 938.268000
961.724700 985.181400 1008.638100 1032.094800 1055.551500 1079.008200 1102.464900 1125.921600
1149.378300 1172.835000 1196.291700 1219.748400 1243.205100 1266.661800 1290.118500 1313.575200
1337.031900 1360.488600 1383.945300 1407.402000 1430.858700 1454.315400 1477.772100 1501.228800
1524.685500 1548.142200 1571.598900 1595.055600 1618.512300 1641.969000 1665.425700 1688.882400
1712.339100 1735.795800 1759.252500 1782.709200 1806.165900 1829.622600 1853.079300 1876.536000
1899.992700 1923.449400 1946.906100 1970.362800 1993.819500 2017.276200 2040.732900 2064.189600
2087.646300 2111.103000 2134.559700 2158.016400 2181.473100 2204.929800 2228.386500 2251.843200
2275.299900 2298.756600 2322.213300
$1 = void
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 3
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 4
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 5
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 6
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 7
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 8
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 9
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 10
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 11
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 12
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 13
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 14
PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 15
(gdb) PASS: gdb.base/call-ar-st.exp: print print_double_array(double_array), pattern 16 + sentinel
print print_char_array(char_array)
array_c :
=========
Z
aZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZ
aZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZ
aZaZaZaZaZaZaZaZaZa
$2 = void
PASS: gdb.base/call-ar-st.exp: print print_char_array(char_array), pattern 1
PASS: gdb.base/call-ar-st.exp: print print_char_array(char_array), pattern 2
PASS: gdb.base/call-ar-st.exp: print print_char_array(char_array), pattern 3
PASS: gdb.base/call-ar-st.exp: print print_char_array(char_array), pattern 4
PASS: gdb.base/call-ar-st.exp: print print_char_array(char_array), pattern 5
(gdb) PASS: gdb.base/call-ar-st.exp: print print_char_array(char_array), pattern 6 + sentinel
tbreak 1216
Breakpoint 3: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c, line 1216.
(gdb) PASS: gdb.base/call-ar-st.exp: tbreakpoint line 1216
continue
Continuing.
array_c :
=========
Z
aZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZ
aZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZ
aZaZaZaZaZaZaZaZaZa
main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:1216
1216 print_double_array(double_array);
PASS: gdb.base/call-ar-st.exp: continue to 1216, pattern 1
PASS: gdb.base/call-ar-st.exp: continue to 1216, pattern 2
PASS: gdb.base/call-ar-st.exp: continue to 1216, pattern 3
PASS: gdb.base/call-ar-st.exp: continue to 1216, pattern 4
PASS: gdb.base/call-ar-st.exp: continue to 1216, pattern 5
PASS: gdb.base/call-ar-st.exp: continue to 1216, pattern 6
PASS: gdb.base/call-ar-st.exp: continue to 1216, pattern 7
(gdb) PASS: gdb.base/call-ar-st.exp: continue to 1216, pattern 8 + sentinel
tbreak 1220
Breakpoint 4: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c, line 1220.
(gdb) PASS: gdb.base/call-ar-st.exp: tbreakpoint line 1220
continue
Continuing.
array_d :
=========
0.000000
23.456700 46.913400 70.370100 93.826800 117.283500 140.740200 164.196900 187.653600
211.110300 234.567000 258.023700 281.480400 304.937100 328.393800 351.850500 375.307200
398.763900 422.220600 445.677300 469.134000 492.590700 516.047400 539.504100 562.960800
586.417500 609.874200 633.330900 656.787600 680.244300 703.701000 727.157700 750.614400
774.071100 797.527800 820.984500 844.441200 867.897900 891.354600 914.811300 938.268000
961.724700 985.181400 1008.638100 1032.094800 1055.551500 1079.008200 1102.464900 1125.921600
1149.378300 1172.835000 1196.291700 1219.748400 1243.205100 1266.661800 1290.118500 1313.575200
1337.031900 1360.488600 1383.945300 1407.402000 1430.858700 1454.315400 1477.772100 1501.228800
1524.685500 1548.142200 1571.598900 1595.055600 1618.512300 1641.969000 1665.425700 1688.882400
1712.339100 1735.795800 1759.252500 1782.709200 1806.165900 1829.622600 1853.079300 1876.536000
1899.992700 1923.449400 1946.906100 1970.362800 1993.819500 2017.276200 2040.732900 2064.189600
2087.646300 2111.103000 2134.559700 2158.016400 2181.473100 2204.929800 2228.386500 2251.843200
2275.299900 2298.756600 2322.213300
array_f :
=========
0.000000
0.142450 0.284900 0.427350 0.569801 0.712251 0.854701 0.997151 1.139601
1.282051 1.424501 1.566952 1.709402 1.851852 1.994302
student id : 23 shirt color : YELLOW
array_i :
=========
0
-1 -2 -3 -4 -5 -6 -7 -8
-9 -10 -11 -12 -13 -14 -15 -16
-17 -18 -19 -20 -21 -22 -23 -24
-25 -26 -27 -28 -29 -30 -31 -32
-33 -34 -35 -36 -37 -38 -39 -40
-41 -42 -43 -44 -45 -46 -47 -48
-49
main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:1220
1220 print_all_arrays(integer_array, char_array, float_array, double_array);
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 1
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 2
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 3
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 4
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 5
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 6
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 7
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 8
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 9
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 10
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 11
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 12
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 13
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 14
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 15
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 16
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 17
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 18
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 19
PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 20
(gdb) PASS: gdb.base/call-ar-st.exp: continuing to breakpoint 1220, pattern 21 + sentinel
step
print_all_arrays (array_i=, array_c="ZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZa", array_f=, array_d=) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:306
306 print_int_array(array_i);
(gdb) PASS: gdb.base/call-ar-st.exp: step inside print_all_arrays
next
array_i :
=========
0
-1 -2 -3 -4 -5 -6 -7 -8
-9 -10 -11 -12 -13 -14 -15 -16
-17 -18 -19 -20 -21 -22 -23 -24
-25 -26 -27 -28 -29 -30 -31 -32
-33 -34 -35 -36 -37 -38 -39 -40
-41 -42 -43 -44 -45 -46 -47 -48
-49
307 print_char_array(array_c);
(gdb) PASS: gdb.base/call-ar-st.exp: next over print_int_array in print-all_arrays
print print_double_array(array_d)
array_d :
=========
0.000000
23.456700 46.913400 70.370100 93.826800 117.283500 140.740200 164.196900 187.653600
211.110300 234.567000 258.023700 281.480400 304.937100 328.393800 351.850500 375.307200
398.763900 422.220600 445.677300 469.134000 492.590700 516.047400 539.504100 562.960800
586.417500 609.874200 633.330900 656.787600 680.244300 703.701000 727.157700 750.614400
774.071100 797.527800 820.984500 844.441200 867.897900 891.354600 914.811300 938.268000
961.724700 985.181400 1008.638100 1032.094800 1055.551500 1079.008200 1102.464900 1125.921600
1149.378300 1172.835000 1196.291700 1219.748400 1243.205100 1266.661800 1290.118500 1313.575200
1337.031900 1360.488600 1383.945300 1407.402000 1430.858700 1454.315400 1477.772100 1501.228800
1524.685500 1548.142200 1571.598900 1595.055600 1618.512300 1641.969000 1665.425700 1688.882400
1712.339100 1735.795800 1759.252500 1782.709200 1806.165900 1829.622600 1853.079300 1876.536000
1899.992700 1923.449400 1946.906100 1970.362800 1993.819500 2017.276200 2040.732900 2064.189600
2087.646300 2111.103000 2134.559700 2158.016400 2181.473100 2204.929800 2228.386500 2251.843200
2275.299900 2298.756600 2322.213300
$3 = void
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 1
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 2
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 3
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 4
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 5
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 6
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 7
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 8
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 9
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 10
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 11
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 12
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 13
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 14
PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 15
(gdb) PASS: gdb.base/call-ar-st.exp: print print_double_array(array_d), pattern 16 + sentinel
tbreak 1236
Breakpoint 5: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c, line 1236.
(gdb) PASS: gdb.base/call-ar-st.exp: tbreakpoint line 1236
continue
Continuing.
array_c :
=========
Z
aZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZ
aZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZaZ
aZaZaZaZaZaZaZaZaZa
array_f :
=========
0.000000
0.142450 0.284900 0.427350 0.569801 0.712251 0.854701 0.997151 1.139601
1.282051 1.424501 1.566952 1.709402 1.851852 1.994302
array_d :
=========
0.000000
23.456700 46.913400 70.370100 93.826800 117.283500 140.740200 164.196900 187.653600
211.110300 234.567000 258.023700 281.480400 304.937100 328.393800 351.850500 375.307200
398.763900 422.220600 445.677300 469.134000 492.590700 516.047400 539.504100 562.960800
586.417500 609.874200 633.330900 656.787600 680.244300 703.701000 727.157700 750.614400
774.071100 797.527800 820.984500 844.441200 867.897900 891.354600 914.811300 938.268000
961.724700 985.181400 1008.638100 1032.094800 1055.551500 1079.008200 1102.464900 1125.921600
1149.378300 1172.835000 1196.291700 1219.748400 1243.205100 1266.661800 1290.118500 1313.575200
1337.031900 1360.488600 1383.945300 1407.402000 1430.858700 1454.315400 1477.772100 1501.228800
1524.685500 1548.142200 1571.598900 1595.055600 1618.512300 1641.969000 1665.425700 1688.882400
1712.339100 1735.795800 1759.252500 1782.709200 1806.165900 1829.622600 1853.079300 1876.536000
1899.992700 1923.449400 1946.906100 1970.362800 1993.819500 2017.276200 2040.732900 2064.189600
2087.646300 2111.103000 2134.559700 2158.016400 2181.473100 2204.929800 2228.386500 2251.843200
2275.299900 2298.756600 2322.213300
HELLO WORLD
main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:1236
1236 printf("BYE BYE FOR NOW\n");
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 1
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 2
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 3
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 4
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 5
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 6
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 7
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 8
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 9
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 10
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 11
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 12
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 13
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 14
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 15
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 16
PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 17
(gdb) PASS: gdb.base/call-ar-st.exp: continuing to 1236, pattern 18 + sentinel
print sum_array_print(10, *list1, *list2, *list3, *list4)
Sum of 4 arrays, by element (add in seed as well):
Seed: 10
Element Index | Sum
-------------------------
|
0 52
1 60
2 68
3 76
4 84
5 92
6 100
7 108
8 116
9 124
$4 = void
(gdb) PASS: gdb.base/call-ar-st.exp: print sum_array_print(10, *list1, *list2, *list3, *list4)
next
BYE BYE FOR NOW
1237 printf("VERY GREEN GRASS\n");
(gdb) PASS: gdb.base/call-ar-st.exp: next to 1237
print print_array_rep(*list1, *list2, *list3)
Contents of linked list1:
Element Value | Index of Next Element
-------------------------------------
|
4 1
6 2
8 3
10 4
12 5
14 6
16 7
18 8
20 9
22 10
Contents of linked list2:
Element Value | Index of Next Element
-------------------------------------
|
8 1
10 2
12 3
14 4
16 5
18 6
20 7
22 8
24 9
26 10
Contents of linked list3:
Element Value | Index of Next Element
-------------------------------------
|
10 1
12 2
14 3
16 4
18 5
20 6
22 7
24 8
26 9
28 10
$5 = void
(gdb) PASS: gdb.base/call-ar-st.exp: print print_array_rep(*list1, *list2, *list3)
tbreak 1241
Breakpoint 6: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c, line 1241.
(gdb) PASS: gdb.base/call-ar-st.exp: tbreakpoint line 1241
continue
Continuing.
VERY GREEN GRASS
main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:1241
1241 sum_array_print(10, *list1, *list2, *list3, *list4);
(gdb) PASS: gdb.base/call-ar-st.exp: continue to 1241
break sum_array_print
Breakpoint 7: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c, line 1105.
(gdb) PASS: gdb.base/call-ar-st.exp: set breakpoint in sum_array_print
continue
Continuing.
Breakpoint 7, sum_array_print (seed=10, linked_list1={next_index = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, values = {4, 6, 8, 10, 12, 14, 16, 18, 20, 22}, head = 0}, linked_list2={next_index = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, values = {8, 10, 12, 14, 16, 18, 20, 22, 24, 26}, head = 0}, linked_list3={next_index = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, values = {10, 12, 14, 16, 18, 20, 22, 24, 26, 28}, head = 0}, linked_list4={next_index = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, values = {20, 22, 24, 26, 28, 30, 32, 34, 36, 38}, head = 0}) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:1105
1105 printf("Sum of 4 arrays, by element (add in seed as well): \n\n");
(gdb) PASS: gdb.base/call-ar-st.exp: check args of sum_array_print
tbreak 1281
Breakpoint 8: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c, line 1281.
(gdb) PASS: gdb.base/call-ar-st.exp: tbreakpoint line 1281
continue
Continuing.
Sum of 4 arrays, by element (add in seed as well):
Seed: 10
Element Index | Sum
-------------------------
|
0 52
1 60
2 68
3 76
4 84
5 92
6 100
7 108
8 116
9 124
Contents of linked list1:
Element Value | Index of Next Element
-------------------------------------
|
4 1
6 2
8 3
10 4
12 5
14 6
16 7
18 8
20 9
22 10
Contents of linked list2:
Element Value | Index of Next Element
-------------------------------------
|
8 1
10 2
12 3
14 4
16 5
18 6
20 7
22 8
24 9
26 10
Contents of linked list3:
Element Value | Index of Next Element
-------------------------------------
|
10 1
12 2
14 3
16 4
18 5
20 6
22 7
24 8
26 9
28 10
4 1
alpha
gamma
epsilon
alpha
gamma
epsilon
ch1: y ch2: n
Contents of three_char_t:
a b c
Contents of five_char_t:
l m n o p
Contents of int_char_combo_t:
123 z
Sum of the 4 struct values and seed :
52
Contents of struct1:
6 0
Contents of struct2:
10 0
Contents of struct3:
12 0
Contents of one_double_t:
10.500000
Contents of one_double_t:
-3.375000
Contents of one_double_t:
675.093750
Contents of two_floats_t:
45.234001 43.599998
Contents of two_floats_t:
78.010002 122.099998
Contents of two_floats_t:
-1232.344971 -199.210007
main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:1281
1281 c = 0;
(gdb) PASS: gdb.base/call-ar-st.exp: continue to 1281
print print_small_structs(*struct1, *struct2, *struct3, *struct4, *flags, *flags_combo, *three_char, *five_char, *int_char_co
mbo, *d1, *d2, *d3, *f1, *f2, *f3)
alpha
gamma
epsilon
alpha
gamma
epsilon
ch1: y ch2: n
Contents of three_char_t:
a b c
Contents of five_char_t:
l m n o p
Contents of int_char_combo_t:
123 z
Sum of the 4 struct values and seed :
52
Contents of struct1:
6 0
Contents of struct2:
10 0
Contents of struct3:
12 0
Contents of one_double_t:
10.500000
Contents of one_double_t:
-3.375000
Contents of one_double_t:
675.093750
Contents of two_floats_t:
45.234001 43.599998
Contents of two_floats_t:
78.010002 122.099998
Contents of two_floats_t:
-1232.344971 -199.210007
$6 = void
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 1
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 2
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 3
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 4
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 5
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 6
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 7
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 8
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 9
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 10
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 11
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 12
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 13
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 14
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 15
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 16
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 17
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 18
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 19
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 20
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 21
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 22
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 23
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 24
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 25
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 26
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 27
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 28
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 29
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 30
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 31
PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 32
(gdb) PASS: gdb.base/call-ar-st.exp: print print_small_structs, pattern 33 + sentinel
print compute_with_small_structs(20)
$7 = void
(gdb) PASS: gdb.base/call-ar-st.exp: print compute_with_small_structs(20)
print print_ten_doubles(123.456, 123.456, -0.12, -1.23, 343434.8, 89.098, 3.14, -5678.12345, -0.11111111, 216.97065)
Two Doubles : 123.456000 123.456000
Two Doubles : -0.120000 -1.230000
Two Doubles : 343434.800000 89.098000
Two Doubles : 3.140000 -5678.123450
Two Doubles : -0.111111 216.970650
$8 = void
PASS: gdb.base/call-ar-st.exp: print print_ten_doubles, pattern 1
PASS: gdb.base/call-ar-st.exp: print print_ten_doubles, pattern 2
PASS: gdb.base/call-ar-st.exp: print print_ten_doubles, pattern 3
PASS: gdb.base/call-ar-st.exp: print print_ten_doubles, pattern 4
(gdb) PASS: gdb.base/call-ar-st.exp: print print_ten_doubles, pattern 5 + sentinel
tbreak 1286
Breakpoint 9: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c, line 1286.
(gdb) PASS: gdb.base/call-ar-st.exp: tbreakpoint line 1286
continue
Continuing.
main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:1286
1286 print_long_arg_list ( a, b, c, d, e, f, *struct1, *struct2, *struct3, *struct4,
(gdb) PASS: gdb.base/call-ar-st.exp: continue to 1286
tbreak print_long_arg_list
Breakpoint 10: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c, line 992.
(gdb) PASS: gdb.base/call-ar-st.exp: tbreak in print_long_arg_list after stepping into memcpy
continue
Continuing.
print_long_arg_list (a=22.25, b=33.375, c=0, d=-25, e=100, f=2345, struct1={value = 6, head = 0}, struct2={value = 10, head = 0}, struct3={value = 12, head = 0}, struct4={value = 14, head = 0}, flags={alpha = 1, beta = 0, gamma = 1, delta = 0, epsilon = 1, omega = 0}, flags_combo={alpha = 1, beta = 0, ch1 = 121 'y', gamma = 1, delta = 0, ch2 = 110 'n', epsilon = 1, omega = 0}, three_char={ch1 = 97 'a', ch2 = 98 'b', ch3 = 99 'c'}, five_char={ch1 = 108 'l', ch2 = 109 'm', ch3 = 110 'n', ch4 = 111 'o', ch5 = 112 'p'}, int_char_combo={int1 = 123, ch1 = 122 'z'}, d1={double1 = 10.5}, d2={double1 = -3.375}, d3={double1 = 675.09375}, f1={float1 = 45.2340012, float2 = 43.5999985}, f2={float1 = 78.0100021, float2 = 122.099998}, f3={float1 = -1232.34497, float2 = -199.210007}) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:992
992 printf("double : %f\n", a);
(gdb) PASS: gdb.base/call-ar-st.exp: step into print_long_arg_list
print print_small_structs(struct1, struct2, struct3, struct4, flags, flags_combo, three_char, five_char, int_char_combo, d1,
d2, d3, f1, f2, f3)
alpha
gamma
epsilon
alpha
gamma
epsilon
ch1: y ch2: n
Contents of three_char_t:
a b c
Contents of five_char_t:
l m n o p
Contents of int_char_combo_t:
123 z
Sum of the 4 struct values and seed :
52
Contents of struct1:
6 0
Contents of struct2:
10 0
Contents of struct3:
12 0
Contents of one_double_t:
10.500000
Contents of one_double_t:
-3.375000
Contents of one_double_t:
675.093750
Contents of two_floats_t:
45.234001 43.599998
Contents of two_floats_t:
78.010002 122.099998
Contents of two_floats_t:
-1232.344971 -199.210007
$9 = void
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 1
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 2
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 3
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 4
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 5
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 6
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 7
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 8
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 9
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 10
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 11
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 12
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 13
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 14
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 15
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 16
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 17
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 18
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 19
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 20
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 21
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 22
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 23
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 24
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 25
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 26
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 27
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 28
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 29
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 30
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 31
PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 32
(gdb) PASS: gdb.base/call-ar-st.exp: print print_small_structs from print_long_arg_list, pattern 33 + sentinel
tbreak 1300
Breakpoint 11: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c, line 1300.
(gdb) PASS: gdb.base/call-ar-st.exp: tbreakpoint line 1300
continue
Continuing.
double : 22.250000
double : 33.375000
int : 0
int : -25
int : 100
int : 2345
alpha
gamma
epsilon
alpha
gamma
epsilon
ch1: y ch2: n
Contents of three_char_t:
a b c
Contents of five_char_t:
l m n o p
Contents of int_char_combo_t:
123 z
Sum of the 4 struct values and seed :
52
Contents of struct1:
6 0
Contents of struct2:
10 0
Contents of struct3:
12 0
Contents of one_double_t:
10.500000
Contents of one_double_t:
-3.375000
Contents of one_double_t:
675.093750
Contents of two_floats_t:
45.234001 43.599998
Contents of two_floats_t:
78.010002 122.099998
Contents of two_floats_t:
-1232.344971 -199.210007
main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:1300
1300 init_bit_flags_combo(flags_combo, (unsigned)1, (unsigned)0, 'y',
(gdb) PASS: gdb.base/call-ar-st.exp: continue to 1300
step
init_bit_flags_combo (bit_flags_combo=, a=1, b=0, ch1=121 'y', g=1, d=0, ch2=110 'n', e=1, o=0) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:416
416 bit_flags_combo->alpha = a;
(gdb) PASS: gdb.base/call-ar-st.exp: step into init_bit_flags_combo
print print_bit_flags_combo(*bit_flags_combo)
alpha
gamma
epsilon
ch1: y ch2: n
$10 = void
(gdb) PASS: gdb.base/call-ar-st.exp: print print_bit_flags_combo from init_bit_flags_combo
tbreak 1305
Breakpoint 12: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c, line 1305.
(gdb) PASS: gdb.base/call-ar-st.exp: tbreakpoint line 1305
continue
Continuing.
main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:1305
1305 init_int_char_combo(int_char_combo, 13, '!');
(gdb) PASS: gdb.base/call-ar-st.exp: continue to 1305
print print_long_arg_list(a, b, c, d, e, f, *struct1, *struct2, *struct3, *struct4, *flags, *flags_combo, *three_char, *five_
char, *int_char_combo, *d1, *d2, *d3, *f1, *f2, *f3)
double : 22.250000
double : 33.375000
int : 0
int : -25
int : 100
int : 2345
alpha
gamma
epsilon
alpha
gamma
epsilon
ch1: y ch2: n
Contents of three_char_t:
x y z
Contents of five_char_t:
h e l l o
Contents of int_char_combo_t:
123 z
Sum of the 4 struct values and seed :
52
Contents of struct1:
6 0
Contents of struct2:
10 0
Contents of struct3:
12 0
Contents of one_double_t:
1.111110
Contents of one_double_t:
-345.340000
Contents of one_double_t:
546464.200000
Contents of two_floats_t:
0.234000 453.100006
Contents of two_floats_t:
78.345001 23.090000
Contents of two_floats_t:
-2.345000 1.000000
$11 = void
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 1
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 2
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 3
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 4
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 5
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 6
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 7
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 8
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 9
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 10
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 11
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 12
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 13
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 14
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 15
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 16
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 17
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 18
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 19
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 20
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 21
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 22
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 23
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 24
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 25
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 26
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 27
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 28
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 29
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 30
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 31
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 32
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 33
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 34
PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 35
(gdb) PASS: gdb.base/call-ar-st.exp: print print_long_arg_list, pattern 36 + sentinel
tbreak 1311
Breakpoint 13: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c, line 1311.
(gdb) PASS: gdb.base/call-ar-st.exp: tbreakpoint line 1311
continue
Continuing.
main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.c:1311
1311 compute_with_small_structs(35);
(gdb) PASS: gdb.base/call-ar-st.exp: continue to 1311
print sum_struct_print(10, *struct1, *struct2, *struct3, *struct4)
Sum of the 4 struct values and seed :
218
$12 = void
(gdb) PASS: gdb.base/call-ar-st.exp: print sum_struct_print(10, *struct1, *struct2, *struct3, *struct4)
print print_struct_rep(*struct1, *struct2, *struct3)
Contents of struct1:
22 0
Contents of struct2:
42 0
Contents of struct3:
62 0
$13 = void
PASS: gdb.base/call-ar-st.exp: print print_struct_rep(*struct1, *struct2, *struct3), pattern 1
PASS: gdb.base/call-ar-st.exp: print print_struct_rep(*struct1, *struct2, *struct3), pattern 2
PASS: gdb.base/call-ar-st.exp: print print_struct_rep(*struct1, *struct2, *struct3), pattern 3
PASS: gdb.base/call-ar-st.exp: print print_struct_rep(*struct1, *struct2, *struct3), pattern 4
PASS: gdb.base/call-ar-st.exp: print print_struct_rep(*struct1, *struct2, *struct3), pattern 5
(gdb) PASS: gdb.base/call-ar-st.exp: print print_struct_rep(*struct1, *struct2, *struct3), pattern 6 + sentinel
print print_one_large_struct(*list1)
4 1
$14 = void
(gdb) PASS: gdb.base/call-ar-st.exp: print print_one_large_struct(*list1)
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-ar-st.exp completed in 2 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-rt-st.exp ...
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-rt-st.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/call-rt-st (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-rt-st.c -w -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/call-rt-st
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/call-rt-st.ci (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/call-rt-st.ci
spawn /cygnus/build/native/gdb/testsuite/../../gdb/gdb -nw -nx
GNU gdb 5.0
Copyright 2000 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 /cygnus/src/uberbaum/gdb/testsuite/gdb.base
Source directories searched: /cygnus/src/uberbaum/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) file /cygnus/build/native/gdb/testsuite/gdb.base/call-rt-st
Reading symbols from /cygnus/build/native/gdb/testsuite/gdb.base/call-rt-st...done.
(gdb) set print sevenbit-strings
(gdb) set print address off
(gdb) set width 0
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-rt-st.c, line 550.
(gdb) run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/call-rt-st
Breakpoint 1, main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-rt-st.c:550
550 int number = 10;
(gdb) break loop_count
Breakpoint 2: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-rt-st.c, line 106.
(gdb) PASS: gdb.base/call-rt-st.exp: breakpoint loop_count
continue
Continuing.
4 1
Contents of one_double_t:
1.111110
Contents of two_floats_t:
-2.345000 1.000000
alpha
gamma
epsilon
alpha
gamma
epsilon
ch1: y ch2: n
Contents of three_char_t:
x y z
Contents of five_char_t:
h e l l o
Contents of int_char_combo_t:
13 !
Contents of struct1:
22 0
Breakpoint 2, loop_count () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-rt-st.c:106
106 for (index=0; index<4; index++);
(gdb) PASS: gdb.base/call-rt-st.exp: continue to loop_count
finish
Run till exit from #0 loop_count () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-rt-st.c:106
main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-rt-st.c:617
617 return 0;
(gdb) PASS: gdb.base/call-rt-st.exp: finish out from loop_count (line 617)
print print_struct_rep(*struct1)
Contents of struct1:
22 0
$1 = {value = 5, head = 0}
(gdb) PASS: gdb.base/call-rt-st.exp: print print_struct_rep(*struct1, *struct2, *struct3)
print print_one_large_struct(*list1)
4 1
$2 = {next_index = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, values = {4, 6, 8, 10, 12, 14, 16, 18, 20, 22}, head = 0}
(gdb) PASS: gdb.base/call-rt-st.exp: print print_one_large_struct(*list1)
print print_one_double(*d1)
Contents of one_double_t:
1.111110
$3 = {double1 = 1.11111}
(gdb) PASS: gdb.base/call-rt-st.exp: print print_one_double(*d1)
print print_two_floats(*f3)
Contents of two_floats_t:
-2.345000 1.000000
$4 = {float1 = -2.34500003, float2 = 1}
(gdb) PASS: gdb.base/call-rt-st.exp: print print_two_floats(*f3)
print print_bit_flags(*flags)
alpha
gamma
epsilon
$5 = {alpha = 1, beta = 0, gamma = 1, delta = 0, epsilon = 1, omega = 0}
(gdb) PASS: gdb.base/call-rt-st.exp: print print_bit_flags(*flags)
print print_bit_flags_combo(*flags_combo)
alpha
gamma
epsilon
ch1: y ch2: n
$6 = {alpha = 1, beta = 0, ch1 = 121 'y', gamma = 1, delta = 0, ch2 = 110 'n', epsilon = 1, omega = 0}
(gdb) PASS: gdb.base/call-rt-st.exp: print print_bit_flags_combo(*flags_combo)
print print_three_chars(*three_char)
Contents of three_char_t:
x y z
$7 = {ch1 = 120 'x', ch2 = 121 'y', ch3 = 122 'z'}
(gdb) PASS: gdb.base/call-rt-st.exp: print print_three_chars(*three_char)
print print_five_chars(*five_char)
Contents of five_char_t:
h e l l o
$8 = {ch1 = 104 'h', ch2 = 101 'e', ch3 = 108 'l', ch4 = 108 'l', ch5 = 111 'o'}
(gdb) PASS: gdb.base/call-rt-st.exp: print print_five_chars(*five_char)
print print_int_char_combo(*int_char_combo)
Contents of int_char_combo_t:
13 !
$9 = {int1 = 13, ch1 = 33 '!'}
(gdb) PASS: gdb.base/call-rt-st.exp: print print_int_char_combo(*int_char_combo)
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-rt-st.exp completed in 1 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-strs.exp ...
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-strs.c -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/call-strs (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-strs.c -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/call-strs
spawn /cygnus/build/native/gdb/testsuite/../../gdb/gdb -nw -nx
GNU gdb 5.0
Copyright 2000 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 /cygnus/src/uberbaum/gdb/testsuite/gdb.base
Source directories searched: /cygnus/src/uberbaum/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) file /cygnus/build/native/gdb/testsuite/gdb.base/call-strs
Reading symbols from /cygnus/build/native/gdb/testsuite/gdb.base/call-strs...done.
(gdb) set print sevenbit-strings
(gdb) set print address off
(gdb) set width 0
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-strs.c, line 72.
(gdb) run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/call-strs
Breakpoint 1, main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-strs.c:72
72 s = &buf[0];
(gdb) step
73 strcpy(buf, "test string");
(gdb) PASS: gdb.base/call-strs.exp: step after assignment to s
next
74 str_func("abcd", "efgh", "ijkl", "mnop", "qrst", "uvwx", "yz12");
(gdb) PASS: gdb.base/call-strs.exp: next over strcpy
print buf
$1 = "test string", '\000' <repeats 88 times>
(gdb) PASS: gdb.base/call-strs.exp: print buf
print s
$2 = "test string"
(gdb) PASS: gdb.base/call-strs.exp: print s
print str_func1(s)
first string arg is: test string
$3 = "test string"
(gdb) PASS: gdb.base/call-strs.exp: print str_func1(s)
print str_func1("test string")
first string arg is: test string
$4 = "test string"
(gdb) PASS: gdb.base/call-strs.exp: print str_func1("test string")
call str_func1(s)
first string arg is: test string
$5 = "test string"
(gdb) PASS: gdb.base/call-strs.exp: call str_func1(s)
call str_func1("test string")
first string arg is: test string
$6 = "test string"
(gdb) PASS: gdb.base/call-strs.exp: call str_func1("test string")
print str_func1(buf)
first string arg is: test string
$7 = "test string"
(gdb) PASS: gdb.base/call-strs.exp: print str_func1(buf)
call str_func1(buf)
first string arg is: test string
$8 = "test string"
(gdb) PASS: gdb.base/call-strs.exp: call str_func1(buf)
print str_func("a","b","c","d","e","f","g")
first string arg is: a
second string arg is: b
third string arg is: c
fourth string arg is: d
fifth string arg is: e
sixth string arg is: f
seventh string arg is: g
$9 = "abcdefg"
(gdb) PASS: gdb.base/call-strs.exp: print str_func("a","b","c","d","e","f","g")
call str_func("a","b","c","d","e","f","g")
first string arg is: a
second string arg is: b
third string arg is: c
fourth string arg is: d
fifth string arg is: e
sixth string arg is: f
seventh string arg is: g
$10 = "abcdefg"
(gdb) PASS: gdb.base/call-strs.exp: call str_func("a","b","c","d","e","f","g")
print str_func(s,s,s,s,s,s,s)
first string arg is: test string
second string arg is: test string
third string arg is: test string
fourth string arg is: test string
fifth string arg is: test string
sixth string arg is: test string
seventh string arg is: test string
$11 = "test stringtest stringtest stringtest stringtest stringtest stringtest string"
(gdb) PASS: gdb.base/call-strs.exp: print str_func(s,s,s,s,s,s,s)
call str_func(s,s,s,s,s,s,s)
first string arg is: test string
second string arg is: test string
third string arg is: test string
fourth string arg is: test string
fifth string arg is: test string
sixth string arg is: test string
seventh string arg is: test string
$12 = "test stringtest stringtest stringtest stringtest stringtest stringtest string"
(gdb) PASS: gdb.base/call-strs.exp: call str_func(s,s,s,s,s,s,s)
testcase /cygnus/src/uberbaum/gdb/testsuite/gdb.base/call-strs.exp completed in 0 seconds
Running /cygnus/src/uberbaum/gdb/testsuite/gdb.base/callfuncs.exp ...
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/callfuncs.c -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/callfuncs (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/gdb.base/callfuncs.c -g -lm -o /cygnus/build/native/gdb/testsuite/gdb.base/callfuncs
Executing on host: gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/callfuncs.ci (timeout = 300)
spawn gcc /cygnus/src/uberbaum/gdb/testsuite/lib/compiler.c -E -o /cygnus/build/native/gdb/testsuite/gdb.base/callfuncs.ci
spawn /cygnus/build/native/gdb/testsuite/../../gdb/gdb -nw -nx
GNU gdb 5.0
Copyright 2000 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 /cygnus/src/uberbaum/gdb/testsuite/gdb.base
Source directories searched: /cygnus/src/uberbaum/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) file /cygnus/build/native/gdb/testsuite/gdb.base/callfuncs
Reading symbols from /cygnus/build/native/gdb/testsuite/gdb.base/callfuncs...done.
(gdb) set print sevenbit-strings
(gdb) PASS: gdb.base/callfuncs.exp: set print sevenbit-strings
set print address off
(gdb) PASS: gdb.base/callfuncs.exp: set print address off
set width 0
(gdb) PASS: gdb.base/callfuncs.exp: set width 0
set language c
(gdb) show language
The current source language is "c".
(gdb) PASS: gdb.base/callfuncs.exp: set language to "c"
delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/callfuncs.c, line 356.
(gdb) run
Starting program: /cygnus/build/native/gdb/testsuite/gdb.base/callfuncs
Breakpoint 1, main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/callfuncs.c:356
356 malloc(1);
(gdb) next
357 t_double_values(double_val1, double_val2);
(gdb) PASS: gdb.base/callfuncs.exp: next
next
358 t_structs_c(struct_val1);
(gdb) PASS: gdb.base/callfuncs.exp: next
info all-registers
eax 0x1 1
ecx 0x40128d60 1074957664
edx 0x309 777
ebx 0x4012a1ec 1074962924
esp 0xbffff398
ebp 0xbffff3b0
esi 0x4000ae60 1073786464
edi 0xbffff3fc -1073744900
eip 0x8048a8f
eflags 0x382 898
cs 0x23 35
ss 0x2b 43
ds 0x2b 43
es 0x2b 43
fs 0x0 0
gs 0x0 0
st0 0 (raw 0x00000000000000000000)
st1 0 (raw 0x00000000000000000000)
st2 0 (raw 0x00000000000000000000)
st3 0.5 (raw 0x3ffe8000000000000000)
st4 0.34999999999999997779553950749686919 (raw 0x3ffdb333333333333000)
st5 0 (raw 0x00000000000000000000)
st6 -0.0010000000000000000208166817117216851 (raw 0xbff583126e978d4fe000)
st7 0 (raw 0x00000000000000000000)
fctrl 0x37f 895
fstat 0x100 256
ftag 0xffff 65535
fiseg 0x23 35
fioff 0x80488f3 134514931
foseg 0x2b 43
fooff 0x0 0
fop 0x6d9 1753
(gdb) p t_char_values(0,0)
$1 = 0
(gdb) PASS: gdb.base/callfuncs.exp: p t_char_values(0,0)
p t_char_values('a','b')
$2 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_char_values('a','b')
p t_char_values(char_val1,char_val2)
$3 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_char_values(char_val1,char_val2)
p t_char_values('a',char_val2)
$4 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_char_values('a',char_val2)
p t_char_values(char_val1,'b')
$5 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_char_values(char_val1,'b')
p t_short_values(0,0)
$6 = 0
(gdb) PASS: gdb.base/callfuncs.exp: p t_short_values(0,0)
p t_short_values(10,-23)
$7 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_short_values(10,-23)
p t_short_values(short_val1,short_val2)
$8 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_short_values(short_val1,short_val2)
p t_short_values(10,short_val2)
$9 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_short_values(10,short_val2)
p t_short_values(short_val1,-23)
$10 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_short_values(short_val1,-23)
p t_int_values(0,0)
$11 = 0
(gdb) PASS: gdb.base/callfuncs.exp: p t_int_values(0,0)
p t_int_values(87,-26)
$12 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_int_values(87,-26)
p t_int_values(int_val1,int_val2)
$13 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_int_values(int_val1,int_val2)
p t_int_values(87,int_val2)
$14 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_int_values(87,int_val2)
p t_int_values(int_val1,-26)
$15 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_int_values(int_val1,-26)
p t_long_values(0,0)
$16 = 0
(gdb) PASS: gdb.base/callfuncs.exp: p t_long_values(0,0)
p t_long_values(789,-321)
$17 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_long_values(789,-321)
p t_long_values(long_val1,long_val2)
$18 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_long_values(long_val1,long_val2)
p t_long_values(789,long_val2)
$19 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_long_values(789,long_val2)
p t_long_values(long_val1,-321)
$20 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_long_values(long_val1,-321)
p t_float_values(0.0,0.0)
$21 = 0
(gdb) PASS: gdb.base/callfuncs.exp: p t_float_values(0.0,0.0)
p t_float_values(3.14159,-2.3765)
$22 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_float_values(3.14159,-2.3765)
p t_float_values(float_val1,float_val2)
$23 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_float_values(float_val1,float_val2)
p t_float_values(3.14159,float_val2)
$24 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_float_values(3.14159,float_val2)
p t_float_values(float_val1,-2.3765)
$25 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_float_values(float_val1,-2.3765)
p t_float_values2(0.0,0.0)
$26 = 0
(gdb) PASS: gdb.base/callfuncs.exp: p t_float_values2(0.0,0.0)
p t_float_values2(3.14159,float_val2)
$27 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_float_values2(3.14159,float_val2)
p t_small_values(1,2,3,4,5,6,7,8,9,10)
$28 = 55
(gdb) PASS: gdb.base/callfuncs.exp: p t_small_values(1,2,3,4,5,6,7,8,9,10)
p t_double_values(0.0,0.0)
$29 = 0
(gdb) PASS: gdb.base/callfuncs.exp: p t_double_values(0.0,0.0)
p t_double_values(45.654,-67.66)
$30 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_double_values(45.654,-67.66)
p t_double_values(double_val1,double_val2)
$31 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_double_values(double_val1,double_val2)
p t_double_values(45.654,double_val2)
$32 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_double_values(45.654,double_val2)
p t_double_values(double_val1,-67.66)
$33 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_double_values(double_val1,-67.66)
p t_string_values(string_val2,string_val1)
$34 = 0
(gdb) PASS: gdb.base/callfuncs.exp: p t_string_values(string_val2,string_val1)
p t_string_values(string_val1,string_val2)
$35 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_string_values(string_val1,string_val2)
p t_string_values("string 1","string 2")
$36 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_string_values("string 1","string 2")
p t_string_values("string 1",string_val2)
$37 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_string_values("string 1",string_val2)
p t_string_values(string_val1,"string 2")
$38 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_string_values(string_val1,"string 2")
p t_char_array_values(char_array_val2,char_array_val1)
$39 = 0
(gdb) PASS: gdb.base/callfuncs.exp: p t_char_array_values(char_array_val2,char_array_val1)
p t_char_array_values(char_array_val1,char_array_val2)
$40 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_char_array_values(char_array_val1,char_array_val2)
p t_char_array_values("carray 1","carray 2")
$41 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_char_array_values("carray 1","carray 2")
p t_char_array_values("carray 1",char_array_val2)
$42 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_char_array_values("carray 1",char_array_val2)
p t_char_array_values(char_array_val1,"carray 2")
$43 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_char_array_values(char_array_val1,"carray 2")
p doubleit(4)
$44 = 8
(gdb) PASS: gdb.base/callfuncs.exp: p doubleit(4)
p add(4,5)
$45 = 9
(gdb) PASS: gdb.base/callfuncs.exp: p add(4,5)
p t_func_values(func_val2,func_val1)
$46 = 0
(gdb) PASS: gdb.base/callfuncs.exp: p t_func_values(func_val2,func_val1)
p t_func_values(func_val1,func_val2)
$47 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_func_values(func_val1,func_val2)
p t_func_values(add,func_val2)
$48 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_func_values(add,func_val2)
p t_func_values(func_val1,doubleit)
$49 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_func_values(func_val1,doubleit)
p t_call_add(add,3,4)
$50 = 7
(gdb) PASS: gdb.base/callfuncs.exp: p t_call_add(add,3,4)
p t_call_add(func_val1,3,4)
$51 = 7
(gdb) PASS: gdb.base/callfuncs.exp: p t_call_add(func_val1,3,4)
p t_enum_value1(enumval1)
$52 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_enum_value1(enumval1)
p t_enum_value1(enum_val1)
$53 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_enum_value1(enum_val1)
p t_enum_value1(enum_val2)
$54 = 0
(gdb) PASS: gdb.base/callfuncs.exp: p t_enum_value1(enum_val2)
p t_enum_value2(enumval2)
$55 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_enum_value2(enumval2)
p t_enum_value2(enum_val2)
$56 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p t_enum_value2(enum_val2)
p t_enum_value2(enum_val1)
$57 = 0
(gdb) PASS: gdb.base/callfuncs.exp: p t_enum_value2(enum_val1)
p sum_args(1,{2})
$58 = 2
(gdb) PASS: gdb.base/callfuncs.exp: p sum_args(1,{2})
p sum_args(2,{2,3})
$59 = 5
(gdb) PASS: gdb.base/callfuncs.exp: p sum_args(2,{2,3})
p sum_args(3,{2,3,4})
$60 = 9
(gdb) PASS: gdb.base/callfuncs.exp: p sum_args(3,{2,3,4})
p sum_args(4,{2,3,4,5})
$61 = 14
(gdb) PASS: gdb.base/callfuncs.exp: p sum_args(4,{2,3,4,5})
p sum10 (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
$62 = 55
(gdb) PASS: gdb.base/callfuncs.exp: p sum10 (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
p cmp10 (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
$63 = 1
(gdb) PASS: gdb.base/callfuncs.exp: p cmp10 (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
p t_structs_c(struct_val1)
$64 = 120 'x'
(gdb) PASS: gdb.base/callfuncs.exp: call inferior func with struct - returns char
p t_structs_s(struct_val1)
$65 = 87
(gdb) PASS: gdb.base/callfuncs.exp: call inferior func with struct - returns short
p t_structs_i(struct_val1)
$66 = 76
(gdb) PASS: gdb.base/callfuncs.exp: call inferior func with struct - returns int
p t_structs_l(struct_val1)
$67 = 51
(gdb) PASS: gdb.base/callfuncs.exp: call inferior func with struct - returns long
p t_structs_f(struct_val1)
$68 = 2.12339997
(gdb) PASS: gdb.base/callfuncs.exp: call inferior func with struct - returns float
p t_structs_d(struct_val1)
$69 = 9.8759999999999994
(gdb) PASS: gdb.base/callfuncs.exp: call inferior func with struct - returns double
p t_structs_a(struct_val1)
$70 = "foo"
(gdb) PASS: gdb.base/callfuncs.exp: call inferior func with struct - returns char *
info all-registers
eax 0x1 1
ecx 0x40128d60 1074957664
edx 0x309 777
ebx 0x4012a1ec 1074962924
esp 0xbffff398
ebp 0xbffff3b0
esi 0x4000ae60 1073786464
edi 0xbffff3fc -1073744900
eip 0x8048a8f
eflags 0x382 898
cs 0x23 35
ss 0x2b 43
ds 0x2b 43
es 0x2b 43
fs 0x0 0
gs 0x0 0
st0 0 (raw 0x00000000000000000000)
st1 0 (raw 0x00000000000000000000)
st2 0 (raw 0x00000000000000000000)
st3 0.5 (raw 0x3ffe8000000000000000)
st4 0.34999999999999997779553950749686919 (raw 0x3ffdb333333333333000)
st5 0 (raw 0x00000000000000000000)
st6 -0.0010000000000000000208166817117216851 (raw 0xbff583126e978d4fe000)
st7 0 (raw 0x00000000000000000000)
fctrl 0x37f 895
fstat 0x100 256
ftag 0xffff 65535
fiseg 0x23 35
fioff 0x80488f3 134514931
foseg 0x2b 43
fooff 0x0 0
fop 0x6d9 1753
(gdb) PASS: gdb.base/callfuncs.exp: gdb function calls preserve register contents
break add
Breakpoint 2: file /cygnus/src/uberbaum/gdb/testsuite/gdb.base/callfuncs.c, line 58.
(gdb) print add(4,5)
Breakpoint 2, add (a=4, b=5) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/callfuncs.c:58
58 return (a + b);
The program being debugged stopped while in a function called from GDB.
When the function (add) is done executing, GDB will silently
stop (instead of continuing to evaluate the expression containing
the function call).
(gdb) continue
Continuing.
(gdb) PASS: gdb.base/callfuncs.exp: continue from call dummy breakpoint
bt 2
#0 main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/callfuncs.c:358
#1 __libc_start_main () from /lib/libc.so.6
(gdb) PASS: gdb.base/callfuncs.exp: bt after continuing from call dummy breakpoint
info all-registers
eax 0x1 1
ecx 0x40128d60 1074957664
edx 0x309 777
ebx 0x4012a1ec 1074962924
esp 0xbffff398
ebp 0xbffff3b0
esi 0x4000ae60 1073786464
edi 0xbffff3fc -1073744900
eip 0x8048a8f
eflags 0x382 898
cs 0x23 35
ss 0x2b 43
ds 0x2b 43
es 0x2b 43
fs 0x0 0
gs 0x0 0
st0 0 (raw 0x00000000000000000000)
st1 0 (raw 0x00000000000000000000)
st2 0 (raw 0x00000000000000000000)
st3 0.5 (raw 0x3ffe8000000000000000)
st4 0.34999999999999997779553950749686919 (raw 0x3ffdb333333333333000)
st5 0 (raw 0x00000000000000000000)
st6 -0.0010000000000000000208166817117216851 (raw 0xbff583126e978d4fe000)
st7 0 (raw 0x00000000000000000000)
fctrl 0x37f 895
fstat 0x100 256
ftag 0xffff 65535
fiseg 0x23 35
fioff 0x80488f3 134514931
foseg 0x2b 43
fooff 0x0 0
fop 0x6d9 1753
(gdb) PASS: gdb.base/callfuncs.exp: continue after stop in call dummy preserves register contents
print add(4,5)
Breakpoint 2, add (a=4, b=5) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/callfuncs.c:58
58 return (a + b);
The program being debugged stopped while in a function called from GDB.
When the function (add) is done executing, GDB will silently
stop (instead of continuing to evaluate the expression containing
the function call).
(gdb) finish
Run till exit from #0 add (a=4, b=5) at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/callfuncs.c:58
Value returned is $71 = 9
(gdb) PASS: gdb.base/callfuncs.exp: finish from call dummy breakpoint returns correct value
bt 2
#0 main () at /cygnus/src/uberbaum/gdb/testsuite/gdb.base/callfuncs.c:358
#1 __libc_start_main () from /lib/libc.so.6
(gdb) PASS: gdb.base/callfuncs.exp: bt after finishing from call dummy breakpoint
info all-registers
eax 0x1 1
ecx 0x40128d60 1074957664
edx 0x309 777
ebx 0x4012a1ec 1074962924
esp 0xbffff398
ebp 0xbffff3b0
esi 0x4000ae60 1073786464
edi 0xbffff3fc -1073744900
eip 0x8048a8f
eflags 0x382 898
cs 0x23 35
ss 0x2b 43
ds 0x2b 43
es 0x2b 43
fs 0x0 0
gs 0x0 0
st0 0 (raw 0x00000000000000000000)
st1 0 (raw 0x00000000000000000000)
st2