[all-commits] [llvm/llvm-project] d44a07: Save more descriptive error msg from FBS/BKS, rela...

Jason Molenda via All-commits all-commits at lists.llvm.org
Wed Jan 8 18:47:45 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d44a0743175fc781aa2a23d638d683ded6eb10b8
      https://github.com/llvm/llvm-project/commit/d44a0743175fc781aa2a23d638d683ded6eb10b8
  Author: Jason Molenda <jmolenda at apple.com>
  Date:   2020-01-08 (Wed, 08 Jan 2020)

  Changed paths:
    M lldb/tools/debugserver/source/MacOSX/MachProcess.mm

  Log Message:
  -----------
  Save more descriptive error msg from FBS/BKS, relay it up to lldb.

When lldb requests an app launch through FrontBoard/BackBoard,
we get back an NSError object if there was a problem with an
integer error code and a descriptive text string.  debugserver
would log the descriptive text string to the console, but it
would only save the error code value, ask for the
much-less-specific name of that error code, and send that very
generic error word back to lldb.

This patch saves the longer description of the failure when
available, and sends that to lldb.  If unavailable, it falls
back to sending up the generic description of the error code
as it was doing before.

This only impacts the iOS on-device debugserver.

<rdar://problem/49953304>




More information about the All-commits mailing list