1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

123 commits

Author SHA1 Message Date
Marc Khouzam
cb49d0ed44 Bug 227183
Adds the disconnect action.  It is kept disabled though, because it is still missing events which must be generated when we connect and disconnect.
2008-07-29 17:12:19 +00:00
Marc Khouzam
f1f4d7cb2a Bug 241423
Added a connect action to the debug view.
2008-07-29 00:43:30 +00:00
Marc Khouzam
52be905ca0 Bug 241985 2008-07-27 19:12:00 +00:00
Marc Khouzam
aac8edc5d7 Bug 237556
The public GDB now supports non-stop for linux.
This patch fixes the version number we were using and allows the user to click the non-stop checkbox in the launch.
2008-07-27 18:22:56 +00:00
Marc Khouzam
3b749fe80a Bug 242105
When non-stop mode is requested by the user, the FinalLaunchSequence now issues:

maint set linux-async 1
set breakpoint always-inserted 1
-gdb-set non-stop on

Ultimately, with the official GDB release, only the last command should be needed.
2008-07-27 18:12:42 +00:00
Marc Khouzam
7506ff7d02 Better pattern matching to be able to find a GDB build from the GDB HEAD 2008-07-26 19:05:04 +00:00
Marc Khouzam
1c0440682f Bug 242114
Make the new MIProcessDMC, MIThreadDMC, MIExecutionDMCNS and
IMIProcessDMContext private.
2008-07-25 20:32:08 +00:00
Marc Khouzam
0db5876d62 Bug 239050
This patch adds more usage of the IProcesses service.  I believe the patch is
backwards compatible with our 1.0 release (not with the latest HEAD).  The
patch does the following:

1- cleanup context hierarchy to become:

                                          MIControlDMContext
                                                    |
                                           MIProcessDMC (IProcess)
 MIExecutionGroupDMC __/         |
   (IContainer)                               |
        |                                  MIThreadDMC (IThread)
  MIExecutionDMC  _____/
   (IExecution)

Notice how I put MIControlDMContext at the top.
The create*DMC methods have been updated accordingly.
The constructors of the MI*DMC classes have been updated accordingly.

2- Deprecated GDBRunControl.getThreadData() and GDBRunControl.getProcessData()
and have GdbThreadFilterEditor and ThreadVMNode use IProcesses instead.

3- because of (2) I was able to remove IGDBRunControl and GDBRunControlNS
completely.

4- Made MIProcesses.getExecutionData() fetch the thread data using
CLIInfoThreads as is done (but deprecated) in GDBRunControl.getThreadData()

5- Added a cache and event listeners to MIProcesses to cache CLIInfoThreads.

6- Update MIRunControlEventProcessor and CLIEventProcessor to use
MIControlDMContext as their top context instead of IContainerDMContext
2008-07-25 19:37:00 +00:00
Marc Khouzam
5272715f6d Bug 239028
In my conversion of ContainerVMNode I forgot to add the check to make sure the inferior was still running.  This check is now in GDBProcesses
2008-07-23 19:33:21 +00:00
Marc Khouzam
c1f6612245 Bug 239028
This change adds support for multli-process debugging although we are still using the single-process GDB.
With this fix, our debug session will now be in a multi-process situation, with only one process being debugged.  At this point, there should be no visible changes in the debugging experience.
2008-07-23 17:49:01 +00:00
Francois Chouinard
593106d158 Patch for non-stop multi-threading 2008-07-22 19:19:48 +00:00
Marc Khouzam
2a48c0efbd Bug 240525
Updates CLIAttach and MIThreadSelect.
I didn't update the usage of MIThreadSelect because it required more cleanup than I cared to do at this point.
2008-07-18 15:09:06 +00:00
Marc Khouzam
8b3a47453a Removed a FIXME 2008-07-18 12:48:22 +00:00
Marc Khouzam
65b52f3a07 Bug 239050
Make the FinalLaunchSequence use the IProcesses.getRunningProcesses() call instead of doing the work itself.
2008-07-18 01:13:59 +00:00
Anton Leherbauer
337235a75e 214386: [run control][debug view][source lookup] When stepping fast (holding down F5 key) the IP in editor does not keep up. 2008-07-16 11:02:58 +00:00
Marc Khouzam
9af6a7b237 Bug 239050
Use the generic IDMContext instead of IContainerDMContext because some debuggers may not have a run control service
Replace IThreadDMData.getDebuggingContext() with method getDebuggingContext()
2008-07-15 15:21:24 +00:00
Marc Khouzam
f440765624 Bug 239050
some improvements to the IProcesses interface where needed:

1- getRunningProcesses() should take an IContainerDMContext as a parameter to prepare for multi-core/multi-processor debugging.

2- attachDebuggerToProcess() should return an IContainerDMContext as part of the requestMonitor.  This is because, once a process is attached to, it will then need to have a container context to use the RunControl service.

3- getProcessesBeingDebugged() should take an IContainerDMContext as a parameter to prepare for multi-core/multi-processor debugging.  Also, it should return an array of IContainerDMContexts as part of the requestMonitor;  this is because, processes that are being debugged should have a container context to use the RunControl service.
2008-07-08 13:40:27 +00:00
Marc Khouzam
e3eb35603d Bug 239050
New interface and service to provide access to the OS's process information, manipulation methods, and debugging methods.
2008-07-03 19:05:20 +00:00
Ted Williams
dd61347700 [239153] bump versions on HEAD, 1.0 -> 1.1 2008-07-01 18:03:47 +00:00
Marc Khouzam
00a5eca0ef Bug 238060
To support different version of services, the ShutdownSequence should use the dsf interface name to stop services.
2008-06-24 19:23:22 +00:00
Marc Khouzam
6fc511904f Bug 237798
Added a ServiceFactory to allow for different implementation of the same services, depending on the backend .
2008-06-24 18:41:39 +00:00
Pawel Piech
0bc7b6f932 [238108] - [viewmodel] null pointer access in VM provider classes 2008-06-24 18:13:29 +00:00
Marc Khouzam
35ce4db366 Bug 238143
Bad use of MessageFormat.format
2008-06-23 15:35:12 +00:00
Marc Khouzam
5b5e8f55a2 Bug 237468
Separate the two parts of GdbLaunch.initializeControl to do a cleaner initialization
2008-06-17 13:58:12 +00:00
Marc Khouzam
e3c41f15c5 Bug 237464
MIInferiorProcess.InferiorStartedDMEvent should also be sent in the case where a startup breakpoint is not set.
2008-06-17 13:45:22 +00:00
Marc Khouzam
ce33d6a9cf Bug 229288
The GDB documentation says that sysroot should be disabled when
solib-search-path is used.  This change does this.
2008-06-10 13:21:59 +00:00
Marc Khouzam
a83eb47bd6 Bug 236058
Use of the -environment-cd command as is done in the CDT.
2008-06-06 18:57:24 +00:00
Marc Khouzam
7ac143d107 Bug 235744
Made LaunchUtils its own class.
Updated copyright.
2008-06-06 17:12:20 +00:00
Marc Khouzam
b72312bec3 Bug 235744
Adding the Arguments tab to the DSF Local Launch.  Note that the Remote and Attach launches, do not need this tab.
2008-06-06 15:07:14 +00:00
Marc Khouzam
ff14320b36 Bug 235862
Label DSF-defined debugger extensions as 'dsf' to make sure they are not picked up by the CDT launch configurations.
2008-06-06 14:12:55 +00:00
Marc Khouzam
33ac8da64e Bug 235426
Make the FinalLaunchSequence class easily replaceable for someone that wants to extend the launch
2008-06-03 18:33:34 +00:00
Pawel Piech
d9dc2240b1 Updated copyright statements. 2008-06-02 18:13:23 +00:00
Pawel Piech
68c2b37b32 [234296] - [source lookup] Source lookup open "<unknown>" editor after after launching two multiple duplicate debug sessions. 2008-06-02 16:40:18 +00:00
Marc Khouzam
df5a3a60e0 Bug 233492
Using protocol 'mi' will use the latest mi version available to GDB.  This is somewhat dangerous, as we actually support mi2.  It is safer to specify mi2 as our version.
2008-05-26 13:00:45 +00:00
Marc Khouzam
ac79e652c6 Bug 232357
This patch removes all dependencies to the CDT debug feature.
It copies Extensions that were defined in the CDT to DSF.
I have tested it with an Eclipse that did _not_ have the CDT debug feature, and things seem to work as they should. There was a few files copied from the CDT that may need some cleanup, but I'll leave that for later.
2008-05-22 20:23:15 +00:00
Pawel Piech
a178ac32bc [233381] - [data model] Simplify the GDBControlDMContext.toString() string. 2008-05-22 05:07:16 +00:00
Marc Khouzam
03d512d2ef Bug 232357
The CDT code we re-use uses the CDT constants that I copied
to DSF, but uses them with a CDT prefix.  I had changed that prefix for DSF.  I
put the prefix back so that the constants would match.
2008-05-16 16:53:34 +00:00
Marc Khouzam
1acb4c5777 Bug 232357
Removed all dependencies to org.eclipse.cdt.debug.mi.core.
This consisted in copying constants to IGDBLaunchConfigurationConstants.
2008-05-16 15:45:41 +00:00
Marc Khouzam
02a8fc8a6a Bug 231129
Enhances the launch code to allow for a RemoteAttach as part of the
current Attach launch configuration type.
2008-05-15 19:44:14 +00:00
Randy Rohrbach
def2b2d472 Bugzilla 213629 2008-05-12 18:47:56 +00:00
Pawel Piech
409994f93a [214389] - [source lookup][debug view] After terminating a suspended process, the IP remains in editor. 2008-05-02 22:05:46 +00:00
Marc Khouzam
34baaa437d Bug 228265
Allow a DSF Attach launch without needing cdt.launch
2008-05-02 17:56:46 +00:00
Marc Khouzam
dc95d5a7f7 Bug 228265
Cleanup to have an internal utility class
2008-04-28 19:40:06 +00:00
Marc Khouzam
0eb5614e96 Cleanup of comment 2008-04-25 16:53:33 +00:00
Marc Khouzam
41f3028662 Bug 228265
Update GdbLaunchDelegate to no longer require anything from
org.eclipse.cdt.launch.

Also triggers a build when necessary before launching, as the CDT does.

Also introduces a LaunchMessages class which uses a resourceBundle for
launch messages that has been added as org.eclipse.dd.gdb.internal.provisional.launching.LaunchMessages
2008-04-25 15:20:13 +00:00
Francois Chouinard
7fa8caa54f Fix for bug228308 2008-04-24 15:19:28 +00:00
Marc Khouzam
fe347ce364 Added annotation @ThreadSafeAndProhibitedFromDsfExecutor. 2008-04-22 19:42:07 +00:00
Marc Khouzam
eeb0105c4d A little more cleanup. 2008-04-22 19:28:31 +00:00
Marc Khouzam
945d387170 After the weekly meeting, this cleanup was suggested.
It uses the Future class to extract the data we want.
2008-04-22 19:25:58 +00:00
Marc Khouzam
241d941438 Bug 226931
Support for Restart button.
The steps to restarting the inferior are the following:
1- Create a new PTY and tell GDB to use it
2- Create a new MIInferiorProcess object which uses the new PTY
2.5- Have the CLIEventProcessor use the new MIInferiorProcess
3- Restart the inferior using -exec-run
4- Remove the previous inferior Process from the launch
5- Add the new inferior Process to the launch (which will trigger the use of
the new PTY streams)

This change supports the Restart function, including the above steps to perform the proper cleanup.  The code to start the inferior has been extracted from the FinalLaunchSequence and put in GDBControl to allow sharing between start and restart.  Also, the code to create the CLI and inferior process objects has been extracted from the GdbLaunchDelegate and put in GDBControl to to allow sharing between start and restart.

There only interface change that is not in a provisional interface is the
addition of resetInferior() to CLIEventprocessor which is backwards compatible.
2008-04-21 18:08:53 +00:00