Error "No source file named"

Mahmood Naderan via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Hi

When I want to set a breakpoint at a specific line number, I get the following error:

(gdb) break /home/mahmood/accel-sim-framework/gpu-simulator/gpgpu-sim/src/gpgpu-sim/shader.cc:1656
No source file named /home/mahmood/accel-sim-framework/gpu-simulator/gpgpu-sim/src/gpgpu-sim/shader.cc.
Make breakpoint pending on future shared library load? (y or [n])


However, that line exists.

$ sed -n 1656p /home/mahmood/accel-sim-framework/gpu-simulator/gpgpu-sim/src/gpgpu-sim/shader.cc
    printf("[Mahmood:shader.cc:1655] %" PRIu64 "\n", localaddr);



Any idea about that?

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.