From: Simon Marchi Date: Fri, 22 Jun 2018 17:40:47 +0000 (-0400) Subject: Fix "info registers" regexes in gdb.base/jit-reader.exp X-Git-Tag: binutils-2_31~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d72d289c4718c72f36880876d7460d6da4fa21a;p=platform%2Fupstream%2Fbinutils.git Fix "info registers" regexes in gdb.base/jit-reader.exp Commit e813d34 ("Align natural-format register values to the same column") changed the output of "info registers" (tabs to spaces), but didn't update gdb.base/jit-reader.exp. Update the regexes to expect spaces instead. gdb/testsuite/ChangeLog: * gdb.base/jit-reader.exp (jit_reader_test): Expect spaces in "info registers" output. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 01f5792..73f5545 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-06-22 Simon Marchi + + * gdb.base/jit-reader.exp (jit_reader_test): Expect spaces in + "info registers" output. + 2018-06-21 Richard Bunt * gdb.base/watchpoint-hw-attach.c: New test. diff --git a/gdb/testsuite/gdb.base/jit-reader.exp b/gdb/testsuite/gdb.base/jit-reader.exp index 7a1e287..2ed7410 100644 --- a/gdb/testsuite/gdb.base/jit-reader.exp +++ b/gdb/testsuite/gdb.base/jit-reader.exp @@ -67,30 +67,30 @@ proc info_registers_current_frame {sp} { gdb_test "info registers" \ [multi_line \ - "rax $hex $decimal" \ - "rbx $hex $decimal" \ - "rcx $hex $decimal" \ - "rdx $hex $decimal" \ - "rsi $hex $decimal" \ - "rdi $hex $decimal" \ - "rbp $hex $hex" \ - "rsp $sp $sp" \ - "r8 $hex $decimal" \ - "r9 $hex $decimal" \ - "r10 $hex $decimal" \ - "r11 $hex $decimal" \ - "r12 $hex $decimal" \ - "r13 $hex $decimal" \ - "r14 $hex $decimal" \ - "r15 $hex $decimal" \ - "rip $hex $hex$any" \ - "eflags $hex \\\[$any\\\]" \ - "cs $hex $decimal" \ - "ss $hex $decimal" \ - "ds $hex $decimal" \ - "es $hex $decimal" \ - "fs $hex $decimal" \ - "gs $hex $decimal" \ + "rax $hex +$decimal" \ + "rbx $hex +$decimal" \ + "rcx $hex +$decimal" \ + "rdx $hex +$decimal" \ + "rsi $hex +$decimal" \ + "rdi $hex +$decimal" \ + "rbp $hex +$hex" \ + "rsp $sp +$sp" \ + "r8 $hex +$decimal" \ + "r9 $hex +$decimal" \ + "r10 $hex +$decimal" \ + "r11 $hex +$decimal" \ + "r12 $hex +$decimal" \ + "r13 $hex +$decimal" \ + "r14 $hex +$decimal" \ + "r15 $hex +$decimal" \ + "rip $hex +$hex$any" \ + "eflags $hex +\\\[$any\\\]" \ + "cs $hex +$decimal" \ + "ss $hex +$decimal" \ + "ds $hex +$decimal" \ + "es $hex +$decimal" \ + "fs $hex +$decimal" \ + "gs $hex +$decimal" \ ] } @@ -177,8 +177,8 @@ proc jit_reader_test {} { "rdx " \ "rsi " \ "rdi " \ - "rbp $hex $hex" \ - "rsp $caller_sp $caller_sp" \ + "rbp $hex +$hex" \ + "rsp $caller_sp +$caller_sp" \ "r8 " \ "r9 " \ "r10 " \ @@ -187,7 +187,7 @@ proc jit_reader_test {} { "r13 " \ "r14 " \ "r15 " \ - "rip $hex $hex $any" \ + "rip $hex +$hex $any" \ "eflags " \ "cs " \ "ss " \