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

50 commits

Author SHA1 Message Date
Marc Khouzam
7d97e3d053 [241317] Moved contexts interfaces from GDBControlDMContext to GDBContainerDMC.
[244385] Fixed all GDB JUnit tests (except the one in breakpoints that we know still fails with GDB 6.8)
2008-09-25 17:52:54 +00:00
Marc Khouzam
88969aa247 [247345] Name changes:
- IMIExecutionGroupDMContext to IMIContainerDMContext
- MIExecutionGroupDMC to MIContainerDMC
- createExecutionGroupContext to createContainerContext
- ExecutionGroupStartedDMEvent to ContainerStartedDMEvent
- ExecutionGroupExitedDMEvent to ContainerExitedDMEvent
- makeExecutionGroupDMCs to makeContainerDMCs
- bunch of local variables groupDmc to containerDmc
2008-09-18 17:58:29 +00:00
Marc Khouzam
0fb7dec635 Bug 245749 In the end, we decided to isolate the threadId to groupId map into the eventProcessor, and not crowd the IMIProcesses interface. 2008-09-15 19:42:12 +00:00
Marc Khouzam
31aeb7bca9 Bug 245749 Avoid race condition by filling thread to group map of IMIProcesses service directly using new addThreadId() and removeThreadId() methods 2008-09-12 15:17:54 +00:00
Marc Khouzam
57fde8187e Bug 242234 The JUnit tests made use of GDBControl in a hard-coded fashion. This patch replaces uses by ICommandControlService or IGDBControl 2008-09-10 18:49:32 +00:00
Marc Khouzam
56adb58e42 Bug 242234 To be able to version the GDBControl service, we cannot make direct reference to the class GDBControl. That class contains a bunch of public methods however. What I did was to brute-force include all these methods in a new interface IGDBControl. I have then replaced every reference to GDBControl with IGDBControl.
Also, I have moved SessionType out of GDBControl and into its own class.
2008-09-09 18:58:09 +00:00
Marc Khouzam
bd90222c77 Bug 244385 Fixes to some tests that were failing. 2008-08-25 19:38:20 +00:00
Marc Khouzam
1516391033 Bug 244385 Fixes all the tests except the Memory tests.
The problem was actually that the tests were not using the proper context when
querying the services.
2008-08-18 17:37:18 +00:00
Marc Khouzam
c227d7fbf1 Bug 239050
More use of IProcesses.  In the weekly meeting, we had agreed that the RunControl service would make use of IProcesses to list executionContext.  To do this, it is the IProcesses service that will now create the MIExecutionDMC, which is newly declared in MIProcesses.  Doing this I was able to get rid of IMIRunControl, and I introduced IMIProcesses.

Also, we agreed that all RunControl use of IProcesses should be kept out of MIRunControl and put only in GDBRunControl.  This is because other backends using MI will probably need a more sophisticated Process service.  I still have to move the use of IProcesses out of MIRunControlNS

I also cleaned up the RunControl and GDBProcesses unit tests.

I also started spreading the use of a String as a ThreadId, while keeping things backwards compatible.
2008-08-02 01:15:51 +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
Francois Chouinard
593106d158 Patch for non-stop multi-threading 2008-07-22 19:19:48 +00:00
Marc Khouzam
255b92bfbd Bug 240556
If no frame context is provided in an expression, but an execution (thread) is present, then we define the expression to belong to the top-most frame of that thread.
2008-07-16 19:46:15 +00:00
Marc Khouzam
2100733244 Bug 240380
Add the missing DsfServicesTracker.dispose() calls
2008-07-11 13:32:13 +00:00
Ted Williams
dd61347700 [239153] bump versions on HEAD, 1.0 -> 1.1 2008-07-01 18:03:47 +00:00
Marc Khouzam
18e02c69ae Bug 238445
The Register unit tests made calls to createExecutionContext outside the
executor.  This change fixes this and also one register test that didn't do what
it was meant to do.
2008-06-25 17:57:45 +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
Pawel Piech
884e607aab [236321] - Removed the trailing comma in the other AllTests suite. 2008-06-17 16:16:19 +00:00
Marc Khouzam
faf0a4dea3 Bug 237472
When setting ATTR_WORKING_DIRECTORY in the launch (which was ignored before Bug 236058), we must now use an absolute path.  The ATTR_WORKING_DIRECTORY was not actually used for the Breakpoint tests, so I removed it.
2008-06-17 14:41:04 +00:00
Marc Khouzam
8a6efaae63 Bug 237468
Update JUnit tests to use the new initialize of GdbLaunch
2008-06-17 14:12:02 +00:00
Pawel Piech
232e000b0f [236321] - org.eclipse.dd.tests.gdb/src/org/eclipse/dd/mi/service/command/commands/AllTests.java:29: illegal start of expression 2008-06-16 21:42:56 +00:00
Pawel Piech
cf6a213b68 [237351] - [resgisters][tests] Registers service unit tests all fail. 2008-06-16 20:24:31 +00:00
Francois Chouinard
5b3c5c8a19 Complement for bug234289 (JUnit) 2008-06-09 17:18:50 +00:00
Marc Khouzam
35da429086 Bug 232357
Part of removing dependencies from cdt launching
2008-05-21 23:01:14 +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
Pawel Piech
d773c86420 Updated the about files. 2008-05-14 17:39:11 +00:00
Francois Chouinard
ff5a0f3650 Patch for bug 230804 2008-05-08 20:52:29 +00:00
Francois Chouinard
159f480771 Patch for bugs 229486 and 229491 2008-04-30 20:01:31 +00:00
Marc Khouzam
b3bd94ab70 Bug 228265
Removed dependencies to org.eclipse.cdt.launch from org.eclipse.dd.gdb.tests
Also cleanup of launch of JUnit tests.
2008-04-25 16:48:31 +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
Marc Khouzam
4093756b37 Bug 226039
Read the gdbinit file as specified by the user.  It does not specify at the command line as the CDT does it, but instead sources it as a GDB command.  I believe this allows for easier specialization of the launch.
2008-04-10 14:16:51 +00:00
Marc Khouzam
cc8dc92899 Fix to the MIRunControl test. 2008-04-07 17:32:19 +00:00
Marc Khouzam
624f00aa98 Compilation fix after changes to DsfMemoryBlockRetrieval. 2008-04-01 15:43:38 +00:00
Pawel Piech
deabab9f21 [216803] Removed the getName() methos from Data Model contexts declared in IRegisters service interface. 2008-03-31 17:00:28 +00:00
Marc Khouzam
76a4659367 Give a way for the JUnit tests to specify which GDB to use. 2008-03-31 14:36:20 +00:00
Marc Khouzam
72792685ee Fixing typo in Assert 2008-03-28 18:39:04 +00:00
Pawel Piech
f740036430 [224677] Adjusted tests to account for new launch sequence. 2008-03-28 16:58:47 +00:00
Marc Khouzam
7b062fd957 Bug 224485
Moved the packages org.eclipse.dd.gdb.* to
org.eclipse.dd.gdb.internal.provisional.*
since it's expected that these classes are likely to need substantial
changes in not too distant future.
2008-03-28 15:42:24 +00:00
Marc Khouzam
d571b6e48a Fix for the JUnit test due to Bug 223969.
The JUnit launch now re-uses (without any changes) the standard DSF launch sequence.  The problem then became that the tests would start too fast, before the suspend event was received.  To address this, I added a wait for the Suspend event in the BaseTestCase.baseBeforeMethod() which runs before every test.
2008-03-28 15:18:45 +00:00
Pawel Piech
c50257d07d [224434] Changed the context used in IRunControl.IStartedDMEvent and IRunControl.IExitedDMEvent events. 2008-03-27 22:09:11 +00:00
Marc Khouzam
8c8a9fddff Bug 221505
Moves the code out of org.eclipse.dd.gdb.launch.ui into
org.eclipse.dd.gdb.ui to allow people to extend the classes without taking in the extensions defined by org.eclipse.dd.gdb.launch.ui
2008-03-27 18:13:55 +00:00
Marc Khouzam
89c5e765ba Bug 221505
The point of having an org.eclipse.dd.gdb.launch plugin was to allow other people to ignore this plugin and not have the standard DSF launches appear.

However, the DSF launch classes can still be useful to those people as they can be extended.  Therefore, the launch code should not be in org.eclipse.dd.gdb.launch, but put back in org.ecipse.dd.gdb
2008-03-27 17:35:50 +00:00
Pawel Piech
26ae2918f0 [179293] Refactor the handle*() methods of the RequestMoniotr. 2008-03-27 02:40:19 +00:00
Pawel Piech
03b5f689a4 [223774] Moved status error codes from IDsfService interface into IDsfStatusConstants interface. 2008-03-25 20:41:20 +00:00
Marc Khouzam
391048a4f0 Launch should not be visible to the user. 2008-03-23 14:36:46 +00:00
Marc Khouzam
63a5c79e44 Separation of launch logic.
These changes are necessary to start using the two new plugins:
org.eclipse.dd.gdb.launch
org.eclipse.dd.gdb.launch.ui
2008-03-10 19:57:43 +00:00
Francois Chouinard
8868398cc9 Committing patches for bugs 159946 (disassembly) and 214546 (memory monitor persistence). 2008-03-01 20:21:08 +00:00
Pawel Piech
07647b57a3 [219920] Added mechanism for adjusting command parameter formatting. 2008-02-28 16:08:09 +00:00
Francois Chouinard
895d9764ca Fix for bug 218657. 2008-02-18 22:57:54 +00:00
Pawel Piech
fdea880631 [179102] Re-aligned plugin and package names to confirm with Eclipse policy. 2008-02-13 20:57:46 +00:00