From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.241.33 with SMTP id wf1mr3158771obc.37.1404420620106; Thu, 03 Jul 2014 13:50:20 -0700 (PDT) X-Received: by 10.140.47.102 with SMTP id l93mr122778qga.5.1404420620081; Thu, 03 Jul 2014 13:50:20 -0700 (PDT) Path: buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!hn18no2619194igb.0!news-out.google.com!a8ni6411qaq.1!nntp.google.com!i13no5742953qae.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 3 Jul 2014 13:50:19 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=73.179.102.101; posting-account=wEPvUgoAAABrLeiz_LRhQ3jeEhyfWVMH NNTP-Posting-Host: 73.179.102.101 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <780565cb-49e5-4ecd-ac3c-af84df7a0941@googlegroups.com> Subject: Problem using GPS to debug in C and Ada at the same time From: NiGHTS Injection-Date: Thu, 03 Jul 2014 20:50:20 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:187350 Date: 2014-07-03T13:50:19-07:00 List-Id: 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