[all-commits] [llvm/llvm-project] c1885d: "settings set -g target.load-script-from-symbol-fi...

jimingham via All-commits all-commits at lists.llvm.org
Mon Jul 10 14:40:36 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1885d2dfa950d0f78978546f92be15bc6cca474
  Author: Jim Ingham <jingham at apple.com>
  Date:   2023-07-10 (Mon, 10 Jul 2023)

  Changed paths:
    M lldb/source/Core/Debugger.cpp
    M lldb/test/API/commands/settings/TestSettings.py

  Log Message:
  "settings set -g target.load-script-from-symbol-file" shouldn't crash.

-g is specified by passing in nullptr ExecutionContext, but in some
load-script-from-symbol-file specific code, the ExecutionContext was
asked for its Target w/o checking whether the pointer was null.

Fix that and add a test.

More information about the All-commits mailing list