[all-commits] [llvm/llvm-project] b6c0ed: [lldb] [Process/elf-core] Fix reading FPRs from Fr...

Michał Górny via All-commits all-commits at lists.llvm.org
Wed May 12 02:52:05 PDT 2021


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

  Changed paths:
    M lldb/source/Plugins/Process/elf-core/RegisterUtilities.h
    M lldb/test/Shell/Register/Core/x86-32-freebsd-addr.test
    A lldb/test/Shell/Register/Core/x86-32-freebsd-fp.test

  Log Message:
  -----------
  [lldb] [Process/elf-core] Fix reading FPRs from FreeBSD/i386 cores

The FreeBSD coredumps from i386 systems contain only FSAVE-style
NT_FPREGSET.  Since we do not really support reading that kind of data
anymore, just use NT_X86_XSTATE to get FXSAVE-style data when available.

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


  Commit: 71e66da04cf15cf47045b5d1482803197a24a75d
      https://github.com/llvm/llvm-project/commit/71e66da04cf15cf47045b5d1482803197a24a75d
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-05-12 (Wed, 12 May 2021)

  Changed paths:
    M lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp

  Log Message:
  -----------
  [Process/elf-core] Read PID from FreeBSD prpsinfo

Add a function to read NT_PRPSINFO note from FreeBSD core dumps.  This
is necessary to get the process ID (NT_PRSTATUS has only thread ID).
Move the lp64 check from NT_PRSTATUS parsing to the parseFreeBSDNotes()
to avoid repeating it.

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


Compare: https://github.com/llvm/llvm-project/compare/fdb055f4f139...71e66da04cf1


More information about the All-commits mailing list