This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Adjust gdb.trace/tfind.exp to current reality
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 2 Apr 2010 02:30:04 +0100
- Subject: Adjust gdb.trace/tfind.exp to current reality
This fixes:
(gdb) FAIL: gdb.trace/tfind.exp: 8.36: trace disassembly
against targets that support tracepoints.
gdb.log shows:
disassemble gdb_c_test
Dump of assembler code for function gdb_c_test:
0x00000000004005d9 <+0>: push %rbp
0x00000000004005da <+1>: mov %rsp,%rbp
The test was expecting:
0x00000000004005d9 <gdb_c_test+0>: push %rbp
...
A while ago, GDB was made to omit the function name when
disassembling a function, but this test hadn't been adjusted
yet.
I'm applying the patch below.
--
Pedro Alves
2010-04-02 Pedro Alves <pedro@codesourcery.com>
gdb/testsuite/
* gdb.trace/tfind.exp: Adjust expected disassembly output.
---
gdb/testsuite/gdb.trace/tfind.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: src/gdb/testsuite/gdb.trace/tfind.exp
===================================================================
--- src.orig/gdb/testsuite/gdb.trace/tfind.exp 2010-04-02 01:34:03.000000000 +0100
+++ src/gdb/testsuite/gdb.trace/tfind.exp 2010-04-02 01:36:40.000000000 +0100
@@ -334,7 +334,7 @@ set timeout 60
send_gdb "disassemble gdb_c_test\n"
# look for disassembly of function label
gdb_expect {
- -re "<gdb_c_test(\.\[0-9\]+|)>:.*End of assembler dump.*$gdb_prompt $" { pass "8.36: trace disassembly" }
+ -re "<(\.\[0-9\]+|)>:.*End of assembler dump.*$gdb_prompt $" { pass "8.36: trace disassembly" }
-re ".*$gdb_prompt $" { fail "8.36: trace disassembly" }
timeout { fail "8.36: trace disassembly (timeout)" }
}