Skip to content

Instantly share code, notes, and snippets.

@mikesartain
mikesartain / Sublime Vintageous Spew
Created June 7, 2013 22:50
Spew from Sublime when editing file stopped working.
startup, version: 3035 linux x64 channel: dev
executable: /opt/sublime_text/sublime_text
working dir: /home/mikesart/data/src/llvm/llvm/tools/lldb.hg
packages path: /home/mikesart/.config/sublime-text-3/Packages
state path: /home/mikesart/.config/sublime-text-3/Local
hardware concurrency: 12
zip path: /opt/sublime_text/Packages
zip path: /home/mikesart/.config/sublime-text-3/Installed Packages
resources scanned
found 10 files for base name Default.sublime-keymap
@mikesartain
mikesartain / gist:5623734
Last active December 17, 2015 14:19
Enable ObjectFileELF::GetModuleSpecifications(), fix platform process list on Linux, and parse build-id from elf notes section if it exists. Also bumps UUID up to 20 bytes.
Index: include/lldb/Core/UUID.h
===================================================================
--- include/lldb/Core/UUID.h (revision 182424)
+++ include/lldb/Core/UUID.h (working copy)
@@ -22,7 +22,8 @@
class UUID
{
public:
- typedef uint8_t ValueType[16];
+ // Most UUIDs are 16 bytes, but some Linux build-ids (SHA1) are 20.
@mikesartain
mikesartain / gist:5580617
Last active December 17, 2015 08:29
lldb bug #14541
Index: source/Host/common/Host.cpp
===================================================================
--- source/Host/common/Host.cpp (revision 181847)
+++ source/Host/common/Host.cpp (working copy)
@@ -1206,14 +1206,14 @@
return getegid();
}
-#if !defined (__APPLE__)
+#if !defined (__APPLE__) && !defined(__linux__)
@mikesartain
mikesartain / gist:5550857
Last active December 17, 2015 04:29
lldb patch for Linux Host::SetThreadName
Index: source/Host/linux/Host.cpp
===================================================================
--- source/Host/linux/Host.cpp (revision 181496)
+++ source/Host/linux/Host.cpp (working copy)
@@ -169,4 +169,51 @@
// FIXME: Parse /proc/<pid>/status to get uid, gid, euid, egid and parent_pid
return true;
-}
\ No newline at end of file