[Bug 44352] New: LLDB driver invoked LLDB gets upset if SBDebugger.HandleCommand invoked commands set Python variables (KeyError)

Bug ID 44352
Summary LLDB driver invoked LLDB gets upset if SBDebugger.HandleCommand invoked commands set Python variables (KeyError)
Product lldb
Version 9.0
Hardware PC
OS MacOS X
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter jwatt@jwatt.org
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

Xcode invoked lldb gets upset if SBDebugger.HandleCommand() invoked commands
set Python variables, but not (apparently) until the temporary global created
in order to run the HandleCommand() commands is destroyed. Specifically it
throws a KeyError complaining that those variables are not present *after* all
the commands run under HandleCommand have completed.

This is an upstreaming of the following report in Mozilla's Bugzilla:

[https://bugzilla.mozilla.org/show_bug.cgi?id=1605268](https://bugzilla.mozilla.org/show_bug.cgi?id=1605268)

Jonas Devlieghere changed bug 44352