[all-commits] [llvm/llvm-project] 6b6bac: Fix off-by-one error in armv7 mach-o corefile regi...

Jason Molenda via All-commits all-commits at lists.llvm.org
Wed Apr 26 13:06:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b6bac2cd81df86354196304815b96c53bd93305
      https://github.com/llvm/llvm-project/commit/6b6bac2cd81df86354196304815b96c53bd93305
  Author: Jason Molenda <jason at molenda.com>
  Date:   2023-04-26 (Wed, 26 Apr 2023)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
    A lldb/test/API/macosx/arm-corefile-regctx/Makefile
    A lldb/test/API/macosx/arm-corefile-regctx/TestArmMachoCorefileRegctx.py
    A lldb/test/API/macosx/arm-corefile-regctx/create-arm-corefiles.cpp

  Log Message:
  -----------
  Fix off-by-one error in armv7 mach-o corefile register context

The sanity check on the size of the register context we found in
the corefile was off by one, so lldb would not add the register
contents.  Add a test case to ensure it doesn't regress.

Differential Revision: https://reviews.llvm.org/D149224
rdar://108306070




More information about the All-commits mailing list