[all-commits] [llvm/llvm-project] 2c91d5: LanguageRuntime: Simplify NSException::GetSummary(...

Med Ismail Bennani via All-commits all-commits at lists.llvm.org
Fri Dec 13 12:33:57 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c91d5ba83156900944c82bb8feb1e340adb8ae4
      https://github.com/llvm/llvm-project/commit/2c91d5ba83156900944c82bb8feb1e340adb8ae4
  Author: Med Ismail Bennani <medismail.bennani at gmail.com>
  Date:   2019-12-13 (Fri, 13 Dec 2019)

  Changed paths:
    M lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjNSException.py
    M lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-objc/main.m
    M lldb/packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py
    M lldb/source/Plugins/Language/ObjC/NSException.cpp

  Log Message:
  -----------
  LanguageRuntime: Simplify NSException::GetSummary() output

Summary:
Right now, NSException::GetSummary() has the following output:
"name: $exception_name - reason: $exception_reason"

It would be better to simplify the output by removing the name and only
showing the exception's reason. This way, annotations would look nicer in
the editor, and would be a shorter summary in the Variables Inspector.

Accessing the exception's name can still be done by expanding the
NSException object in the Variables Inspector.

rdar://54770115

Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D71311

Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>




More information about the All-commits mailing list