Skip to content

Instantly share code, notes, and snippets.

@disconnect3d
Created September 10, 2018 14:26
Show Gist options
  • Save disconnect3d/e182ad52dd1e8a643196e9f2807291b6 to your computer and use it in GitHub Desktop.
Save disconnect3d/e182ad52dd1e8a643196e9f2807291b6 to your computer and use it in GitHub Desktop.
### GDB DEV
function gdb-conf {
if [ "$#" -lt 1 ]; then
echo "Usage: gdb-conf configure-path [additional args...]"
return
fi
conf=$1
shift 1
# not entirely useful for development builds:
# --enable-targets="all" \
# --disable-werror \
# --with-guile \
# --with-intel-pt \
# --with-babeltrace \
echo $conf \
--disable-gold \
--disable-ld \
--disable-gprof \
--disable-gas \
--disable-nls \
--with-system-readline \
--with-python=/usr/bin/python3.6 \
--enable-sim \
CFLAGS="'-g3 -O0'" \
CXXFLAGS="'-g3 -O0'" \
CC="'ccache gcc'" \
CXX="'ccache g++'" \
LDFLAGS="'-fuse-ld=gold $LDFLAGS'" \
$*
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment