binutils-gdb/gdb/testsuite/gdb.reverse
Yao Qi bde475616e Fix gdb.reverse/next-reverse-bkpt-over-sr.exp
I see the fail on aarch64-linux,

(gdb) reverse-next

Breakpoint 2, callee () at /home/yao/SourceCode/gnu/gdb/git/gdb/testsuite/gdb.reverse/step-reverse.c:26^M
26        myglob++; return 0;   /* ARRIVED IN CALLEE */
(gdb) FAIL: gdb.reverse/next-reverse-bkpt-over-sr.exp: reverse-next over call trips user breakpoint at function entry

The test expects program stops at line 25, but program stops at line 26.

(gdb) maintenance info line-table
objfile: /scratch/yao/gdb/build-git/aarch64-linux-gnu/gdb/testsuite/outputs/gdb.reverse/next-reverse-bkpt-over-sr/next-reverse-bkpt-over-sr ((struct objfile *) 0x613000002880)
compunit_symtab: ((struct compunit_symtab *) 0x621000121760)
symtab: /home/yao/SourceCode/gnu/gdb/git/gdb/testsuite/gdb.reverse/step-reverse.c ((struct symtab *) 0x6210001217e0)
linetable: ((struct linetable *) 0x6210001520d0):
INDEX    LINE ADDRESS
0          25 0x0000000000400890
1          26 0x0000000000400890
2          27 0x00000000004008b0

(gdb) disassemble callee
Dump of assembler code for function callee:
   0x0000000000400890 <+0>:     adrp    x0, 0x410000
   0x0000000000400894 <+4>:     add     x0, x0, #0xcac

the line-table show that the first instruction of function callee is
mapped line 25 and 26.  I am not sure the line-table is correct, but
it is not the point of this test.  The goal of this test is to test
program hits the breakpoint on the first instruction of function after
'reverse-next', so I change this test to expect the breakpoint number
the program hits.

gdb/testsuite:

2016-04-07  Yao Qi  <yao.qi@linaro.org>

	* gdb.reverse/next-reverse-bkpt-over-sr.exp: Match the breakpoint
	number instead of the comments on some line.
2016-04-07 16:57:09 +01:00
..
amd64-tailcall-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
amd64-tailcall-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
amd64-tailcall-reverse.S GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
break-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
break-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
break-reverse.exp Add quotation mark in test message 2016-03-24 09:53:50 +00:00
consecutive-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
consecutive-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
consecutive-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
finish-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
finish-reverse-bkpt.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
finish-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
finish-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fstatat-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fstatat-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
getresuid-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
getresuid-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i386-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i386-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i386-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i386-sse-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i386-sse-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i387-env-reverse.c
i387-env-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
i387-stack-reverse.c
i387-stack-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
insn-reverse.c Fix various bugs in arm_record_exreg_ld_st_insn 2016-02-26 15:00:36 +00:00
insn-reverse.exp Rename gdb.reverse/aarch64.{exp,c} to gdb.reverse/insn-reverse.{exp,c} 2016-02-26 15:00:36 +00:00
machinestate-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
machinestate.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
machinestate.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ms1.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
next-reverse-bkpt-over-sr.exp Fix gdb.reverse/next-reverse-bkpt-over-sr.exp 2016-04-07 16:57:09 +01:00
pipe-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
pipe-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
readv-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
readv-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
recvmsg-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
recvmsg-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
rerun-prec.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
rerun-prec.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-mvcle.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
s390-mvcle.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
shr.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
shr1.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
shr2.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
sigall-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
sigall-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
sigall-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
singlejmp-reverse-nodebug.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
singlejmp-reverse-nodebug.S GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
singlejmp-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
singlejmp-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
singlejmp-reverse.S GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
solib-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
solib-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
solib-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
step-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
step-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
step-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
time-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
time-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
until-precsave.exp Simplify gdb.reverse/until-reverse.c 2016-03-30 16:36:51 +01:00
until-reverse.c Simplify gdb.reverse/until-reverse.c 2016-03-30 16:36:51 +01:00
until-reverse.exp Simplify gdb.reverse/until-reverse.c 2016-03-30 16:36:51 +01:00
ur1.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
waitpid-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
waitpid-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watch-precsave.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watch-reverse.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
watch-reverse.exp GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00