Skip to content

Commit 83c0016

Browse files
---
yaml --- r: 127293 b: refs/heads/try c: b68d0e3 h: refs/heads/master i: 127291: 9c40143 v: v3
1 parent 0c166f4 commit 83c0016

File tree

4 files changed

+20
-25
lines changed

4 files changed

+20
-25
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 87d2bf400ce1bc2cec832f9d5b8e763f06bb7f43
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 12e0f72f517516ac4fce2aed85e6142e9b874bce
5-
refs/heads/try: 031fbab4b38974ac20d9edc25a2dea7f88ec0f1f
5+
refs/heads/try: b68d0e30837cf5be4df87888f208865833bb11fb
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/configure

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
422422
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
423423
opt inject-std-version 1 "inject the current compiler version of libstd into programs"
424424
opt llvm-static-stdcpp 0 "statically link to libstdc++ for LLVM"
425-
opt rpath 0 "build rpaths into rustc itself"
425+
opt rpath 1 "build rpaths into rustc itself"
426426
opt nightly 0 "build nightly packages"
427427
opt verify-install 1 "verify installed binaries work"
428428
opt jemalloc 1 "build liballoc with jemalloc"
@@ -511,20 +511,9 @@ probe CFG_LLDB lldb
511511

512512
if [ ! -z "$CFG_LLDB" ]
513513
then
514-
# If CFG_LLDB_PYTHON_DIR is not already set from the outside and valid, try to read it from
515-
# LLDB via the -P commandline options.
516-
if [ -z "$CFG_LLDB_PYTHON_DIR" ] || [ ! -d "$CFG_LLDB_PYTHON_DIR" ]
517-
then
518-
CFG_LLDB_PYTHON_DIR=$($CFG_LLDB -P)
519-
520-
# If CFG_LLDB_PYTHON_DIR is not a valid directory, set it to something more readable
521-
if [ ! -d "$CFG_LLDB_PYTHON_DIR" ]
522-
then
523-
CFG_LLDB_PYTHON_DIR="LLDB_PYTHON_DIRECTORY_NOT_FOUND"
524-
fi
525-
526-
putvar CFG_LLDB_PYTHON_DIR
527-
fi
514+
# Try-branch hack
515+
CFG_LLDB_PYTHON_DIR="/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/Python"
516+
putvar CFG_LLDB_PYTHON_DIR
528517
fi
529518

530519
step_msg "looking for target specific programs"

branches/try/mk/tests.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,7 @@ check-notidy: cleantmptestlogs cleantestlibs all check-stage2
179179
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
180180

181181
# A slightly smaller set of tests for smoke testing.
182-
check-lite: cleantestlibs cleantmptestlogs \
183-
$(foreach crate,$(TEST_TARGET_CRATES),check-stage2-$(crate)) \
184-
check-stage2-rpass \
185-
check-stage2-rfail check-stage2-cfail check-stage2-rmake
182+
check-lite: cleantestlibs cleantmptestlogs check-stage1-debuginfo-lldb \
186183
$(Q)$(CFG_PYTHON) $(S)src/etc/check-summary.py tmp/*.log
187184

188185
# Only check the 'reference' tests: rpass/cfail/rfail/rmake.

branches/try/src/etc/lldb_batchmode.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
import threading
3131
import re
3232
import atexit
33+
import time
3334

3435
# Set this to True for additional output
35-
DEBUG_OUTPUT = False
36+
DEBUG_OUTPUT = True
3637

3738
def print_debug(s):
3839
"Print something if DEBUG_OUTPUT is True"
@@ -104,26 +105,32 @@ def execute_command(command_interpreter, command):
104105

105106
def start_breakpoint_listener(target):
106107
"Listens for breakpoints being added and adds new ones to the callback registration list"
108+
print_debug("Creating breakpoint listener object")
107109
listener = lldb.SBListener("breakpoint listener")
108110

109111
def listen():
112+
print_debug("Started listening...")
110113
event = lldb.SBEvent()
114+
listening_start_time_secs = time.clock()
115+
MAX_LISTENING_TIME_SECS = 10
111116
try:
112-
while True:
113-
if listener.WaitForEvent(120, event):
117+
while time.clock() < (listening_start_time_secs + MAX_LISTENING_TIME_SECS):
118+
if listener.WaitForEvent(1, event):
114119
if lldb.SBBreakpoint.EventIsBreakpointEvent(event) and \
115120
lldb.SBBreakpoint.GetBreakpointEventTypeFromEvent(event) == \
116121
lldb.eBreakpointEventTypeAdded:
117122
global new_breakpoints
118123
breakpoint = lldb.SBBreakpoint.GetBreakpointFromEvent(event)
119124
print_debug("breakpoint added, id = " + str(breakpoint.id))
120125
new_breakpoints.append(breakpoint.id)
121-
except:
122-
print_debug("breakpoint listener shutting down")
126+
except Exception as e:
127+
print_debug("exception in breakpoint listener (shutting down): " + str(e))
123128

124129
# Start the listener and let it run as a daemon
130+
print_debug("Creating listener thread")
125131
listener_thread = threading.Thread(target = listen)
126132
listener_thread.daemon = True
133+
print_debug("Starting listener thread")
127134
listener_thread.start()
128135

129136
# Register the listener with the target
@@ -143,10 +150,12 @@ def listen():
143150

144151

145152
# Create a new debugger instance
153+
print_debug("Creating LLDB debugger instance")
146154
debugger = lldb.SBDebugger.Create()
147155

148156
# When we step or continue, don't return from the function until the process
149157
# stops. We do this by setting the async mode to false.
158+
print_debug("Switching debugger to async mode")
150159
debugger.SetAsync(False)
151160

152161
# Create a target from a file and arch

0 commit comments

Comments
 (0)