binutils-gdb/gdb/testsuite/gdb.compile
Yao Qi d8447b6b9f Relax gdb.compile/compile.exp to match the address printed for frame
One test in gdb.compile/compile.exp passes on one fedora builder,

 bt
 #0  0x00007ffff7ff43f6 in _gdb_expr (__regs=0x7ffff7ff2000) at gdb
 command line:1^M
 #1  <function called from gdb>^M
 #2  main () at /home/gdb-buildbot/fedora-x86-64-1/fedora-x86-64/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.compile/compile.c:106^M
 (gdb) PASS: gdb.compile/compile.exp: bt

but fails on my machine with gcc trunk,

 bt^M
 #0  _gdb_expr (__regs=0x7ffff7ff3000) at gdb command line:1^M
 #1  <function called from gdb>^M
 #2  main () at gdb/testsuite/gdb.compile/compile.c:106^M
 (gdb) FAIL: gdb.compile/compile.exp: bt

The test should be tweaked to match both cases (pc in the start of line
vs pc in the middle of line).  Note that I am not clear that why libcc1
emits debug info this way so that the address is in the middle of line.

gdb/testsuite:

2018-01-17  Yao Qi  <yao.qi@linaro.org>

	* gdb.compile/compile.exp: Match the address printed for
	frame in the output of command "bt".
2018-01-17 11:32:36 +00:00
..
compile-constvar.S Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-constvar.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-ifunc.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-ifunc.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-mod.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-nodebug.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-ops.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-ops.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-print.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-print.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-setjmp-mod.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-setjmp.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-setjmp.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-shlib.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-tls.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile-tls.exp Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
compile.exp Relax gdb.compile/compile.exp to match the address printed for frame 2018-01-17 11:32:36 +00:00