2010-11-30 30 views
6

Mon problème est le suivant:éclipse avec Intel Fortran débogueur

Je veux utiliser le débogueur intel Bid avec Eclipse pour pouvoir aller étape par étape à travers mon code, tout comme idb -gui fait. Je l'ai déjà essayé de mettre en œuvre une solution que j'ai trouvé où je remplace l'appel direct à la Bid -gdb avec un script:

#!/bin/bash 
exec/usr/local/soft/intel/fc/10.0.025/bin/ifort/idb -gdb "[email protected]" 

Cela fonctionne en fait comme il commence mon programme juste jusqu'à ce qu'il arrive à une invite de commande. Maintenant, je reçois l'erreur suivante:

Target request failed: {R,T}xThread terminated. 

C'est quand je perdu environ une journée entière à essayer de résoudre cela et décidé de poster sur tant. Quelqu'un peut-il m'aider avec un conseil intelligent? Comment as-tu intégré idb dans eclipse?

acclamations, David

Répondre

4

pas un spécialiste, mais dans le cas où cette aide, ce fil mentionne (même si elle est pour FORTRAN 11):

I was thinking about your problem some more and I think I was not taking your problem statement as literally as you meant it maybe.
Are you saying the code you cannot see in the debugger resides in a MODULE definition file? If so, I would say the problem is due to general limitations of using gdb as a Fortran debugger. If you use the Intel debugger, you will be able to step into Intel Fortran generated code which is contained in a MODULE .

I see you are using version 11.0 of Intel Fortran. There are a couple of choices for you.

  • Intel Fortran 11.0 comes with a new standalone GUI version of IDB. You could use it if you don’t mind building in Eclipse, but debugging in another tool. You invoke the new gui version with the “ idb ” command assuming you initialized your environment for using the Intel debugger.
  • Intel Fortran 11.0 also provides the command line version of the debugger which you can invoke with the “ idbc ” command, again, assuming you have initialized your environment for using the Intel debugger.
  • A third alternative you could try is to modify your debug launch configuration in Photran so that it invokes idbc instead of gdb . This is not something that is officially supported by Intel, but when I try it with an example similar to what I think your situation is, it works o.k. Again, this is not supported by Intel so if you run into other problems in this configuration, there would be no help. If it works well enough for you though, it let’s you do everything within Eclipse/Photran.
    If you want to try it, initialize your environment to use the Intel debugger before you start Eclipse, start Eclipse, open your debug configuration and choose the debugger tab. Then in the “Debugger Options” area, “ Main ” tab, change “ GDB debugger ” from “ gdb ” to “ idbc ”.

That thread mentionne également (en cas où il a une influence sur votre problème):

The idb GUI appears to run a backend called iidb , which emulates gdb well enough for the Eclipse IDE to get by.

iidb needs to load certain shared libraries.
I made this happen by adding /opt/intel/Compiler/11.1/038/idb/lib/intel64 to environment variable LD_LIBRARY_PATH prior to Eclipse startup.
Your path should match your specific ifort installation.

In your debug configuration, tab " Debugger ," field " GDB debugger ", replace gdb with iidb . If you want it to stop on startup, try replacing main with MAIN__ .

+0

Malheureusement, je ne peux toujours pas le faire fonctionner :(comment avez-vous charger les bibliothèques partagées pour IIDB mon erreur: Erreur création de la session option non reconnue: nw (mode DBX) option non reconnue: nw (mode DBX) option non reconnue : nw (mode DBX) – tarrasch

+0

@tarrasch: Je n'ai pas beaucoup plus sur ce problème, sauf ce fil http://dev.eclipse.org/mhonarc/lists/photran/msg00162.html qui mentionne le même genre d'erreur – VonC

+0

@tarrasch: avez-vous réussi à le faire fonctionner? – VonC

0

3 ans se sont écoulés depuis la question a été posée, mais cette solution fonctionnera pour toute personne ayant des problèmes avec Eclipse et Bid, en particulier sur OS X.

Remplacement gdb avec idbc à l'onglet Debugger Eclipse fonctionne très bien sur Linux.

Si vous êtes sur OS X 10.7+, où il n'y a pas de support pour le compilateur Intel Fortran dans Eclipse, créez un projet makefile, créer une cible avec un Makefile personnalisé, utilisez ifort avec les drapeaux -g -fpic -Wl,-no_pie (ces drapeaux sont nécessaires pour OS X 10.7+), remplacez gdb par idb et cela fonctionnera éventuellement.