From: David E. <de...@us...> - 2012-01-20 02:56:29
|
To use gdb you must compile 'htcobol', with the debugging symbols GCC option, '-g' on. Unpack the source code and configure and compile TC. Then use the local version to debug using gdb. make cleanall configure --enable-debug-compiler - Check that the '-g' option (see CCXFLAGS) and that the strip command is commented in the 'compiler/Makefile' file. make Example: Check 'htcobol' using file command (file ...htcobol ...not stripped). gdb /some-path/tinycobol-0.66/compiler/htcobol gdb> r -x -F -P web0007.cob ... Note that the run-time link step should not be problem if you are using the same version of TC for test and production. Hope this helps. Carlucio Lopes wrote: > ... > I do not know how to solve. help me? > $ gdb htcobol > ... > Reading symbols from /usr/local/bin/htcobol... > (no debugging symbols found)...done. > (gdb) r -x -F -P web0007.cob > Starting program: /usr/local/bin/htcobol -x -F -P web0007.cob > ... > Program received signal SIGABRT, Aborted. > ... |