[all-commits] [llvm/llvm-project] 87183b: [lldb] Only override target arch if it is compatible

fredriss via All-commits all-commits at lists.llvm.org
Wed Apr 14 12:14:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 87183b1a7511f1726b0b19a2a217ed249ef3c5b9
      https://github.com/llvm/llvm-project/commit/87183b1a7511f1726b0b19a2a217ed249ef3c5b9
  Author: Fred Riss <friss at apple.com>
  Date:   2021-04-14 (Wed, 14 Apr 2021)

  Changed paths:
    M lldb/source/Target/Process.cpp

  Log Message:
  -----------
  [lldb] Only override target arch if it is compatible

It looks like the goal of this code is to provide a more precise
architecture definition for the target when attaching to a process. When
attaching to a foreign debugserver, you might get into a situation where
the active (host) platform will give you bogus information on the target
process.

This change allows the platform to override the target arch only with a
compatible architecture. This fixes TestTargetXMLArch.py on Apple
Silicon. Another alternative would be to just fail in this scenario and
update the test(s).




More information about the All-commits mailing list