Lab 1

The script skeleton is wrong. Instead of using the finish command, it should use the disable command. See the GDB help for more information about these two commands.

For debugging executables that were compiled without -g, you need some good assembly language information, particularly calling conventions on the Linux/x86 platform: http://www.angelcode.com/dev/callconv/callconv.html Look for GCC g++ / Linux under cdecl. Knowing the stack structure is also useful, this is described at http://www.unixwiz.net/techtips/win32-callconv-asm.html