Problem
I have a large Motif binary (appx. 20Mgb) which I am trying to run using the debugger: dbXtra.
When I start dbXtra(CP), the program load hangs while loading the binary's symbol information.
After about 5-6 minutes, I see this error message from dbXtra:
Debugger code has terminated
Cannot continue Solution
The virtual memory requirements for the debugger have
increased. A suggested rule for application debugging
would be to have approximately three to four times the
amount of virtual memory as the size of the binary.Under SCO OpenServer 5, you can dynamically allocate additional
hard disk drive resources for swap space without modifying the
filesystem partition tables. Adding swap space is relatively
simple. These commands add approximately 40 megabytes of swap
space:# touch /tmp/swap
# swap -a /tmp/swap 0 80000Compiling the application as an ELF binary, as opposed to a COFF
binary, does not seem to correct the problem. The debugger may
still fail with an error message:maxumem insufficient to load elf beginAnother known solution is to compile only those modules
within your application that you need to debug, with
the symbol table information ("-g" compiler directive)
intact. This will reduce the overall size of the binary
significantly and you may be able to pass the application
through the debugger.