Skip to content

Instantly share code, notes, and snippets.

View ricksladkey's full-sized avatar

Rick Sladkey ricksladkey

View GitHub Profile
@ricksladkey
ricksladkey / log.py
Last active April 25, 2024 12:27
Example Python script for GDB that reads and displays the text in a ring buffer every time the program stops
from __future__ import print_function
import struct
import gdb
def log():
# Get the inferior.
try: