1. Dec 07, 2019
    • Muhammad Omair Javaid's avatar
      Cleanup and speedup NativeRegisterContextLinux_arm64 · b6f9d7b8
      Muhammad Omair Javaid authored
      Summary:
      This patch simplifies register accesses in NativeRegisterContextLinux_arm64
      and also adds some bare minimum caching to avoid multiple calls to ptrace
      during a stop.
      
      Linux ptrace returns data in the form of structures containing GPR/FPR data.
      This means that one single call is enough to read all GPRs or FPRs. We do
      that once per stop and keep reading from or writing to the buffer that we
      have in NativeRegisterContextLinux_arm64 class. Before a resume or detach we
      write all buffers back.
      
      This is tested on aarch64 thunder x1 with Ubuntu 18.04. Also tested
      regressions on x86_64.
      
      Reviewers: labath, clayborg
      
      Reviewed By: labath
      
      Subscribers: kristof.beyls, lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D69371
      b6f9d7b8
    • Jordan Rupprecht's avatar
      [lldb][test] Handle .categories lookup for inline tests. · 03a242bd
      Jordan Rupprecht authored
      Summary:
      When creating a test with `lldbinline.MakeInlineTest()`, the reported `inspect.getfile(test.__class__)` is `lldbtest.pyc`, meaning any `.categories` file will be ineffective for those tests. Check for the test_filename first, which inline tests will set.
      
      Additionally, raise an error with the starting dir if `.categories` is not found. This makes the problem more obvious when it occurs: when the test is separated from the test framework tree.
      
      Reviewers: labath, JDevlieghere
      
      Subscribers: lldb-commits
      
      Tags: #lldb
      
      Differential Revision: https://reviews.llvm.org/D71099
      03a242bd
  2. Dec 06, 2019