#!/bin/sh
#
# I had a benchmark which was failing with:
#
# process didn't exit successfully: `/Users/patrick/csv-plus-plus/target/release/deps/eval_fill-e41476ce1c66b265 --profile-time=5 --bench` (signal: 11, SIGSEGV: invalid memory reference)
#
# which in order to debug we need to connect to the benchmark using gdb
#
if [; then
fi
if ; then
else
binary=
# TODO: ugh sign gdb so I don't need to use sudo
# sudo rust-gdb -ex "set startup-with-shell off" -ex "run --profile-time=5 --bench" $binary
fi