Skip to content

Instantly share code, notes, and snippets.

@bswck
Last active February 16, 2025 15:22
Show Gist options
  • Save bswck/7a1b950f9f1560a1f0037c65925f1e6d to your computer and use it in GitHub Desktop.
Save bswck/7a1b950f9f1560a1f0037c65925f1e6d to your computer and use it in GitHub Desktop.
Breakpoints from regex
#!/usr/bin/env bash
set -Eeuxo pipefail
rg $1 -no --no-heading -r '' | sed 's/:$//' | xargs -l echo break > $2.gdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment