strace -o exam.out exam
No. Just a plain cd tests gdb exam run [watch it crash] bt Hmmm ... won't work.
gdb exam GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-slackware-linux"..."/home/andrej/source/cln_1.1.9/tests/exam": not in executable format: File format not recognized No symbol table is loaded. Use the "file" command. (gdb) run Starting program: No executable file specified. Use the "file" or "exec-file" command. (gdb) quit closer look: exam is a shell wrapper, and I don't understand the inner workings.