From: Rildo P. <rpr...@ac...> - 1999-12-10 22:27:14
|
Hi, Well, my friends. Now I implemented the debugger's access of "usage is display" variables. You can get those variables listed (with correct size, of course) inside gdb. You only have access to the symbols when the program is running, so please; (1) start gdb with the object name; (2) put a breakpoint at "main" (with the command: b main); (3) run. Then you can display any variable, but only makes sense to play with "display" variables, as the others will show garbage. You can use the gdb's command "x/x VAR" to get the value of a "usage is comp" variable, or "x/b VAR" to do the same with a COMP-3, for each 2-digit values. I will look for ways to show the properties (like the picture, for instance) as well, and to convert other kind of variables for working inside gdb. Nevertheless, I don't think this is going to be easy, because gdb is optimized for running C/C++ and Modula programs, _not_ Cobol. So, there are some ideosyncrasies of Cobol that it don't know. Sorry :( There is a test ready to run in test.code/t16. Run it as stated above and execute "d ARRAY" to see what's the contents of it. 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 |