[all-commits] [llvm/llvm-project] fd2065: Have GetSupportedArchitectures report all supporte...

Jason Molenda via All-commits all-commits at lists.llvm.org
Thu Nov 3 10:48:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd2065b70f2a74503725ebadb39c5dd2f9aa15c9
      https://github.com/llvm/llvm-project/commit/fd2065b70f2a74503725ebadb39c5dd2f9aa15c9
  Author: Jason Molenda <jason at molenda.com>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
    M lldb/source/Target/Target.cpp

  Log Message:
  -----------
  Have GetSupportedArchitectures report all supported arches

PlatformDarwinKernel::GetSupportedArchitectures returns a list
of architectures that are possible for this platform; it was using
a compile-time check for the debug host to decide the list of arches
that were valid.  This was copied from a codepath doing native process
debugging, and was clearly wrong for kernel debugging, but it had
not happened to cause problems so it went unnoticed for a long time.

Small NFC change to the logging messages of Target::SetArchitecture
to make them a little more explicit about how the architecture is
being modified/replaced.

Differential Revision: https://reviews.llvm.org/D137301
rdar://101690111




More information about the All-commits mailing list