[all-commits] [llvm/llvm-project] e414ed: [lldb] [test/Register] Initial tests for regsets i...

Michał Górny via All-commits all-commits at lists.llvm.org
Wed Apr 21 10:41:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e414ede2cd54b03f3ff7d547132f06d1b836e5bb
      https://github.com/llvm/llvm-project/commit/e414ede2cd54b03f3ff7d547132f06d1b836e5bb
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-04-21 (Wed, 21 Apr 2021)

  Changed paths:
    A lldb/test/Shell/Register/Core/Inputs/strip-coredump.py
    A lldb/test/Shell/Register/Core/Inputs/x86-32-freebsd.core
    A lldb/test/Shell/Register/Core/Inputs/x86-32-gp.check
    A lldb/test/Shell/Register/Core/Inputs/x86-32-linux.core
    A lldb/test/Shell/Register/Core/Inputs/x86-32-netbsd.core
    A lldb/test/Shell/Register/Core/Inputs/x86-64-freebsd.core
    A lldb/test/Shell/Register/Core/Inputs/x86-64-gp-hixmm.check
    A lldb/test/Shell/Register/Core/Inputs/x86-64-linux.core
    A lldb/test/Shell/Register/Core/Inputs/x86-64-netbsd.core
    A lldb/test/Shell/Register/Core/Inputs/x86-core-dump.cpp
    A lldb/test/Shell/Register/Core/Inputs/x86-fp.check
    A lldb/test/Shell/Register/Core/x86-32-freebsd-addr.test
    A lldb/test/Shell/Register/Core/x86-32-freebsd-gp.test
    A lldb/test/Shell/Register/Core/x86-32-linux-addr.test
    A lldb/test/Shell/Register/Core/x86-32-linux-fp.test
    A lldb/test/Shell/Register/Core/x86-32-linux-gp.test
    A lldb/test/Shell/Register/Core/x86-64-freebsd-addr.test
    A lldb/test/Shell/Register/Core/x86-64-freebsd-fp.test
    A lldb/test/Shell/Register/Core/x86-64-freebsd-gp.test
    A lldb/test/Shell/Register/Core/x86-64-linux-addr.test
    A lldb/test/Shell/Register/Core/x86-64-linux-fp.test
    A lldb/test/Shell/Register/Core/x86-64-linux-gp.test
    A lldb/test/Shell/Register/Core/x86-64-netbsd-addr.test
    A lldb/test/Shell/Register/Core/x86-64-netbsd-fp.test
    A lldb/test/Shell/Register/Core/x86-64-netbsd-gp.test

  Log Message:
  -----------
  [lldb] [test/Register] Initial tests for regsets in core dumps

Add initial tests for reading register sets from core dumps.  This
includes a C++ program to write registers and dump core, resulting core
dumps for Linux, FreeBSD and NetBSD, and the tests to verify them.

The tests are split into generic part, verifying user-specified register
values, and coredump-specific tests that verify memory addresses that
differ for every dump.

At this moment, all platforms support GPRs and FPRs up to XMM for amd64
target.  The i386 target does not work on NetBSD at all, and is missing
FPRs entirely on FreeBSD.

Differential Revision: https://reviews.llvm.org/D91963




More information about the All-commits mailing list