mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
convert lldb_batchmode to a package
This commit is contained in:
1
src/etc/lldb_batchmode/__init__.py
Normal file
1
src/etc/lldb_batchmode/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .runner import main as main
|
||||
@@ -166,7 +166,7 @@ def start_watchdog():
|
||||
def watchdog():
|
||||
while clock() < watchdog_max_time:
|
||||
time.sleep(1)
|
||||
print("TIMEOUT: lldb_batchmode.py has been running for too long. Aborting!")
|
||||
print("TIMEOUT: lldb_batchmode has been running for too long. Aborting!")
|
||||
thread.interrupt_main()
|
||||
|
||||
# Start the listener and let it run as a daemon
|
||||
@@ -252,7 +252,3 @@ def main():
|
||||
sys.exit(1)
|
||||
finally:
|
||||
script_file.close()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -705,7 +705,7 @@ fn common_inputs_stamp(config: &Config) -> Stamp {
|
||||
"src/etc/gdb_load_rust_pretty_printers.py",
|
||||
"src/etc/gdb_lookup.py",
|
||||
"src/etc/gdb_providers.py",
|
||||
"src/etc/lldb_batchmode.py",
|
||||
"src/etc/lldb_batchmode",
|
||||
"src/etc/lldb_lookup.py",
|
||||
"src/etc/lldb_providers.py",
|
||||
];
|
||||
|
||||
@@ -58,10 +58,10 @@
|
||||
//@ lldb-command: settings set stop-line-count-after 0
|
||||
|
||||
//@ lldb-command: run
|
||||
// In `breakpoint_callback()` in `./src/etc/lldb_batchmode.py` we do
|
||||
// In `breakpoint_callback()` in `./src/etc/lldb_batchmode/runner.py` we do
|
||||
// `SetSelectedFrame()`, which causes LLDB to show the current line and one line
|
||||
// before (since we changed `stop-line-count-before`). Note that
|
||||
// `normalize_whitespace()` in `lldb_batchmode.py` removes the newlines of the
|
||||
// `normalize_whitespace()` in `lldb_batchmode/runner.py` removes the newlines of the
|
||||
// output. So the current line and the line before actually ends up on the same
|
||||
// output line. That's fine.
|
||||
//@ lldb-check: [...]let mut c = 27;[...]
|
||||
|
||||
Reference in New Issue
Block a user