brock@arden:~$ gdb GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.3) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". (gdb) a = 5 Ambiguous command "a = 5": actions, add-auto-load-safe-path, add-inferior, add-symbol-file, add-symbol-file-from-memory... (gdb) set a = 5 Ambiguous set command "a = 5": ada, agent, annotate, architecture, args, auto-load, auto-load-scripts, auto-solib-add. (gdb) quit brock@arden:~$ cd ~/csci235 brock@arden:~/csci235$ cd notes brock@arden:~/csci235/notes$ ls Binary.html CvsJava1.html~ Elementary.html Lect1.html~ oLect2.html~ setup.txt Binary.html~ CvsJava.txt Elementary.html~ Lect2.html~ references.txt CvsJava1.html CvsJava.txt~ Lect1.html oLect2.html setfacl brock@arden:~/csci235/notes$ brock@arden:~/csci235/notes$ CFLAGS=-std=ansi -Wpedantic -Wpedantic: command not found brock@arden:~/csci235/notes$ export CFLAGS=-std=ansi -Wpedantic bash: export: `-Wpedantic': not a valid identifier brock@arden:~/csci235/notes$ export CFLAGS="-std=ansi -Wpedantic" brock@arden:~/csci235/notes$ echo $CFLAGS -std=ansi -Wpedantic brock@arden:~/csci235/notes$ gcc gdb1.c gdb1.c:6:13: error: ‘NUMMUM’ undeclared here (not in a function) int numbers[NUMMUM] ; ^ gdb1.c: In function ‘main’: gdb1.c:9:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i=0; i< NUMMUM; ++i) { ^ gdb1.c:9:3: note: use option -std=c99 or -std=gnu99 to compile your code brock@arden:~/csci235/notes$ export CFLAGS="-std=c99 -Wpedantic" brock@arden:~/csci235/notes$ gcc gdb1.c gdb1.c:6:13: error: ‘NUMMUM’ undeclared here (not in a function) int numbers[NUMMUM] ; ^ gdb1.c: In function ‘main’: gdb1.c:9:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i=0; i< NUMMUM; ++i) { ^ gdb1.c:9:3: note: use option -std=c99 or -std=gnu99 to compile your code brock@arden:~/csci235/notes$ echo $CFLAGS -std=c99 -Wpedantic brock@arden:~/csci235/notes$ gcc $CFLAGS gdb1.c gdb1.c:6:13: error: ‘NUMMUM’ undeclared here (not in a function) int numbers[NUMMUM] ; ^ brock@arden:~/csci235/notes$ echo $CFLAGS -std=c99 -Wpedantic brock@arden:~/csci235/notes$ export -p declare -x CFLAGS="-std=c99 -Wpedantic" declare -x COLUMNS="94" declare -x COMP_WORDBREAKS=" \"'><;|&(:" declare -x EMACS="t" declare -x HOME="/home/brock" declare -x INSIDE_EMACS="24.3.1,comint" declare -x KRB5CCNAME="FILE:/tmp/krb5cc_10000_pvGVU4" declare -x LANG="en_US.UTF-8" declare -x LESSCLOSE="/usr/bin/lesspipe %s %s" declare -x LESSOPEN="| /usr/bin/lesspipe %s" declare -x LOGNAME="brock" declare -x LS_COLORS="" declare -x MAIL="/var/mail/brock" declare -x MODELSIM="/home/brock/modelsim.ini" declare -x OLDPWD="/home/brock/csci235" declare -x PATH="/home/brock/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" declare -x PWD="/home/brock/csci235/notes" declare -x QT_QPA_PLATFORMTHEME="appmenu-qt5" declare -x SHELL="/bin/bash" declare -x SHLVL="2" declare -x SSH_CLIENT="68.189.168.48 52005 22" declare -x SSH_CONNECTION="68.189.168.48 52005 152.18.69.32 22" declare -x SSH_TTY="/dev/pts/12" declare -x TERM="dumb" declare -x TERMCAP="" declare -x USER="brock" brock@arden:~/csci235/notes$ alias mygcc gcc -std=c99 -Wpedantic bash: alias: mygcc: not found bash: alias: gcc: not found bash: alias: -Wpedantic: not found brock@arden:~/csci235/notes$ alias mygcc "gcc -std=c99 -Wpedantic" bash: alias: mygcc: not found bash: alias: `gcc -std': invalid alias name brock@arden:~/csci235/notes$ alias mygcc="gcc -std=c99 -Wpedantic" brock@arden:~/csci235/notes$ mygcc gcc: fatal error: no input files compilation terminated. brock@arden:~/csci235/notes$ mygcc glib1.c gcc: error: glib1.c: No such file or directory gcc: fatal error: no input files compilation terminated. brock@arden:~/csci235/notes$ ls Binary.html CvsJava1.html~ Elementary.html gdb1.c~ Lect2.html~ references.txt Binary.html~ CvsJava.txt Elementary.html~ Lect1.html oLect2.html setfacl CvsJava1.html CvsJava.txt~ gdb1.c Lect1.html~ oLect2.html~ setup.txt brock@arden:~/csci235/notes$ mygcc gdb1.c gdb1.c:6:13: error: ‘NUMMUM’ undeclared here (not in a function) int numbers[NUMMUM] ; ^ brock@arden:~/csci235/notes$ brock@arden:~/csci235/notes$ brock@arden:~/csci235/notes$ brock@arden:~/csci235/notes$