Skip to content

Instantly share code, notes, and snippets.

@bshastry
Created October 14, 2015 14:45
Show Gist options
  • Save bshastry/275de8e60c245b157880 to your computer and use it in GitHub Desktop.
Save bshastry/275de8e60c245b157880 to your computer and use it in GitHub Desktop.
Create gdb style breakpoints from Clang SA bug reports
#!/usr/bin/env bash
DIR=$1
for file in $(find $DIR/report*.html);
do
filename=$(sed '63q;d' $file | awk '{print $3}');
linenum=$(sed '69q;d' $file | awk '{print $3}');
echo -e "break $filename:$linenum";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment