Author(s): Austin Clements, Rick Hudson
Last updated: 2016-10-18
Discussion at https://golang.org/issue/17503.
package main | |
import ( | |
"flag" | |
"fmt" | |
"image" | |
"image/png" | |
"log" | |
"os" |
import gdb | |
_Gdead = 6 | |
class SliceValue: | |
"""Wrapper for slice values.""" | |
def __init__(self, val): | |
self.val = val |
Author(s): Austin Clements, Rick Hudson
Last updated: 2016-10-18
Discussion at https://golang.org/issue/17503.
try: | |
from gdb.unwinder import Unwinder, register_unwinder | |
except ImportError: | |
Unwinder = None | |
if Unwinder is not None: | |
class FrameID(object): | |
def __init__(self, sp, pc): | |
self.sp = sp | |
self.pc = pc |
// You may want to first disable transparent huge pages: | |
// | |
// echo never | sudo tee /sys/kernel/mm/transparent_hugepage/enabled | |
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" |