Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* dbx problem, "Source not available"
@ 1998-10-14  4:00 Rashid Khosravi
  0 siblings, 0 replies; only message in thread
From: Rashid Khosravi @ 1998-10-14  4:00 UTC (permalink / raw)



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 <signal.h>
#include <sys/uswitch.h>

/*
* 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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-10-14  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-14  4:00 dbx problem, "Source not available" Rashid Khosravi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox