Skip to content

Instantly share code, notes, and snippets.

View kangaroo's full-sized avatar

Geoff Norton kangaroo

View GitHub Profile
basalt:vm plasma$ /Library/Developer/CommandLineTools/usr/bin/unwinddump ../../src/vm/wks/CMakeFiles/cee_wks.dir/__/amd64/calldescrworkeramd64.S.o
basalt:vm plasma$ dwarfdump ../../src/vm/wks/CMakeFiles/cee_wks.dir/__/amd64/calldescrworkeramd64.S.o
----------------------------------------------------------------------
File: ../../src/vm/wks/CMakeFiles/cee_wks.dir/__/amd64/calldescrworkeramd64.S.o (x86_64)
----------------------------------------------------------------------
.debug_info contents:
0x00000000: Compile Unit: length = 0x0000017f version = 0x0002 abbr_offset = 0x00000000 addr_size = 0x08 (next CU at 0x00000183)
0x0000000b: TAG_compile_unit [1] *
unw_init_local(cursor=0x7fff5fbfc018, context=0x7fff5fbfc478)
unw_set_reg(cursor=0x7fff5fbfc018, regNum=-1, value=0x101A27E6A)
unw_set_reg(cursor=0x7fff5fbfc018, regNum=-2, value=0x7FFF5FBFC890)
unw_set_reg(cursor=0x7fff5fbfc018, regNum=6, value=0x7FFF5FBFCD90)
unw_set_reg(cursor=0x7fff5fbfc018, regNum=3, value=0x10400C180)
unw_set_reg(cursor=0x7fff5fbfc018, regNum=12, value=0x0)
unw_set_reg(cursor=0x7fff5fbfc018, regNum=13, value=0x10400BEB0)
unw_set_reg(cursor=0x7fff5fbfc018, regNum=14, value=0x10400BEB0)
unw_set_reg(cursor=0x7fff5fbfc018, regNum=15, value=0x0)
unw_step(cursor=0x7fff5fbfc018)
diff --git a/src/ToolBox/SOS/lldbplugin/CMakeLists.txt b/src/ToolBox/SOS/lldbplugin/CMakeLists.txt
index 6847e05..32d654a 100644
--- a/src/ToolBox/SOS/lldbplugin/CMakeLists.txt
+++ b/src/ToolBox/SOS/lldbplugin/CMakeLists.txt
@@ -10,7 +10,8 @@ if(CLR_CMAKE_PLATFORM_UNIX)
# Check for LLDB library
find_library(LLDB NAMES lldb lldb-3.5 PATHS "${WITH_LLDB_LIBS}")
if(LLDB STREQUAL LLDB-NOTFOUND)
- message(FATAL_ERROR "Cannot find lldb or lldb-3.5. Try installing lldb-3.5-dev (or the appropriate package for your platform)")
+ message("Cannot find lldb or lldb-3.5. Try installing lldb-3.5-dev (or the appropriate package for your platform)")
diff --git a/src/pal/src/exception/seh-unwind.cpp b/src/pal/src/exception/seh-unwind.cpp
index 0b3a511..8f3bcb5 100644
--- a/src/pal/src/exception/seh-unwind.cpp
+++ b/src/pal/src/exception/seh-unwind.cpp
@@ -91,7 +91,12 @@ static void UnwindContextToWinContext(unw_cursor_t *cursor, CONTEXT *winContext)
static void GetContextPointer(unw_cursor_t *cursor, int reg, PDWORD64 *contextPointer)
{
#if defined(__APPLE__)
- //OSXTODO
+ uint64_t *val = (uint64_t*)malloc(sizeof(uint64_t));
~ | public static TargetRuntime ParseRuntime (this string self)
~ | {
~ | if (self.Length > 0)
~ | {
~ | switch (self[1])
~ | {
~ | case '1':
~ | return self[3] == '0'
~ | ? TargetRuntime.Net_1_0
~ | : TargetRuntime.Net_1_1;
invoking
entry
a: aaaaaaaa
b: bbbbbbbb
c: cccccccc
d: dddddddd
e: eeeeeeee
f: ffffffff
g: 55555555
h: 66666666
#include <stdio.h>
typedef void (*callback)(int signum);
typedef void (*stackspill)(int a, int b, int c, int d, int e, int f, int g, int h, int i);
void doit(stackspill ptr)
{
ptr(0xaaaaaaaa, 0xbbbbbbbb, 0xcccccccc, 0xdddddddd, 0xeeeeeeee, 0xffffffff, 0x55555555, 0x66666666, 0x77777777);
}
using System;
using System.Runtime.InteropServices;
namespace ConsoleApplication1
{
class Program
{
[DllImport("libdl", SetLastError = true, CharSet = CharSet.Ansi)]
static extern IntPtr dlopen([MarshalAs(UnmanagedType.LPStr)]string lpFileName, int mode);
diff --git a/src/pal/src/arch/i386/context.cpp b/src/pal/src/arch/i386/context.cpp
index 518539f..522f9d7 100644
--- a/src/pal/src/arch/i386/context.cpp
+++ b/src/pal/src/arch/i386/context.cpp
@@ -1,6 +1,6 @@
//
// Copyright (c) Microsoft. All rights reserved.
-// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
basalt:debug plasma$ ./corerun -c . ~/Work/hw.exe mac
Enabling bottom handlers for thread 00000513
Enabling bottom handlers for thread 00000E03
Enabling bottom handlers for thread 00001003
Enabling bottom handlers for thread 00001303
Hello, Mac...
,++
@@@@@@+
@@@@@@@@