Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
bcab252
Initial changes to enable deferred attaching to sdb.
Tak Nov 3, 2010
13aff4a
[Debugger] Don't double-emit assembly nor type load information.
Tak Nov 3, 2010
b45c56f
[Debugger] Ensure the VM resumes when detaching.
Tak Nov 3, 2010
0bafdbd
[Debugger] Ensure that client listener doesn't block VM exit.
Tak Nov 3, 2010
84f4deb
[SDB] Allow VM disconnection without forcing the VM to exit.
Tak Nov 3, 2010
bb746b7
[Debugger] Cleanup debug output.
Tak Nov 8, 2010
6194d7d
[Debugger] Appdomain unload fixes.
Tak Nov 18, 2010
629a10e
[Debugger] Add functions for emitting thread start.
Tak Nov 18, 2010
91a4170
[Debugger] Cleanup state transmission on attach.
Tak Nov 18, 2010
530b82b
[Debugger] Cleanup event processing while attaching.
Tak Nov 18, 2010
d4cab97
[Debugger] Don't pend assembly loads while waiting for attach.
Tak Nov 18, 2010
11a909c
Undo erroneous changelog modification.
Tak Nov 18, 2010
33b21e8
[Debugger] Reset pre-attach state on detach.
Tak Nov 22, 2010
4dfe4e9
[Debugger] Autogenerate default port based on PID.
Tak Nov 22, 2010
c556b00
[Debugger] Listen on any address when deferring.
Tak Nov 24, 2010
423ed88
[Debugger] Remove thread start assert that's now nonsensical.
Tak Dec 13, 2010
6949582
[Debugger] Remove unused type load pending - all loaded types are res…
Tak Dec 13, 2010
4941e44
Fix shutdown crashes on windows.
Tak Dec 15, 2010
6c37f95
[SDB] Fix race-to-crash on runtime shutdown.
Tak Jan 12, 2011
4afa67d
[SDB] Unregress non-windows runtime shutdown.
Tak Jan 13, 2011
08c96e1
[Debugger] Allow runtime to survive not being able to listen for atta…
Tak Jan 13, 2011
c86d871
[Debugger] Fix build.
Tak Jan 31, 2011
1256b48
Revert changelog mangling.
Tak Jan 31, 2011
ee859cf
[Debugger] Conform to java debugger command line options.
Tak Feb 1, 2011
5e960e4
Add information about suspend suboption to mono man page.
Tak Feb 4, 2011
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions man/mono.1
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ host/port configured with the \fBaddress\fR option. If you set it to 'y', it
instructs the Mono runtime to start debugging in server mode, where Mono
actively waits for the debugger front end to connect to the Mono process.
Mono will print out to stdout the IP address and port where it is listening.
.TP
.I suspend=[y/n]
Defaults to yes, with the default option Mono will suspend the vm on startup
until it connects successfully to a debugger front end. If you set it to 'n', in
conjunction with \fBserver=y\fR, it instructs the Mono runtime to run as normal,
while caching metadata to send to the debugger front end on connection.
.ne
.RE
.TP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ public bool IsClosed {
bool disconnected;

void receiver_thread_main () {
while (true) {
while (!closed) {
try {
bool res = ReceivePacket ();
if (!res)
Expand All @@ -1057,6 +1057,7 @@ void receiver_thread_main () {
lock (reply_packets_monitor) {
disconnected = true;
Monitor.PulseAll (reply_packets_monitor);
socket.Close ();
}
EventHandler.VMDisconnect (0, 0, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ public void Exit (int exitCode) {
public void Dispose () {
conn.VM_Dispose ();
conn.Close ();
notify_vm_event (EventType.VMDisconnect, SuspendPolicy.None, 0, 0, null);
}

public IList<ThreadMirror> GetThreads () {
Expand Down Expand Up @@ -217,7 +216,11 @@ public BreakpointEventRequest SetBreakpoint (MethodMirror method, long il_offset
public void ClearAllBreakpoints () {
conn.ClearAllBreakpoints ();
}


public void Disconnect () {
conn.Close ();
}

internal void queue_event_set (EventSet es) {
lock (queue_monitor) {
queue.Enqueue (es);
Expand Down
Loading