Created
September 10, 2018 14:26
-
-
Save disconnect3d/6e19019941135b335c58bd8d5a18bd55 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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