clang and the debugger
Posted: Wed Dec 27, 2023 1:18 pm
When I attempt to debug code compiled with clang, the debugger does not recognize the language of the program and does not display source lines. Is there something I need to be doing or is the necessary support not yet included? The command line I am using is simply:
clang -pointer-size=argv64 --param=ssp-buffer-size=4 -O0 -g -fno-strict-aliasing -include <some file> -o ...
Example output:
OpenVMS x86-64 Debug64 Version V9.2-008
%DEBUG-I-INITIAL, Language: UNKNOWN, Module: MAIN
%DEBUG-I-NOTATMAIN, Type GO to reach MAIN program
DBG> set lang c++
DBG> go
break at main+48
DBG> set module jackets
DBG> set break jacket_open
DBG> go
%DEBUG-I-DYNLNGSET, setting language C
break at routine JACKETS\jacket_open
%DEBUG-W-UNAOPNSRC, unable to open source file
-RMS-F-SYN, file specification syntax error
150: Source line not available
clang -pointer-size=argv64 --param=ssp-buffer-size=4 -O0 -g -fno-strict-aliasing -include <some file> -o ...
Example output:
OpenVMS x86-64 Debug64 Version V9.2-008
%DEBUG-I-INITIAL, Language: UNKNOWN, Module: MAIN
%DEBUG-I-NOTATMAIN, Type GO to reach MAIN program
DBG> set lang c++
DBG> go
break at main+48
DBG> set module jackets
DBG> set break jacket_open
DBG> go
%DEBUG-I-DYNLNGSET, setting language C
break at routine JACKETS\jacket_open
%DEBUG-W-UNAOPNSRC, unable to open source file
-RMS-F-SYN, file specification syntax error
150: Source line not available