From: Eli Zaretskii <eliz@gnu.org>
To: Mahmood Naderan <nt_mahmood@yahoo.com>
Cc: gdb@sourceware.org
Subject: Re: Error "No source file named"
Date: Sun, 08 Aug 2021 17:35:07 +0300 [thread overview]
Message-ID: <83k0kwgg2s.fsf@gnu.org> (raw)
In-Reply-To: <767694398.211875.1628429913388@mail.yahoo.com> (message from Mahmood Naderan via Gdb on Sun, 8 Aug 2021 13:38:33 +0000 (UTC))
> Date: Sun, 8 Aug 2021 13:38:33 +0000 (UTC)
> From: Mahmood Naderan via Gdb <gdb@sourceware.org>
>
> 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);
Try using the command "info sources" to see what GDB knows about
source file names of your program. And why don't you use just the
base name of the file, i.e. just "shader.cc"?
next prev parent reply other threads:[~2021-08-08 14:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <767694398.211875.1628429913388.ref@mail.yahoo.com>
2021-08-08 13:38 ` Mahmood Naderan
2021-08-08 14:35 ` Eli Zaretskii [this message]
2021-08-08 15:06 ` Mahmood Naderan
2021-08-08 15:31 ` Andreas Schwab
2021-08-08 16:01 ` Mahmood Naderan
2021-08-08 16:12 ` Jonah Graham
2021-08-08 16:35 ` Mahmood Naderan
2021-08-08 16:45 ` Jeffrey Walton
2021-08-08 17:15 ` Mahmood Naderan
2021-08-08 22:25 ` Jeffrey Walton
2021-08-09 8:36 ` Mahmood Naderan
2021-08-08 20:51 ` Jonah Graham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83k0kwgg2s.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb@sourceware.org \
--cc=nt_mahmood@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).