Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Test run by shorne on Tue May 17 23:01:27 2016
Target is or1k-unknown-elf
Host is x86_64-pc-linux-gnu
=== gdb tests ===
Schedule of variations:
or1k-elf-sim
Running target or1k-elf-sim
Using /home/shorne/work/openrisc/or1k-src/boards/or1k-elf-sim.exp as board description file for target.
Using /usr/share/dejagnu/config/sim.exp as generic interface file for target.
Using /usr/share/dejagnu/baseboards/basic-sim.exp as board description file for target.
Using /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/config/sim.exp as tool-and-target-specific interface file.
Running /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.exp ...
Executing on host: or1k-elf-gcc /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c -mcpu=native -mnewlib -mboard=or1ksim -g -lm -o /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.base/gnu_vector/gnu_vector (timeout = 300)
spawn -ignore SIGHUP or1k-elf-gcc /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c -mcpu=native -mnewlib -mboard=or1ksim -g -lm -o /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.base/gnu_vector/gnu_vector
or1k-elf-gcc: error: unrecognized command line option '-mcpu=native'
compiler exited with status 1
output is:
or1k-elf-gcc: error: unrecognized command line option '-mcpu=native'
Executing on host: or1k-elf-gcc /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c -mcpu=native -Wno-psabi -mnewlib -mboard=or1ksim -g -lm -o /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.base/gnu_vector/gnu_vector (timeout = 300)
spawn -ignore SIGHUP or1k-elf-gcc /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c -mcpu=native -Wno-psabi -mnewlib -mboard=or1ksim -g -lm -o /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.base/gnu_vector/gnu_vector
or1k-elf-gcc: error: unrecognized command line option '-mcpu=native'
compiler exited with status 1
output is:
or1k-elf-gcc: error: unrecognized command line option '-mcpu=native'
Executing on host: or1k-elf-gcc /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c -march=native -mnewlib -mboard=or1ksim -g -lm -o /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.base/gnu_vector/gnu_vector (timeout = 300)
spawn -ignore SIGHUP or1k-elf-gcc /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c -march=native -mnewlib -mboard=or1ksim -g -lm -o /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.base/gnu_vector/gnu_vector
or1k-elf-gcc: error: unrecognized command line option '-march=native'
compiler exited with status 1
output is:
or1k-elf-gcc: error: unrecognized command line option '-march=native'
Executing on host: or1k-elf-gcc /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c -mnewlib -mboard=or1ksim -g -lm -o /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.base/gnu_vector/gnu_vector (timeout = 300)
spawn -ignore SIGHUP or1k-elf-gcc /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c -mnewlib -mboard=or1ksim -g -lm -o /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.base/gnu_vector/gnu_vector
spawn /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../data-directory
GNU gdb (GDB) 7.11.50.20160313-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=or1k-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(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 /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base
Source directories searched: /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base:$cdir:$cwd
(gdb) kill
The program is not being run.
(gdb) file /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.base/gnu_vector/gnu_vector
Reading symbols from /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.base/gnu_vector/gnu_vector...done.
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading section .vectors, size 0x2000 lma 0x0
Loading section .init, size 0x28 lma 0x2000
Loading section .text, size 0x3adc lma 0x2028
Loading section .fini, size 0x1c lma 0x5b04
Loading section .rodata, size 0x10e lma 0x5b20
Loading section .eh_frame, size 0x4 lma 0x6000
Loading section .ctors, size 0x8 lma 0x6004
Loading section .dtors, size 0x8 lma 0x600c
Loading section .jcr, size 0x4 lma 0x6014
Loading section .data, size 0x914 lma 0x6020
Start address 0x100
Transfer rate: 207568 bits in <1 sec.
(gdb) delete breakpoints
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) break main
Breakpoint 1 at 0x2b04: file /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c, line 156.
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading section .vectors, size 0x2000 lma 0x0
Loading section .init, size 0x28 lma 0x2000
Loading section .text, size 0x3adc lma 0x2028
Loading section .fini, size 0x1c lma 0x5b04
Loading section .rodata, size 0x10e lma 0x5b20
Loading section .eh_frame, size 0x4 lma 0x6000
Loading section .ctors, size 0x8 lma 0x6004
Loading section .dtors, size 0x8 lma 0x600c
Loading section .jcr, size 0x4 lma 0x6014
Loading section .data, size 0x914 lma 0x6020
Start address 0x100
Transfer rate: 207568 bits in <1 sec.
(gdb) run
Starting program: /home/shorne/work/openrisc/build-gdb/gdb/testsuite/outputs/gdb.base/gnu_vector/gnu_vector
Breakpoint 1, main () at /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c:156
156 }
(gdb) show endian
The target endianness is set automatically (currently big endian)
(gdb) PASS: gdb.base/gnu_vector.exp: endianness: big
print c4
$1 = {1, 2, 3, 4}
(gdb) PASS: gdb.base/gnu_vector.exp: print c4
print c4[2]
$2 = 3
(gdb) PASS: gdb.base/gnu_vector.exp: print c4[2]
print i4a
$3 = {2, 4, 8, 16}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a
print i4b
$4 = {1, 2, 8, 4}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4b
print i4a + i4b
$5 = {3, 6, 16, 20}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a + i4b
print i4a - i4b
$6 = {1, 2, 0, 12}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a - i4b
print i4a * i4b
$7 = {2, 8, 64, 64}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a * i4b
print i4a / i4b
$8 = {2, 2, 1, 4}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a / i4b
print i4a % i4b
$9 = {0, 0, 0, 0}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a % i4b
print i4a++
$10 = {2, 4, 8, 16}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a++
print ++i4a
$11 = {4, 6, 10, 18}
(gdb) PASS: gdb.base/gnu_vector.exp: print ++i4a
print i4a--
$12 = {4, 6, 10, 18}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a--
print --i4a
$13 = {2, 4, 8, 16}
(gdb) PASS: gdb.base/gnu_vector.exp: print --i4a
print +i4a
$14 = {2, 4, 8, 16}
(gdb) PASS: gdb.base/gnu_vector.exp: print +i4a
print -i4a
$15 = {-2, -4, -8, -16}
(gdb) PASS: gdb.base/gnu_vector.exp: print -i4a
print i4a & i4b
$16 = {0, 0, 8, 0}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a & i4b
print i4a | i4b
$17 = {3, 6, 8, 20}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a | i4b
print i4a ^ i4b
$18 = {3, 6, 0, 20}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a ^ i4b
print ~i4a
$19 = {-3, -5, -9, -17}
(gdb) PASS: gdb.base/gnu_vector.exp: print ~i4a
print i4a << i4b
$20 = {4, 16, 2048, 256}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a << i4b
print i4a >> i4b
$21 = {1, 1, 0, 1}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a >> i4b
print f4a
$22 = {2, 4, 8, 16}
(gdb) PASS: gdb.base/gnu_vector.exp: print f4a
print f4b
$23 = {1, 2, 8, 4}
(gdb) PASS: gdb.base/gnu_vector.exp: print f4b
print f4a + f4b
$24 = {3, 6, 16, 20}
(gdb) PASS: gdb.base/gnu_vector.exp: print f4a + f4b
print f4a - f4b
$25 = {1, 2, 0, 12}
(gdb) PASS: gdb.base/gnu_vector.exp: print f4a - f4b
print f4a * f4b
$26 = {2, 8, 64, 64}
(gdb) PASS: gdb.base/gnu_vector.exp: print f4a * f4b
print f4a / f4b
$27 = {2, 2, 1, 4}
(gdb) PASS: gdb.base/gnu_vector.exp: print f4a / f4b
print +f4a
$28 = {2, 4, 8, 16}
(gdb) PASS: gdb.base/gnu_vector.exp: print +f4a
print -f4a
$29 = {-2, -4, -8, -16}
(gdb) PASS: gdb.base/gnu_vector.exp: print -f4a
print (char4) 0x01010101
$30 = {1, 1, 1, 1}
(gdb) PASS: gdb.base/gnu_vector.exp: print (char4) 0x01010101
print (int2) lla
$31 = {1, 1}
(gdb) PASS: gdb.base/gnu_vector.exp: print (int2) lla
print (char4) ia
$32 = {0, 0, 0, 2}
(gdb) PASS: gdb.base/gnu_vector.exp: print (char4) ia
print (int2) 1
can only cast scalar to vector of same size
(gdb) PASS: gdb.base/gnu_vector.exp: print (int2) 1
print (longlong2) 2
can only cast scalar to vector of same size
(gdb) PASS: gdb.base/gnu_vector.exp: print (longlong2) 2
print (float2) 3
can only cast scalar to vector of same size
(gdb) PASS: gdb.base/gnu_vector.exp: print (float2) 3
print (double2) 4
can only cast scalar to vector of same size
(gdb) PASS: gdb.base/gnu_vector.exp: print (double2) 4
print (uint4) ia
can only cast scalar to vector of same size
(gdb) PASS: gdb.base/gnu_vector.exp: print (uint4) ia
print (int4) -3
can only cast scalar to vector of same size
(gdb) PASS: gdb.base/gnu_vector.exp: print (int4) -3
print (float4) 4
can only cast scalar to vector of same size
(gdb) PASS: gdb.base/gnu_vector.exp: print (float4) 4
print i4b = ia
can only cast scalar to vector of same size
(gdb) PASS: gdb.base/gnu_vector.exp: print i4b = ia
print i4a = 3
can only cast scalar to vector of same size
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a = 3
print f4a = fb
can only cast scalar to vector of same size
(gdb) PASS: gdb.base/gnu_vector.exp: print f4a = fb
print f4b = 2
can only cast scalar to vector of same size
(gdb) PASS: gdb.base/gnu_vector.exp: print f4b = 2
print c4 + lla
conversion of scalar to vector involves truncation
(gdb) PASS: gdb.base/gnu_vector.exp: print c4 + lla
print i4a + lla
conversion of scalar to vector involves truncation
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a + lla
print lla + c4
conversion of scalar to vector involves truncation
(gdb) PASS: gdb.base/gnu_vector.exp: print lla + c4
print lla + i4a
conversion of scalar to vector involves truncation
(gdb) PASS: gdb.base/gnu_vector.exp: print lla + i4a
print c4 + ib
$33 = {2, 3, 4, 5}
(gdb) PASS: gdb.base/gnu_vector.exp: print c4 + ib
print i4a + ib
$34 = {3, 5, 9, 17}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a + ib
print i4a + 1
$35 = {3, 5, 9, 17}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a + 1
print 1 + i4a
$36 = {3, 5, 9, 17}
(gdb) PASS: gdb.base/gnu_vector.exp: print 1 + i4a
print fa - f4b
$37 = {1, 0, -6, -2}
(gdb) PASS: gdb.base/gnu_vector.exp: print fa - f4b
print 2 - f4b
$38 = {1, 0, -6, -2}
(gdb) PASS: gdb.base/gnu_vector.exp: print 2 - f4b
print f4a * fb
$39 = {2, 4, 8, 16}
(gdb) PASS: gdb.base/gnu_vector.exp: print f4a * fb
print f4a * 1
$40 = {2, 4, 8, 16}
(gdb) PASS: gdb.base/gnu_vector.exp: print f4a * 1
print ia / i4b
$41 = {2, 1, 0, 0}
(gdb) PASS: gdb.base/gnu_vector.exp: print ia / i4b
print 2 / i4b
$42 = {2, 1, 0, 0}
(gdb) PASS: gdb.base/gnu_vector.exp: print 2 / i4b
print i4a % ib
$43 = {0, 0, 0, 0}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a % ib
print i4a % 1
$44 = {0, 0, 0, 0}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a % 1
print ia & i4b
$45 = {0, 2, 0, 0}
(gdb) PASS: gdb.base/gnu_vector.exp: print ia & i4b
print 2 & i4b
$46 = {0, 2, 0, 0}
(gdb) PASS: gdb.base/gnu_vector.exp: print 2 & i4b
print i4a | ib
$47 = {3, 5, 9, 17}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a | ib
print i4a | 1
$48 = {3, 5, 9, 17}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a | 1
print ia ^ i4b
$49 = {3, 0, 10, 6}
(gdb) PASS: gdb.base/gnu_vector.exp: print ia ^ i4b
print 2 ^ i4b
$50 = {3, 0, 10, 6}
(gdb) PASS: gdb.base/gnu_vector.exp: print 2 ^ i4b
print i4a << ib
$51 = {4, 8, 16, 32}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a << ib
print i4a << 1
$52 = {4, 8, 16, 32}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a << 1
print i4a >> ib
$53 = {1, 2, 4, 8}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a >> ib
print i4a >> 1
$54 = {1, 2, 4, 8}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a >> 1
print i4a = {2, 4, 8, 16}
$55 = {2, 4, 8, 16}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a = {2, 4, 8, 16}
print i4a <<= ib
$56 = {4, 8, 16, 32}
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a <<= ib
print i4a + d2
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a + d2
print d2 + i4a
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print d2 + i4a
print f4a + ll2
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print f4a + ll2
print ll2 + f4a
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print ll2 + f4a
print i2 + ll2
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print i2 + ll2
print ll2 + i2
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print ll2 + i2
print i4a + ll2
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a + ll2
print ll2 + i4a
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print ll2 + i4a
print f4a + d2
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print f4a + d2
print d2 + f4a
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print d2 + f4a
print ui4 + i4a
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print ui4 + i4a
print i4a + ui4
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a + ui4
print i4a + i2
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print i4a + i2
print i2 + i4a
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print i2 + i4a
print f4a + f2
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print f4a + f2
print f2 + f4a
Cannot perform operation on vectors with different types
(gdb) PASS: gdb.base/gnu_vector.exp: print f2 + f4a
print (double2) f2
Cannot convert between vector values of different sizes
(gdb) PASS: gdb.base/gnu_vector.exp: print (double2) f2
print (int4) c4
Cannot convert between vector values of different sizes
(gdb) PASS: gdb.base/gnu_vector.exp: print (int4) c4
print (char4) i4a
Cannot convert between vector values of different sizes
(gdb) PASS: gdb.base/gnu_vector.exp: print (char4) i4a
ptype c4
type = char __attribute__ ((vector_size(4)))
(gdb) PASS: gdb.base/gnu_vector.exp: ptype c4
ptype char4
type = char __attribute__ ((vector_size(4)))
(gdb) PASS: gdb.base/gnu_vector.exp: ptype char4
ptype i4a
type = int __attribute__ ((vector_size(4)))
(gdb) PASS: gdb.base/gnu_vector.exp: ptype i4a
ptype int4
type = int __attribute__ ((vector_size(4)))
(gdb) PASS: gdb.base/gnu_vector.exp: ptype int4
ptype f4b
type = float __attribute__ ((vector_size(4)))
(gdb) PASS: gdb.base/gnu_vector.exp: ptype f4b
ptype float4
type = float __attribute__ ((vector_size(4)))
(gdb) PASS: gdb.base/gnu_vector.exp: ptype float4
ptype union_with_vector_1
type = union {
int i;
char cv __attribute__ ((vector_size(4)));
}
(gdb) PASS: gdb.base/gnu_vector.exp: ptype union_with_vector_1
ptype struct_with_vector_1
type = struct {
int i;
char cv __attribute__ ((vector_size(4)));
float4 f4;
}
(gdb) PASS: gdb.base/gnu_vector.exp: ptype struct_with_vector_1
print add_some_intvecs(i4a, i4b, 3 * i4a)
Checking return type size 16 vs bpw 4
return: stuct return r3
regs: storing struct arg on stack
regs: storing data [0,0,0,4]
regs: storing data [0,0,0,8]
regs: storing data [0,0,0,10]
regs: storing data [0,0,0,20]
regs: putting single word arg to r4 [0,0,60,50]
regs: storing struct arg on stack
regs: storing data [0,0,0,1]
regs: storing data [0,0,0,2]
regs: storing data [0,0,0,8]
regs: storing data [0,0,0,4]
regs: putting single word arg to r5 [0,0,60,60]
regs: storing struct arg on stack
regs: storing data [0,0,0,c]
regs: storing data [0,0,0,18]
regs: storing data [0,0,0,30]
regs: storing data [0,0,0,60]
regs: storing internal val to stack
regs: putting single word arg to r6 [0,7f,d5,68]
$57 = {17, 34, 72, 132}
(gdb) PASS: gdb.base/gnu_vector.exp: call add_some_intvecs
print add_many_charvecs(c4, c4, c4, c4, c4, c4, c4, c4, c4, c4)
Checking return type size 4 vs bpw 4
regs: putting single word arg to r3 [1,2,3,4]
regs: putting single word arg to r4 [1,2,3,4]
regs: putting single word arg to r5 [1,2,3,4]
regs: putting single word arg to r6 [1,2,3,4]
regs: putting single word arg to r7 [1,2,3,4]
regs: putting single word arg to r8 [1,2,3,4]
out-of-args: putting 4 len arg to stack
out-of-args: putting 4 len arg to stack
out-of-args: putting 4 len arg to stack
out-of-args: putting 4 len arg to stack
Checking return type size 4 vs bpw 4
$58 = {10, 20, 30, 40}
(gdb) PASS: gdb.base/gnu_vector.exp: call add_many_charvecs
print add_various_floatvecs(2, f4a, f4b)
Checking return type size 16 vs bpw 4
return: stuct return r3
regs: putting single word arg to r4 [0,0,0,2]
regs: storing struct arg on stack
regs: storing data [40,0,0,0]
regs: storing data [40,80,0,0]
regs: storing data [41,0,0,0]
regs: storing data [41,80,0,0]
regs: putting single word arg to r5 [0,0,60,70]
regs: storing struct arg on stack
regs: storing data [3f,80,0,0]
regs: storing data [40,0,0,0]
regs: storing data [41,0,0,0]
regs: storing data [40,80,0,0]
regs: putting single word arg to r6 [0,0,60,80]
core: 4 byte read to unmapped address 0x1020304 at 0x27bc
Program received signal SIGSEGV, Segmentation fault.
0x000027bc in add_various_floatvecs (n=2, a=...) at /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c:109
109 a += va_arg (argp, float4);
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(add_various_floatvecs) will be abandoned.
When the function is done executing, GDB will silently stop.
(gdb) FAIL: gdb.base/gnu_vector.exp: call add_various_floatvecs
print add_structvecs(i2, (struct just_int2){2*i2}, (struct two_int2){3*i2, 4*i2})
Checking return type size 8 vs bpw 4
return: stuct return r3
regs: putting double word arg to r4 and r5
regs: storing struct arg on stack
regs: storing data [0,0,0,2]
regs: storing data [0,0,0,4]
regs: storing internal val to stack
regs: putting single word arg to r6 [0,7f,cb,14]
regs: storing struct arg on stack
regs: storing data [0,0,0,3]
regs: storing data [0,0,0,6]
regs: storing data [0,0,0,4]
regs: storing data [0,0,0,8]
regs: storing internal val to stack
regs: putting single word arg to r7 [0,7f,cb,1c]
$59 = {i = {553648136, 20}}
(gdb) FAIL: gdb.base/gnu_vector.exp: call add_structvecs
print add_singlevecs((char1) {6}, (int1) {12}, (double1) {24})
Checking return type size 8 vs bpw 4
return: stuct return r3
regs: putting single word arg to r4 [6,0,0,0]
regs: putting single word arg to r5 [0,0,0,c]
regs: putting double word arg to r6 and r7
$60 = {42}
(gdb) PASS: gdb.base/gnu_vector.exp: call add_singlevecs
break add_some_intvecs
Breakpoint 2 at 0x241c: file /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c, line 87.
(gdb) continue
Continuing.
core: 4 byte read to unmapped address 0x1020304 at 0x27bc
Program received signal SIGSEGV, Segmentation fault.
0x000027bc in add_various_floatvecs (n=2, a=...) at /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c:109
109 a += va_arg (argp, float4);
(gdb) FAIL: gdb.base/gnu_vector.exp: continue to add_some_intvecs
finish
Run till exit from #0 0x000027bc in add_various_floatvecs (n=2, a=...) at /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c:109
core: 4 byte read to unmapped address 0x1020304 at 0x27bc
Program received signal SIGSEGV, Segmentation fault.
0x000027bc in add_various_floatvecs (n=2, a=...) at /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c:109
109 a += va_arg (argp, float4);
(gdb) FAIL: gdb.base/gnu_vector.exp: finish shows vector return value
continue
Continuing.
core: 4 byte read to unmapped address 0x1020304 at 0x27bc
Program received signal SIGSEGV, Segmentation fault.
0x000027bc in add_various_floatvecs (n=2, a=...) at /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c:109
109 a += va_arg (argp, float4);
(gdb) FAIL: gdb.base/gnu_vector.exp: continue to add_some_intvecs
up
#1 <function called from gdb>
(gdb) PASS: gdb.base/gnu_vector.exp: up
p res
No symbol "res" in current context.
(gdb) FAIL: gdb.base/gnu_vector.exp: p res
down
#0 0x000027bc in add_various_floatvecs (n=2, a=...) at /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c:109
109 a += va_arg (argp, float4);
(gdb) PASS: gdb.base/gnu_vector.exp: down
return (int4) {4, 2, 7, 6}
Checking return type size 16 vs bpw 4
The location at which to store the function's return value is unknown.
If you continue, the return value that you specified will be ignored.
Make add_various_floatvecs return now? (y or n) n
Not confirmed
(gdb) FAIL: gdb.base/gnu_vector.exp: return from vector-valued function (got interactive prompt)
next
core: 4 byte read to unmapped address 0x1020304 at 0x27bc
Program received signal SIGSEGV, Segmentation fault.
0x000027bc in add_various_floatvecs (n=2, a=...) at /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.c:109
109 a += va_arg (argp, float4);
(gdb) PASS: gdb.base/gnu_vector.exp: next
p res
No symbol "res" in current context.
(gdb) FAIL: gdb.base/gnu_vector.exp: verify vector return value
testcase /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/gnu_vector.exp completed in 0 seconds
=== gdb Summary ===
# of expected passes 105
# of unexpected failures 8
Executing on host: /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../data-directory --version (timeout = 300)
spawn -ignore SIGHUP /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../../gdb/gdb -nw -nx -data-directory /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../data-directory --version
GNU gdb (GDB) 7.11.50.20160313-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=or1k-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
/home/shorne/work/openrisc/build-gdb/gdb/gdb version 7.11.50.20160313-git -nw -nx -data-directory /home/shorne/work/openrisc/build-gdb/gdb/testsuite/../data-directory
runtest completed at Tue May 17 23:01:27 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment