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

183 commits

Author SHA1 Message Date
Pawel Piech
a3e5c5fbd5 [246735] - Additional fixes for thread filter logic. 2008-11-13 19:55:09 +00:00
Pawel Piech
de5c1809ac [246735] - [breakpoints] Selecting the breakpoint filter option hangs eclipse 2008-11-13 19:06:25 +00:00
Marc Khouzam
d427849218 [252283] Allow to select a target using 'remote' or 'extended-remote' 2008-11-13 14:41:35 +00:00
Marc Khouzam
d4bf78151a [251101] Allow CLI console to accept MI commands. 2008-10-20 14:37:39 +00:00
Pawel Piech
8b64c7e941 [240092] - Updated comment. 2008-10-14 17:43:58 +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
43fc7fc53e [250328]Adds a map of MemoryCaches so that we have one MemoryCache for each memory context. That way, when dealing with different memory context, we don't mistakenly use the wrong cache.
[245614] Now that we have a memory cache per context, we can clear the memory cache more intelligently, as well as the command cache.
2008-10-11 19:19:52 +00:00
Marc Khouzam
c2468b0c14 [248636] Changes to the memory cache to allow to keep it private. 2008-10-10 20:07:27 +00:00
Marc Khouzam
b849e3cc0c [250308] Missing else statement 2008-10-09 20:24:49 +00:00
Marc Khouzam
4edaf1587b [248636] Adding --thread option to the MI memory commands for GDB 7.0. This change was done in provisional classes to allow for changes, but required the use of a GDBMemory service. 2008-10-09 19:21:24 +00:00
Marc Khouzam
f0a59c85a5 [246773] Moves the class MIRunControlNS to GDBRunControl_7_0_NS which is provisional. This is because we are doing the API freeze and I didn't want to have MIRunControlNS frozen, since this bug will probably remove it. 2008-10-08 20:16:33 +00:00
Marc Khouzam
b1ec6ca223 [250009] The memory service only clears its cache on ContainerSupended/Resumed events. Since these events are no longer used in non-stop mode, the cache was never
cleared.  The cache should be cleared on all Isuspended/IResumed events.

Some minor cleanup was also done.
2008-10-07 18:48:29 +00:00
Marc Khouzam
9920518e26 [245749] Make the IMIProcesses service deal with the threadId to groupId map to allow for other parts of the code to have access to this knowledge. 2008-10-06 17:41:55 +00:00
Marc Khouzam
352badaaf3 [239050] IProcesses interface enhancement for runNewProcess() and debugNewProcess() to also take a Map of attributes to allow for flexibility in starting a new process. 2008-10-03 19:45:58 +00:00
Marc Khouzam
ed0ecf374a [242234] Until GDB officially support multi-process, we need to force the value of the groupId. 2008-10-03 19:43:04 +00:00
Marc Khouzam
1b8c75c4be [249227] Our debug traces should be as close as possible to what is being sent to and received from GDB. This will allow more accurate debugging. 2008-10-03 19:39:26 +00:00
Marc Khouzam
81d3982175 [239050] IProcesses.runNewProcess() and IProcesses.debugNewProcess() should take a context as a parameter to know which command control the command affects. 2008-10-02 18:24:00 +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
5b0f17bcfc [249209] With the new GDB, asynchronous events do not have tokens. So, *running,
*stopped, etc will not have a token.  However, in our traces, we somehow print
the token as -1.  This is the fix.
2008-09-30 20:19:06 +00:00
Marc Khouzam
4edeecf7f8 [249141] Simplify of API. 2008-09-30 15:57:06 +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
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
19db5c51b8 [239050] The method debugNewProcess() should actually return an
IContainerDMContext with the IProcessDMContext as its parent, since the debugger is attached to the process.

We had agreed to keep IRunControl contexts out of IProcesses, so this patch
simply allows debugNewProcess() to return any context (IDMContext.)
2008-09-22 19:43:11 +00:00
Marc Khouzam
460e9feb79 [247362] Pattern got copied wrong in refactoring. 2008-09-19 02:48:56 +00:00
Pawel Piech
c88706272b [247362] - [commands] -thread-info parsing not consistent with existing API. 2008-09-18 22:36:52 +00:00
Marc Khouzam
8805635914 [245749] More efficient removal by using iterator.remove() 2008-09-18 18:21:02 +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
0503f0832a [247356] Added some @Deprecated tags and removed a couple of unnecessary @since tags 2008-09-18 15:20:44 +00:00
Marc Khouzam
517052d1e1 Bug 245749 When detaching from a process, we get a group-exited event but not the thread-exited events, so there was a leak. This fix adds the cleanup when getting the group-exited event. 2008-09-17 17:01:54 +00:00
Pawel Piech
f88b03fbd0 [247356] Use API tooling. 2008-09-15 21:31:37 +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
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
Marc Khouzam
d86c2f8bcb Bug 243461 Removed commented out code. 2008-09-12 17:23:01 +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
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
Pawel Piech
2fe6ba6149 [246763] - [debug view] Debug view missing an update after running the program 2008-09-09 21:33:16 +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
Pawel Piech
67b41fa70e [240997] Changed the return type of IMIDMEvent.getMIEvent() to Object to avoid future compiler errors. 2008-09-08 21:13:42 +00:00
Pawel Piech
1253a42f62 [240997] - Additional fixes for generics related javac compile error. 2008-09-08 19:41:32 +00:00
Pawel Piech
c48cd231b5 [240997] - Additional fixes for generics related javac compile error. 2008-09-08 19:06:43 +00:00
Marc Khouzam
4c7c1efdb3 Bug 245297 All views' refresh should clear their
relevant services cache
2008-08-29 02:31:56 +00:00
Pawel Piech
9384592322 [245297] - [non-stop][cache] Caching may not be possible in non-stop mode 2008-08-27 21:43:59 +00:00
Marc Khouzam
4bd72a218e Bug 245294 The cache is no longer used in MIRunControlNS and can be cleaned up. 2008-08-26 18:33:46 +00:00
Marc Khouzam
5799b5a2a0 Bug 244749 We didn't display the proper process name after a local
attach.  This change fixes this by storing the process id of the inferior after the
attach is completed.
2008-08-20 20:26:39 +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
eba5a5fe78 Bug 244336 Use the new --thread/--frame in a centralized location. Added supportsThreadAndFrameOptions() to MICommand to allow subclasses such as CLICommand and RawCommand to override and rely on -thread-select and -stack-select-frame.
Cleanup of MICommands that had --thread/--stack implemented directly in the class.

MIStackNS is no longer needed, and its only
remaining difference (checking if the thread is suspended) has been merged into
MIStack.
2008-08-18 00:37:33 +00:00
Marc Khouzam
518693304f Small fix to avoid showing an pid of 0 in the debug view when only running one process 2008-08-17 19:14:36 +00:00
Marc Khouzam
c26e38fedc Bug 243632 There was a typo in the code for resuming all threads. 2008-08-14 20:12:51 +00:00
Marc Khouzam
f5c6039248 Bug 244053 Until this bug is resolved properly, it is better to set the default for breakpoint applicability to global. 2008-08-13 19:12:04 +00:00
Pawel Piech
c63f94e691 [243899] Commented out the call to terminate() until the exception it throws can be investigated. 2008-08-12 16:00:12 +00:00