Problem with dbx

Eric Kuhnen eric at wdl47.wdl.fac.com
Sat Oct 27 02:06:49 AEST 1990


vrm at cathedral.cerc.wvu.wvnet.edu (Vasile R. Montan) writes:


>   I am linking with code that someone else is developing and he has
>directories organized with seperate develop and release source
>directories.  When he gets his code to a satisfactory level he places
>the library and sources in the release directory so that he can
>continue working in the develop directory without affecting me.

>   The problem is that sometimes I want to trace through his code, but
>dbx insists on using the sources in the develop directory.  I have
>tried the 'file' command to tell it to look in at the source in the
>release directory, but dbx responds with:
>warning: File `release/src/filename.c' has not been compiled with the -g option
>It then continues to use the source in the develop directory.

>   Is there a way to tell dbx to use the file anyway.  I suppose I
>could solve this problem by making him compile the code after coping
>it to the release directory, but I figure there must be a way to do
>what I want.

Unless I've missed my guess, dbx will use code that has been compiled, 
even without the -g option.  It's just that you won't be able to see the
source while you're debugging.  Now if continues to use the source in the
development directory, perhaps the development directory object code is still
being used.  I suggest recompiling the whole thing in `release/src/' yourself.
You may have to modify your "make" file to reflect the new directory,
assuming that you are using "make" in the first place.

"Q"



More information about the Comp.lang.c mailing list