gdb.trace: Add a testcase for tdesc in tfile.
authorMarcin Kościelnicki <koriakin@0x04.net>
Sat, 6 Feb 2016 17:19:49 +0000 (18:19 +0100)
committerMarcin Kościelnicki <koriakin@0x04.net>
Thu, 11 Feb 2016 14:16:31 +0000 (15:16 +0100)
commit9f5fed7852cae412443957862d759660cfcb3fd5
tree871c48384d326ebc8662b38eab89aaa55a4b3d03
parent82e9becd8afe1d7c9971096592bf312637d9437f
gdb.trace: Add a testcase for tdesc in tfile.

This tests whether $ymm15 can be correctly collected and printed from
tfile.  It covers:

- storing tdesc in tfile (without that, $ymm15 doesn't exist)
- ax_pseudo_register_collect for x86 (without that, $ymm15 cannot be
  collected)
- register order in tfile_fetch_registers (without that, $ymm15h is
  fetched from wrong position)
- off-by-one in tfile_fetch_registers (without that, $ymm15h is
  incorrectly considered to be out of bounds)
- using proper tdesc in encoding tracepoint actions (without that,
  internal error happens due to $ymm15h being considered unavailable)

gdb/testsuite/ChangeLog:

* gdb.trace/tfile-avx.c: New test.
* gdb.trace/tfile-avx.exp: New test.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/tfile-avx.c [new file with mode: 0644]
gdb/testsuite/gdb.trace/tfile-avx.exp [new file with mode: 0644]