[all-commits] [llvm/llvm-project] 9defb3: [lldb] Prevent underflow in crashlog.py

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Mon May 16 15:00:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9defb3b4b4a3ab5a95c449471aaa930cf63a7106
      https://github.com/llvm/llvm-project/commit/9defb3b4b4a3ab5a95c449471aaa930cf63a7106
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-05-16 (Mon, 16 May 2022)

  Changed paths:
    M lldb/examples/python/crashlog.py

  Log Message:
  -----------
  [lldb] Prevent underflow in crashlog.py

Avoid a OverflowError (an underflow really) when the pc is zero. This
can happen for "unknown frames" where the crashlog generator reports a
zero pc. We could omit them altogether, but if they're part of the
crashlog it seems fair to display them in lldb as well.

rdar://92686666

Differential revision: https://reviews.llvm.org/D125716




More information about the All-commits mailing list