Re: Error "No source file named"
Jonah Graham <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAPmGMvgq4wkj2e=TF8Ck8bGX7gkvGjzP3hDKZH16Mkaybhnn9g@mail.gmail.com> |
(sorry for top post, my phone's email client isn't working well) Hi Mahmood, Until the so loads info sources won't show info about it. Did you say "yes" to the make breakpoint pending and then run until the so was loaded. You should get a message during your run when the so is loaded. HTH, Jonah On Sun., Aug. 8, 2021, 09:47 Mahmood Naderan via Gdb, <[email protected]> wrote: > 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 >