Bug 516380 - AssertionError in GdbCliConsoleManager
Summary: AssertionError in GdbCliConsoleManager
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 9.2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-09 16:48 EDT by Stephan Wahlbrink CLA
Modified: 2020-09-04 15:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Wahlbrink CLA 2017-05-09 16:48:40 EDT
When terminating a non-GDB console, GdbCliConsoleManager throws an AssertionError:

java.lang.AssertionError
	at org.eclipse.cdt.dsf.gdb.internal.ui.console.GdbCliConsoleManager.stopConsole(GdbCliConsoleManager.java:103)
	at org.eclipse.cdt.dsf.gdb.internal.ui.console.GdbCliConsoleManager.launchesTerminated(GdbCliConsoleManager.java:81)
	at org.eclipse.debug.internal.core.LaunchManager$LaunchesNotifier.run(LaunchManager.java:314)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.debug.internal.core.LaunchManager$LaunchesNotifier.notify(LaunchManager.java:266)
	at org.eclipse.debug.internal.core.LaunchManager.fireUpdate(LaunchManager.java:1054)
	at org.eclipse.debug.core.Launch.fireTerminate(Launch.java:406)
	at org.eclipse.debug.core.Launch.handleDebugEvents(Launch.java:578)
	at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1151)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1185)
	at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:441)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

There are also non-GDB consoles, so the variable console in GdbCliConsoleManager.stopConsole can be null.