summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ModuleManager.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-06-20 00:23:57 +0000
committerGreg Clayton <gclayton@apple.com>2014-06-20 00:23:57 +0000
commit577508df831184a5123aaa6a6cb510becdcd3440 (patch)
treecb63783500e62b594bb9f458f5193792620ed6e4 /clang/lib/Serialization/ModuleManager.cpp
parent393b2b594f39985e10f5dfec25909975f905a279 (diff)
downloadbcm5719-llvm-577508df831184a5123aaa6a6cb510becdcd3440.tar.gz
bcm5719-llvm-577508df831184a5123aaa6a6cb510becdcd3440.zip
Command files that switch input handlers didn't work, now they do.
The issue was when we called Debugger::RunIOHandler(), it would run the current IOHandler by activating it, and running it and then try to pop it and exit regardless of wether it was on top or not. The new code will push the IOHandler that was passed in, and run the IOHandlers until the one passed in is successfully popped. This allows files for the "command source" to switch input handlers: % cat /tmp/commands br s -S alignLeftEdges: br command add bt frame var po self DONE b s -n main br command add bt frame var DONE Note above we set a breakpoint, then add commands do it. The "br command add" will push the breakpoint comment gatherer until it sees "DONE" and then pop itself off the stack. The a new breakpoint will be set and it does the same thing again. Now this file can be sourced from the command line: % lldb -s /tmp/commands /path/to/a.out And your breakpoints will be correctly setup! <rdar://problem/17081650> llvm-svn: 211329
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud