From 3c542bc3125684eb36fb767376bf7c402b70750d Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 8 Aug 2011 19:50:53 +0000 Subject: [PATCH] gdb/testsuite/ * gdb.dwarf2/dw2-case-insensitive.exp (regexp case-sensitive off) (p fuNC_symtab): Permit also ppc64 leading dot. --- gdb/testsuite/ChangeLog | 2 ++ gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.exp | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0fe9427e8a9..e89e48e1267 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,6 +1,8 @@ 2011-08-08 Jan Kratochvil * gdb.dwarf2/dw2-simple-locdesc.S: Replace .value by .2byte. + * gdb.dwarf2/dw2-case-insensitive.exp (regexp case-sensitive off) + (p fuNC_symtab): Permit also ppc64 leading dot. 2011-08-05 Pedro Alves diff --git a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.exp b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.exp index 78dc8180843..4ae002b653a 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.exp @@ -33,12 +33,13 @@ gdb_test "info functions fUnC_lang" \ gdb_test "set case-sensitive off" {warning: the current case sensitivity setting does not match the language\.} +# The dot-leading symbol is for ppc64 function descriptors. gdb_test "info functions fUnC_lang" \ - "All functions matching regular expression \"fUnC_lang\":\[\r\n\]+File file1.txt:\r\nfoo FUNC_lang\\(void\\);" \ + "All functions matching regular expression \"fUnC_lang\":\[\r\n\]+File file1.txt:\r\nfoo FUNC_lang\\(void\\);(\r\n\r\nNon-debugging symbols:\r\n0x\[0-9a-f\]+ +\\.FUNC_lang)?" \ "regexp case-sensitive off" gdb_test "p fuNC_lang" { = {foo \(void\)} 0x[0-9a-f]+ } -gdb_test "p fuNC_symtab" { = {} 0x[0-9a-f]+ } +gdb_test "p fuNC_symtab" { = {} 0x[0-9a-f]+ <\.?FUNC_symtab>} if {[gdb_breakpoint "fuNC_lang"] == 1} { pass "setting breakpoint at fuNC_lang" -- 2.30.2