Community
Participate
Working Groups
During initialization of debugging a C program under Eclipse, startLocalGDBSession() in org.eclipse.cdt.debug.mi.core/osrc/org/eclipse/cdt/debug/mi/core/GDBCDIDebugger2 sends a "set new-console" command to GDB, resulting in the following error message on the GDB console on Linux: No symbol "new" in current context. Looking in the documentation for GDB, I see that this command is supported only on Win32. The java code correctly handles the exception generated by ignoring it, but the message still is displayed in the console and is misleading. I would suggest that if there's a way to tell that if the target GDB is running on Windows, it should be used as the predicate to run this code, rather than running it in all cases and trying to compensate for it not working on every platform except Win32.
The Linux command factory should suppress this command.
Created attachment 48363 [details] Suppress the "new-console" command on Linux. Doug, please, check if it works on Linux and apply it. Thank you.
Norbert mentioned he'd look at it.
I have verified that the error message goes away after the patch. Patch applied.