Error Creating Session Omnet
från GoogleLogga inDolda fältSök efter grupper eller meddelanden
från GoogleLogga inDolda fältSök efter grupper eller meddelanden
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn http://stackoverflow.com/questions/28357136/eclipse-cdt-cannot-debug-using-gdb-on-mac more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags https://www.eclipse.org/forums/index.php/t/51927/ Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Eclipse CDT cannot debug using gdb on Mac up vote 6 down vote favorite 2 I have a C++ project imported to Eclipse CDT. I error creating can build and run the project using Makefile and argument settings. However, when I tried to add a debug point and run "debug as local c/c++ application", it throws me an error of "Launching projectName" has encountered a problem. Error with command gdb --version By expanding the Details, it gives: Error with command: gdb --version Cannot run program "gdb": Unknown reason I installed the gdb by Macports before. If I enter command ggdb it returns the error creating session version info. If I type which ggdb, it gives /opt/local/bin/ggdb. I tried to add "PATH" to debug configuration -> environment variables and give the path value to it, but it did not work. How should I set the path and link the path please? And what should the variable name be. The gdb version on my machine is GNU gdb (GDB) 7.7.1 Added: I looked up which ggdb and used the link James provided to change gdb debugger to browse to that path. But it did not work still. Thanks. c++ osx debugging eclipse-cdt share|improve this question edited Feb 6 '15 at 17:19 asked Feb 6 '15 at 1:28 user2751691 1431315 What version of gdb are you using? –James Moore Feb 6 '15 at 1:35 @JamesMoore : GNU gdb (GDB) 7.7.1 Thank you. –user2751691 Feb 6 '15 at 16:47 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote accepted It looks like Eclipse is using the default gdb that was on the system before you installed ggdb from macports. This link shows how to change the debugger settings, change it to ggdb which is the name Macport uses. After installing ggdb from Macports you will have to sign it with a certificate so it will be allowed to control other processes, take a look at "Certifyin
Things LocationTech Long-Term Support PolarSys Science OpenMDM More Community Marketplace Events Planet Eclipse Newsletter Videos Participate Report a Bug Forums Mailing Lists Wiki IRC How to Contribute Working Groups Automotive Internet of Things LocationTech Long-Term Support PolarSys Science OpenMDM Toggle navigation Home Projects Forums Eclipse Community Forums Forum Search: Search Help Register Login Home Home» Language IDEs» C / C++ IDE (CDT)» Error creating session Show: Today's Messages :: Show Polls :: Message Navigator Error creating session [message #165961] Thu, 16 March 2006 18:14 Eclipse User Originally posted by: locluu.hotmail.com My hello world c program build and run. But when I invoked the debugger, I got this error: Error creating session: Exec error: Launching failed. Use eclipse 3.1.2, CDT 3.0.2 Thanks for your help. Loc Report message to a moderator Re: Error creating session [message #165985 is a reply to message #165961] Fri, 17 March 2006 06:45 Norbert PlöttMessages: 233Registered: July 2009 Senior Member Hi Loc, looks like gdb (or whatever external debugger you are using) is not on your PATH. If you are working on Windows the external debugger must be start-able from a Windows (!) command prompt. Helpful? Norbert Report message to a moderator Re: Error creating session [message #165999 is a reply to message #165985] Fri, 17 March 2006 14:56 Eclipse User Originally posted by: locluu.hotmail.com I use the cygwin tool chain (gcc, gdb, make, gnu linker, etc...) To reiterate the program built and ran. I did added the c:\cygwin\bin to the path variable. I am puzzling why Eclipse cannot find gdb. It found gcc, make, linker, etc... Loc Report message to a moderator Re: Error creating session [message #166007 is a reply to message #165999] Fri, 17 March 2006 16:28 Eclipse User Originally posted by: mitchell.fang.gmail.com Why don't you just tell Eclipse to use your cygwin debugger? In the Run->Debug.. local application configuration you can set Eclipse to use what debugger you want to use. Mitchell Loc wrote: > > I use the cygwin tool chain (gcc, gdb, make, gnu linker, etc...) To > reite