comp.lang.ada
 help / color / mirror / Atom feed
* Problem using GPS to debug in C and Ada at the same time
@ 2014-07-03 20:50 NiGHTS
  2014-07-04  0:33 ` nights
  0 siblings, 1 reply; 3+ messages in thread
From: NiGHTS @ 2014-07-03 20:50 UTC (permalink / raw)


Subject: Problem using GPS to debug in C and Ada at the same time
Platform: Linux (Kubuntu)


I am trying to debug a C application with bindings to some simple Ada functions using the GNAT Programming Studio (GPS). The main entry point is in C.

I managed to compile both sources in GPS just fine (using gprbuild). I made sure to instruct the respective compilers to export debugging symbols (-g). 

When initializing the debugger, it loads the C main symbols just fine. I can set a breakpoint and follow the C code in the GPS IDE. The problem seems to be trying to set a breakpoint in the Ada code. GPS complains with the following error:

"No source file named unit1.adb."

NOTE: The file 'unit1' is where I attempted to set a breakpoint.


In Conclusion: 

How can I configure GPS to step through Ada code from a C code-base with a C main? I am open to manual workarounds if a GPS configuration is not available.


Thank you


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

end of thread, other threads:[~2014-07-04  6:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-03 20:50 Problem using GPS to debug in C and Ada at the same time NiGHTS
2014-07-04  0:33 ` nights
2014-07-04  6:20   ` J-P. Rosen

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