comp.lang.ada
 help / color / mirror / Atom feed
From: NiGHTS <nights@unku.us>
Subject: Problem using GPS to debug in C and Ada at the same time
Date: Thu, 3 Jul 2014 13:50:19 -0700 (PDT)
Date: 2014-07-03T13:50:19-07:00	[thread overview]
Message-ID: <780565cb-49e5-4ecd-ac3c-af84df7a0941@googlegroups.com> (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


             reply	other threads:[~2014-07-03 20:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-03 20:50 NiGHTS [this message]
2014-07-04  0:33 ` Problem using GPS to debug in C and Ada at the same time nights
2014-07-04  6:20   ` J-P. Rosen
replies disabled

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