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

102 commits

Author SHA1 Message Date
Pawel Piech
adc7da00a3 [251452] - Enabled the "Refresh All" action for the GDB debugger. 2008-10-28 20:18:37 +00:00
Marc Khouzam
cd35fa70ba [240092] Move getSessionType() and getIsAttachSession() from IGDBControl to IGDBBackend. Also, remove IGDBControl.getExecutablePath() since IGDBBackend.getProgramPath() did the same thing. 2008-10-20 14:27:20 +00:00
Pawel Piech
d18ba19313 [240092] - [launch] The way to launch & configure GDB process in DSF is not customizable 2008-10-14 17:31:52 +00:00
Marc Khouzam
a9b0d0a49a [249227] Making "verbose" option invisible until it is fully ready 2008-10-10 14:36:04 +00:00
Marc Khouzam
405b19f8df [249227] we are not quite ready with the "verbose console feature", but since I had the changes needed to add the option in the launch, I figure I'd commit them. Once we have the feature ready, we'll just have to hook them to the launch option. 2008-10-06 18:53:15 +00:00
Marc Khouzam
546864ed77 [243586] Return an error in the case thread info cannot be found, but have the ThreadVMNode create the label without that information. 2008-10-02 14:01:22 +00:00
Marc Khouzam
51d56390ca [202353] Clean up the launch features we don't need as per discussion at the CDT summit:
1- "Advanced..." has been removed
2- "Stop on shared library events" has been removed
2008-09-30 14:09:59 +00:00
Marc Khouzam
98ff95d570 [202353] Support for the launch to tell GDB to stop on library events (usually load/unload.) 2008-09-29 15:16:45 +00:00
Marc Khouzam
d89fe5b50d [248942] The .gdbinit box in the launch has a warning following it. The non-stop
checkbox was added in between the .gdbinit box and its corresponding warning.
Instead, the warning should remain right under its box.
2008-09-29 14:10:55 +00:00
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
Pawel Piech
d9cb3f8251 [243615] - Removed use of ICommandControlInitializedDMEvent to update Debug view. 2008-09-25 13:28:41 +00:00
Marc Khouzam
0503f0832a [247356] Added some @Deprecated tags and removed a couple of unnecessary @since tags 2008-09-18 15:20:44 +00:00
Pawel Piech
f88b03fbd0 [247356] Use API tooling. 2008-09-15 21:31:37 +00:00
Marc Khouzam
2552eacead Bug 247161 According to a GDB maintainer, GDB will not send an ^error after a ^done. Therefore we can remove this case and cleanup. 2008-09-15 17:48:40 +00:00
Pawel Piech
1d08e1c884 [247010] - Added a guard to avoid re-creating an adapter session after it's been disposed. 2008-09-12 20:40:16 +00:00
Pawel Piech
66960d32ba [247010] - Rolled back the check for session.isActive() before returning the adapter set. 2008-09-12 20:20:51 +00:00
Marc Khouzam
8968ec763d Bug 246737 Catching the RejectedExecutionException in GdbConnectCommand in case the session is shutdown. 2008-09-12 17:31:49 +00:00
Marc Khouzam
fbb2135214 Bug 242234 creates GDBControl_7_0, CLIEventProcessor_7_0 and
MIRunControlEventProcessor_7_0.  It also reverts CLIEventProcessor and
MIRunControlEventProcessor to the logic needed for a GDB pre 7.0 (the way we released it in 1.0)

MIThreadExited and MIThreadCreated events are now only issued once.

Running events are also issued only once, however, it needed a little
gymnastics to keep the same functionality.  Before 7.0, what we did was trigger the event once a continue, step or next command was executed; this allowed to also know the type of command that caused the running event.  With the new MI event "*running", we don't know the type of the command that caused it.

What I did was, like before, when a continue, step, next command is issued, I
store the type of the command, and once the *running event occurs, I use that
type.  I do this using a global MIRunControlEventProcessor_7_0.fLastRunningCmdType

When issuing such a continue, etc command through the CLI, we still need to somehow remember the type of the command.  This is under discussion in the bug.
2008-09-11 19:36:56 +00:00
Anton Leherbauer
a980785a88 Bug 247010 - RejectedExecutionException when launch is removed 2008-09-11 13:14:40 +00:00
Anton Leherbauer
41c8b18397 Bug 241789 - [view model] RejectedExecutionException during shutdown of Eclipse while a debug session is active 2008-09-11 07:25:36 +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
168df99385 Bug 242234 Replacing AbstractMIControl with ICommandControlService; and also replace MIControlDMContext with ICommandControlDMContext 2008-09-09 17:55:44 +00:00
Marc Khouzam
4c7c1efdb3 Bug 245297 All views' refresh should clear their
relevant services cache
2008-08-29 02:31:56 +00:00
Ted Williams
257254880f [239390] [update policy] Update Scopes -- update only visible, update all elements 2008-08-27 22:26:55 +00:00
Marc Khouzam
587c7cb6cc Bug 244567 makes the project optional. The bug I was attributing to the platform, was, as Pawel kindly pointed out, was actually part of our CMainTab class. I have fixed this. 2008-08-21 14:02:54 +00:00
Marc Khouzam
0ea73d63b0 Bug 244567 Make the executable optional in the Main launch tab, when doing an attach session.
The project is still mandatory for two reasons:
1- platform does not allow an empty project
2- Source lookup was not able to find the code with an empty project; since the platform did not allow for an empty project anyway, I did not investigate the
source lookup issue.
2008-08-20 19:28:14 +00:00
Marc Khouzam
69293447e9 Bug 244467 Add a checkbox to specify if the solib-search-path should
be used to debug processes; in such a case, we don't send the 'file' command.
2008-08-18 19:40:56 +00:00
Pawel Piech
1fbfd51fac [243611] - [commands] Add an ICommandControlService interface. 2008-08-08 17:42:23 +00:00
Marc Khouzam
55a4d47017 Bug 240507
Adds a GDBMultiProcesses service which uses the new GDB -list-thread-group commands.  Also adds some support for =thread-group-created/exited events.

Since the public GDB is not ready yet, I have commented out the instantiation of this new service, for now.
2008-08-06 13:39:49 +00:00
Marc Khouzam
0d74c407e4 Bug 243216
MIGDBExitedEvent was listened for but never issued.   Replaced with BackendExitedEvent
2008-08-05 19:15:02 +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
133ac134ee Bug 241844
Adds the started and exited events when attaching and detaching from a process.
2008-07-31 02:47:36 +00:00
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
55d784008d This change is needed to read the plugin.properties file for strings. 2008-07-29 15:36:15 +00:00
Marc Khouzam
528ee4cdd5 Bug 241423
proper way to prevent enablement and visibility of an action before the plugin is loaded
2008-07-29 15:04:12 +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
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
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
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
Ted Williams
dd61347700 [239153] bump versions on HEAD, 1.0 -> 1.1 2008-07-01 18:03:47 +00:00
Pawel Piech
0bc7b6f932 [238108] - [viewmodel] null pointer access in VM provider classes 2008-06-24 18:13:29 +00:00
Pawel Piech
1e0365550e [202649] - [update policy][debug view] Add manual refresh mode for thread list in debug view. 2008-06-17 20:46:30 +00:00
Pawel Piech
ee9c51a046 [236765] - [pda] Add multi-threading capability to PDA 2008-06-16 18:30:54 +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