From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,581fab0513cb2761,start X-Google-Attributes: gidfee84,public From: rashid@acd.ucar.edu (Rashid Khosravi) Subject: dbx problem, "Source not available" Date: 1998/10/14 Message-ID: <702q0m$38h$1@ncar.ucar.edu>#1/1 X-Deja-AN: 401063508 Organization: NCAR/ACD Keywords: dbx src -I source Newsgroups: comp.unix.osf.osf1 Summary: dbx is unable to find the source file to debug Greetings. I am having a problem with dbx on my DEC alpha (running DIGITAL UNIX) that I did not have before. The problem is that when I run dbx (e.g., from the directory /home/rashid/) on the executable 'main', it cannot locate the source file (FORTRAN, in /home/rashid/src/main.f). I compile the source file with (f90) -g, and I launch dbx as follows: dbx -I src main When I do 'stop in main', 'run', and then 'next', or 'list' (or any other dbx command), I get the following message: "source not available". Doing 'use src', giving the full path name of the source file, or moving the source file to the directory where dbx is launched, have no effect. The only thing I can think of that has changed from the time when '-I src' or 'use src' worked, is that I have run a c code to enable enhanced core file naming. This c code, which I copied directly from the man page on 'core', enables the system to append the name of the process to the core file name. The c code is this: #include #include /* * Request enhanced core file naming for * this process then create a core file. */ main() { long uval = uswitch(USC_GET, 0); uval = uswitch(USC_SET, uval | USW_CORE); if (uval < 0) { perror("uswitch"); exit(1); } raise(SIGQUIT); } The reason I think this may have something to do with the dbx problem, is that I also tried running 'ladebug' (a debugger similar to dbx), and it gives the following message: Can't find file for_main.c which seems to indicate that ladebug is looking for main.c. So The last thing I tried was to undo the effect of the above code (by using uval = uswitch(USC_SET, uval) instead of the line given above), But the "Source not available" problem is still there. I would appreciate suggestions/ideas on how to solve this problems. Once solved, I will post a summary of the solution. Please e-mail your response (rashid@ucar.edu). Thanks. Rashid Khosravi National Center for Atmospheric Research P.O. Box 3000 Boulder, CO, 80307 rashid@ucar.edu