Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import lldb
def monobt(debugger, command, result, dict):
target = debugger.GetSelectedTarget()
process = target.GetProcess()
thread = process.GetSelectedThread()
for frame in thread:
pc = str(frame.GetPCAddress())
if pc[0] == '0':
commit 90bf978a45f4f8aef9e9d4ffb537bfef1ca7a03d
Author: Rolf Bjarne Kvinge <[email protected]>
Date: Fri May 13 17:19:24 2016 +0200
[builds] Use the right configure flag to enable checked builds.
diff --git a/builds/Makefile b/builds/Makefile
index 4648123..488344f 100644
--- a/builds/Makefile
+++ b/builds/Makefile
commit 085b79c8cc8dc69c67969e37398f21bbfe7961c5
Author: Rolf Bjarne Kvinge <[email protected]>
Date: Mon May 16 14:18:27 2016 +0200
[src] Fix path to watchOS-related assemblies.
diff --git a/src/Makefile b/src/Makefile
index 6f5ce98..5684070 100644
--- a/src/Makefile
+++ b/src/Makefile
commit cbcd66ac57af0a7707b5d66001e523ca26bb4eee
Author: Rolf Bjarne Kvinge <[email protected]>
Date: Mon Apr 4 14:47:20 2016 +0200
[CoreMidi] Avoid the use of fixed buffers.
The C# compiler generates a non-stable backing type for the
fixed buffer, which means we don't control the public API 100%.
It's may even change between executions of the same C# compiler,
diff --git a/src/AudioUnit/AudioUnit.cs b/src/AudioUnit/AudioUnit.cs
index 96f9f13..7a895fd 100644
--- a/src/AudioUnit/AudioUnit.cs
+++ b/src/AudioUnit/AudioUnit.cs
@@ -226,7 +226,13 @@ namespace XamCore.AudioUnit
[StructLayout(LayoutKind.Sequential)]
unsafe struct AudioUnitParameterInfoNative // AudioUnitParameterInfo in Obj-C
{
- fixed byte /* char[52] */ name[52]; // unused
+ long name1; // 8 unused bytes
commit f2a80d70e485781c48321fe8ccf7b50d79f63cdc
Author: Rolf Bjarne Kvinge <[email protected]>
Date: Thu Mar 31 14:09:53 2016 +0200
[process] Initialize exit code before calling GetExitCodeProcess.
GetExitCodeProcess may fail (if getting the exit code of an exited process
we only have the pid for) and not write anything to the *code
parameter.
commit 881d382a2b2ac6eed60f6e61460640fc61de1b51
Author: Rolf Bjarne Kvinge <[email protected]>
Date: Thu Feb 11 12:19:07 2016 +0100
[threads] Use 64-bit math (and nanoseconds) to keep track of time in sleep_interruptable. Fixes #38663.
mono_msec_ticks returns a 32-bit value of milliseconds since the last boot.
This value overflows after ~20 days, causing deadlocks since the timeout might
end up becoming -1, which means an infinite timeout.
// hide xamarin banner
var xamarin_banner = document.getElementById ("xam-banner");
xamarin_banner.style.display = "none";
var titles = document.getElementById ("titles");
if (titles)
titles.style.display = "none";
// colorize page according to bug status
using System;
using System.IO;
class Program
{
static void Main(string[] args)
{
using (var str = new StreamWriter ("foo"))
File.WriteAllText ("bar", "zap");
}
}
commit 12f4523a638ec7063edcb1b47307d80707c1c111
Author: Rolf Bjarne Kvinge <[email protected]>
Date: Thu Feb 4 14:24:21 2016 +0100
[runtime] Fix a stack smashing bug due to managed 'bool' being 32-bits and native 'bool' being 8-bits.
diff --git a/runtime/delegates.t4 b/runtime/delegates.t4
index 68d015d..658b85e 100644
--- a/runtime/delegates.t4
+++ b/runtime/delegates.t4