From ukc.ac.uk!ups-users-outbound-request Mon Nov 4 19:16:09 1996 From: rod@San-Jose.ate.slb.com (Rod Armstrong) To: ups-users@ukc.ac.uk Subject: Re 3.14 Fortran problems; step problems I looked into David J.C. MacKay's posting about problems with debugging Fortran 90 with UPS 3.14 and found solutions. The X protocol messages were due to using the binary of my first unofficial patch for 3.14 from last year. This had memory bugs with demangling that caused the X errors. Using the latest, patch 3, which is ftp://ftp.x.org/contrib/devel_tools/ups-3.14-beta-rga-3.solaris-2.5.gz fixed that problem. The other issue was that clicking on a variable name in the source would not cause it to be displayed. The behaviour is the same for the standard 3.14-beta version as well. The variable is not shown because the names have "_" appended in the symbol table infomation. Not sure how pervasive this problem is, as I have no access to Fortran compilers. There is a peculiar work-araound for this problem if my patched version is used. It makes use of the string matching feature that UPS employs for non-demangled C++ code: 1. setenv UPS_LANGUAGE C++ 2. Debug with "-nodemangle", viz: ups target -nodemangle The reason this works is that if UPS thinks it is dealing with undemangled C++, it will do wildcard matching on variable names. So clicking on "seconds" for example, will match "seconds_". --------------------- With repect to 3.14, I tracked down a long outstanding problem that generated many "Can't lseek to ..", ""Error reading ... bytes..", and "Unexpected EOF at ..." messages. I temporarily commented out these messages in my patch as they overwhelmed the user, but the underlying problem remained. The cause was that as Solaris puts debug information in the object files, UPS has a scheme to reuse file descriptors. However when reading files to disassemble instructions for next and step commands, an out of date file descriptor could be used (the descriptor would be pointing to a different file in fact), causing the lseek and read errors. The effect was generally benign, but step commands would othen fail, behaving like a "next", or "continue" command. A fix for this will be in my next patch. Rod Armstrong rod@san-jose.ate.slb.com