Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] GDB, Terminate, and project refresh(es)

In org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/ui/LaunchUIPlugin.java there is a function called handleDebugEvents. If the event is a TERMINATE for a Process-like object, it looks like it does a refresh of the project associated with the process being terminated.
 
When a simple project like hello is started with run->debug using GDB and then a "Terminate and Relaunch" action is chosen on this process, there appear to be two TERMINATE events created for Process-like objects. These two events are created at:
 
RuntimeProcess.fireTerminateEvent
GDBProcess.fireTerminateEvent
 
I was wondering about two things.
 
1. Why is a project refreshed when a debug Terminate action is chosen?
2. Why is the project refreshed twice?
 
Thanks.
 
John Pruitt
Wind River Systems
630-971-6430

Back to the top