Re: Error "No source file named"

Mahmood Naderan via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
>Most likely it wasn't compiled with debug info.

Andreas, I checked the build command:

g++  -g3 -fPIC -DCUDART_VERSION=11020 -Wall -DDEBUG -DTRACING_ON=1 -std=c++0x -ggdb -I/usr/local/cuda-11.2/include -I/home/mahmood/accel-sim-framework/gpu-simulator/gpgpu-sim/src/gpuwattch/ -DGPGPUSIM_POWER_MODEL -o /home/mahmood/accel-sim-framework/gpu-simulator/gpgpu-sim/build/gcc-9.3.0/cuda-11020/debug/gpgpu-sim/shader.o -c shader.cc

...

g++ -std=c++0x -o ./bin/debug/accel-sim.out  -L/home/mahmood/accel-sim-framework/gpu-simulator/gpgpu-sim/lib/gcc-9.3.0/cuda-11020/debug/ -lcudart -lm -lz -lGL -pthread ./build/debug/*.o




Again, I run gdb with "info sources" and only see shader.h.
How that is possible that .h is in there but not .cc? I ask that because then it wants to compile the .cc file, it uses the .h file for headers.


Regards,
Mahmood
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.