]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: Use correct feature in tdesc-regs for ARC
authorShahab Vahedi <shahab@synopsys.com>
Tue, 10 Dec 2019 15:25:08 +0000 (16:25 +0100)
committerShahab Vahedi <shahab@synopsys.com>
Thu, 4 Feb 2021 19:33:21 +0000 (20:33 +0100)
tdesc-regs.exp test fails for ARC because the test is not
using the correct XML files as target description.  With
this change, the correct directory and files are used.

v2 (after Andrew's remark [1]):
- Update the feature file names again.  Test results now:

  Test run by shahab on Tue Jan 26 11:31:16 2021
  Target is arc-default-elf32
  Host   is x86_64-unknown-linux-gnu

  === gdb tests ===

  Schedule of variations:
      arc-nsim

  Running target arc-nsim
  Running /src/gdb/testsuite/gdb.xml/tdesc-regs.exp ...
  PASS: gdb.xml/tdesc-regs.exp: set tdesc file single-reg.xml
  PASS: gdb.xml/tdesc-regs.exp: cd to directory holding xml
  PASS: gdb.xml/tdesc-regs.exp: set tdesc filename test-extra-regs.xml...
  PASS: gdb.xml/tdesc-regs.exp: ptype $extrareg
  PASS: gdb.xml/tdesc-regs.exp: ptype $uintreg
  PASS: gdb.xml/tdesc-regs.exp: ptype $vecreg
  PASS: gdb.xml/tdesc-regs.exp: ptype $unionreg
  PASS: gdb.xml/tdesc-regs.exp: ptype $unionreg.v4
  PASS: gdb.xml/tdesc-regs.exp: ptype $structreg
  PASS: gdb.xml/tdesc-regs.exp: ptype $structreg.v4
  PASS: gdb.xml/tdesc-regs.exp: ptype $bitfields
  PASS: gdb.xml/tdesc-regs.exp: ptype $flags
  PASS: gdb.xml/tdesc-regs.exp: ptype $mixed_flags
  PASS: gdb.xml/tdesc-regs.exp: maintenance print reggroups
  PASS: gdb.xml/tdesc-regs.exp: core-only.xml: set tdesc filename...
  PASS: gdb.xml/tdesc-regs.exp: core-only.xml: ptype $extrareg

=== gdb Summary ===

  # of expected passes 16

[1]
https://sourceware.org/pipermail/gdb-patches/2021-January/175465.html

gdb/testsuite/ChangeLog:

* gdb.xml/tdesc-regs.exp: Use correct core-regs for ARC.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.xml/tdesc-regs.exp

index 62c06d0f52c7960da31b604d42860b44a6cce25d..a449de04587fba564cf5e91834899aaa11c1274d 100644 (file)
@@ -1,3 +1,7 @@
+2021-02-04  Shahab Vahedi  <shahab@synopsys.com>
+
+       * gdb.xml/tdesc-regs.exp: Use correct core-regs for ARC.
+
 2021-02-03  Pedro Alves  <pedro@palves.net>
 
        * gdb.threads/detach-step-over.c: New file.
index 1ee6ae1bff3ea0b6fafa6cd940fee63fb2aaad48..7402ba8d952107779944206d8c71d6d5befc2bce 100644 (file)
@@ -32,7 +32,8 @@ switch -glob -- [istarget] {
     }
     "arc*-*-*" {
        set architecture "arc:ARCv2"
-       set core-regs {arc-v2.xml}
+       set regdir "arc/"
+       set core-regs {v2-core.xml v2-aux.xml}
     }
     "arm*-*-*" {
        set regdir "arm/"