Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GNAT gives message: No source file named xxx.adb when trying to set breakpoint in GPS

237 views
Skip to first unread message

Petter Fryklund

unread,
May 23, 2017, 7:54:06 AM5/23/17
to
Hi,
I've got a strange problem. I'm debugging a program in GPS. When I try to set a breakpoint I get a message that there is no source file named <the name of the file I tried to set the breakpoint in>. Right mouse button properties says that it does! Has anybody seen this before and know what to do?

Regards,
Petter

briot.e...@gmail.com

unread,
May 24, 2017, 3:09:03 AM5/24/17
to

Did you compile your application with the -g switch ? Otherwise, there are no debug information embedded in the executable, and gdb indeed might not know about the file names... You need to edit the project properties for this, or enable the "debug" mode in the Scenario view

Petter Fryklund

unread,
May 29, 2017, 9:06:30 AM5/29/17
to
Den onsdag 24 maj 2017 kl. 09:09:03 UTC+2 skrev briot.e...@gmail.com:
> Did you compile your application with the -g switch ? Otherwise, there are no debug information embedded in the executable, and gdb indeed might not know about the file names... You need to edit the project properties for this, or enable the "debug" mode in the Scenario view

Yes, but I made another mistake. Although the files is part of our system, it was not used by the particular application I was debugging.
0 new messages