Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Remote debugging a synchronized project
Remote debugging a synchronized project [message #848656] Wed, 18 April 2012 09:07 Go to next message
Eclipse UserFriend
I have a synchronized C/C++ project in my (Windows) workspace, which I debug it using gdbserver according to the instructions I posted last week.

If I clear the project field in the debug configuration, so it is blank, then I can debug.
If I put my project as the project for the debug configuration nothing works.


Investigating this by running the CDT in the debugger, I find that the call to "gdb --version" doesn't return anything if the debug configuration has a project. However, if I set envp to null before the exec0 native method is called (like it is if the no project is selected), then "gdb --version" returns proper information.

Does anyone else see this? Should I report it as a bug?

Mike
Re: Remote debugging a synchronized project [message #848729 is a reply to message #848656] Wed, 18 April 2012 10:16 Go to previous messageGo to next message
Eclipse UserFriend
The environment specified by the project is used when calling "gdb --version". Maybe your project is not configured properly?

You can open a bug if you think CDT is doing something wrong.

Marc
Re: Remote debugging a synchronized project [message #848756 is a reply to message #848729] Wed, 18 April 2012 10:46 Go to previous messageGo to next message
Eclipse UserFriend
Marc Khouzam wrote on Wed, 18 April 2012 10:16
The environment specified by the project is used when calling "gdb --version". Maybe your project is not configured properly?

You can open a bug if you think CDT is doing something wrong.

Marc

It's possible my environment is not configured properly, but if so, this is the only manifestation I've seen.

In the debugger, I changed all of the keys in envp to be irrelevant (e.g., changing target=>xtarget). Interestingly, the gdb --version still failed to return data. However, changing envp to null does get around the problem.

Something seems weird...
Re: Remote debugging a synchronized project [message #848759 is a reply to message #848756] Wed, 18 April 2012 10:49 Go to previous message
Eclipse UserFriend
Write a bug and post how to reproduce it. I'll try it.

Marc
Previous Topic:Help CDT parser
Next Topic:C++11 (0x)?
Goto Forum:
  


Current Time: Thu Jun 19 19:07:17 EDT 2025

Powered by FUDForum. Page generated in 0.04137 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top