public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* Adjust gdb.trace/tfind.exp to current reality
@ 2010-04-02  1:30 Pedro Alves
  0 siblings, 0 replies; only message in thread
From: Pedro Alves @ 2010-04-02  1:30 UTC (permalink / raw)
  To: gdb-patches

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)" }
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-02  1:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-02  1:30 Adjust gdb.trace/tfind.exp to current reality Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).