From: Rildo P. <rpr...@ac...> - 1999-12-10 19:33:40
|
Hi, I have implemented the first steps for debugging Tiny Cobol source with gdb. I have some docs about "stabs", just if you are curious how this works. There is not yet variable inspection, only single-stepping with source lines being listed, but I'm planning to make it available soon. To debug, don't forget to assemble the .s file with the -g switch, or the stabs information will be removed. The start gdb and put a breakpoint at "main" and use "n" to single step by the cobol source lines. Don't change the directory, because there is no path information in the file saved. In other words, make sure the source file is at the same directory as the object being debugged. You will see the source listed as the execution progress. Enjoy! regards, ---------------------------------------------------------------- Rildo Pragana FPGA/uControllers * Linux * tcl/tk P.O. Box 721 Camaragibe PE http://members.xoom.com/rpragana Brazil 54792-990 +55-81-459-1776 |