Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 146725 - Erroneous error message during GDB startup
Summary: Erroneous error message during GDB startup
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 3.1   Edit
Hardware: Other Linux
: P3 minor (vote)
Target Milestone: 3.1.1   Edit
Assignee: Norbert Plött CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-12 19:04 EDT by Corey Ashford CLA
Modified: 2014-01-29 16:03 EST (History)
2 users (show)

See Also:


Attachments
Suppress the "new-console" command on Linux. (7.58 KB, patch)
2006-08-22 05:35 EDT, Nobody - feel free to take it CLA
cdtdoug: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Corey Ashford CLA 2006-06-12 19:04:38 EDT
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.
Comment 1 Nobody - feel free to take it CLA 2006-06-13 13:18:42 EDT
The Linux command factory should suppress this command.
Comment 2 Nobody - feel free to take it CLA 2006-08-22 05:35:58 EDT
Created attachment 48363 [details]
Suppress the "new-console" command on Linux.

Doug, please, check if it works on Linux and apply it. Thank you.
Comment 3 Doug Schaefer CLA 2006-08-22 13:30:28 EDT
Norbert mentioned he'd look at it.
Comment 4 Norbert Plött CLA 2006-08-23 02:49:15 EDT
I have verified that the error message goes away after the patch.
Patch applied.