[gnu.gcc.bug] problem with #line

alexande@CS.UNC.EDU (Geoffrey D. Alexander) (02/09/90)

I am having a problem with #line in gcc.  The following illustrates the
problem:

===== test5.c =================================================================
#line 1 "test5.c"
main() {
  exit(0);
}
===============================================================================

When I compile with cc test5.c -g -o test5, dbxtool indicates that the source
file is test5.c.  When I compile with gcc test5.c -g -o test5, dbxtool
indicates that the source file is /test5.c.  This isn't so bad.  However, xdbx
fails to find the source when compile with gcc -- it says that /test5.c cannot
be located.

I am using gcc 1.36 under Sun0S 4.0.3 on SUN3-M60.  If more information is
needed, please let me know.

Geoff Alexander

P.S. The problem may be related to an earlier problem I reported earlier about
multiple source file (multuiple #line directives) and dbxtool.