coxkade / lldbscripts

Scripts for lldb debugging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lldbscripts

This repository contains helper scripts for lldb debugging.

ignore_signals.py

Automatically configure processes to not stop on SIGSEGV. Similar to the gdb command handle SIGSEGV noprint, but the lldb equivalent process handle --stop false SIGSEGV cannot be executed until a process has been loaded. Hence the need for a helper script.

Usage

Add a line similar to this to your ~/.lldbinit file:

command script import ~/git/lldbscripts/ignore_signals.py

Customization

To add other signals to the list, add a line similar to this one in ignore_signals.py:

signals.SetShouldStop(11, False)

The number to use can be found for example in signal.h.

About

Scripts for lldb debugging

License:MIT License


Languages

Language:Python 100.0%