comp.lang.ada
 help / color / mirror / Atom feed
* GNAT gives message: No source file named xxx.adb when trying to set breakpoint in GPS
@ 2017-05-23 11:54 Petter Fryklund
  2017-05-24  7:09 ` briot.emmanuel
  0 siblings, 1 reply; 3+ messages in thread
From: Petter Fryklund @ 2017-05-23 11:54 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GNAT gives message: No source file named xxx.adb when trying to set breakpoint in GPS
  2017-05-23 11:54 GNAT gives message: No source file named xxx.adb when trying to set breakpoint in GPS Petter Fryklund
@ 2017-05-24  7:09 ` briot.emmanuel
  2017-05-29 13:06   ` Petter Fryklund
  0 siblings, 1 reply; 3+ messages in thread
From: briot.emmanuel @ 2017-05-24  7:09 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GNAT gives message: No source file named xxx.adb when trying to set breakpoint in GPS
  2017-05-24  7:09 ` briot.emmanuel
@ 2017-05-29 13:06   ` Petter Fryklund
  0 siblings, 0 replies; 3+ messages in thread
From: Petter Fryklund @ 2017-05-29 13:06 UTC (permalink / raw)


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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-29 13:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-23 11:54 GNAT gives message: No source file named xxx.adb when trying to set breakpoint in GPS Petter Fryklund
2017-05-24  7:09 ` briot.emmanuel
2017-05-29 13:06   ` Petter Fryklund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox