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

70 commits

Author SHA1 Message Date
Francois Chouinard
ac64a3cfd7 Patch for bug 232415 2008-05-22 20:04:22 +00:00
Pawel Piech
a178ac32bc [233381] - [data model] Simplify the GDBControlDMContext.toString() string. 2008-05-22 05:07:16 +00:00
Pawel Piech
6f773242c6 [232573] - [variables] Hanging variables view 2008-05-22 04:54:37 +00:00
Marc Khouzam
09d00efe1e Bug 232846
- in queueCommand() in the case where fRxCommands.size() <= 3 (final else
case), we should dequeue the first element from fCommandQueue since we don't have any guarantee the queue is empty.

- when dequeuing at the end of processMIOutput() we should check if the threadId and stackFrameId should be changed, just like we do in queue command

- make the call to processNextQueueCommand() from queueCommand() inside a runnable, so that command listeners have a chance to adjust the commands they queued.
2008-05-21 23:00:22 +00:00
Marc Khouzam
0d101034e2 Bug 232517
Fix toString() method
2008-05-16 15:13:00 +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
c4137b6be5 [232177] - [event] Invalid state used 2008-05-15 02:41:54 +00:00
Marc Khouzam
193f47ef69 Bug 231655
Race condition for invalid expressions
2008-05-14 20:03:00 +00:00
Pawel Piech
b634edc1e1 [197844] Cleaned up warnings. 2008-05-14 05:07:09 +00:00
Francois Chouinard
b9fa4f4ff2 Renamed a couple of private methods. 2008-05-13 20:54:33 +00:00
Marc Khouzam
88119eb1ea Bug 223386
Improve the variableObjectId to use contexts for comparison.  The value of this approach is that it is future proof no matter how many levels of container contexts are used later on.
2008-05-13 19:59:14 +00:00
Pawel Piech
1de4e83823 [231686] - [commands] AbstractMIControl.stopCommandProcessing() can throw exceptions if called twice. 2008-05-12 22:36:29 +00:00
Pawel Piech
9bff408ec5 [231347] - [commands] The TX thread in the command control never terminates 2008-05-09 18:01:44 +00:00
Marc Khouzam
8a84fa9f72 Bug 219179
Properly deal with children of pointers when -var-info-path-expression is not available
2008-05-09 15:46:38 +00:00
Francois Chouinard
ff5a0f3650 Patch for bug 230804 2008-05-08 20:52:29 +00:00
Marc Khouzam
0a3dfda3fd Bug 230434
When stepping a stack frame that is not the top level, GDB switches to the top level frame first.  Therefore, when we get a stopped event, we are not sure what the frame is, in GDB, so we should reset it internally.
2008-05-08 13:31:45 +00:00
Pawel Piech
05a1a3763b [228062] - [run control][disassembly] Integrate DSF with CDT's toggle instruction step mode action. 2008-05-07 17:40:51 +00:00
Pawel Piech
6d882f8fb7 [214384] - [debug view] When a program runs to completion, the debug target still shows it as running. 2008-05-02 23:44:27 +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
f81f76b7a0 Small cleanup 2008-05-02 12:01:08 +00:00
Marc Khouzam
2546c72207 Bug 223386
Support for multiple control context in MIVariableManager.
2008-05-02 02:10:17 +00:00
Francois Chouinard
159f480771 Patch for bugs 229486 and 229491 2008-04-30 20:01:31 +00:00
Francois Chouinard
cc153db8ba Implementation of the DSF Disassembly View (bug227743) 2008-04-29 21:26:59 +00:00
Marc Khouzam
5474268d37 Bug 223076
Generate tokenId when needed and printout debug traces when MI command is actually sent.
2008-04-29 20:09:48 +00:00
Francois Chouinard
bf9f5fbabd Fix for Bug228706 2008-04-24 17:40:22 +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
8bced60c03 Bug 223364
ProcessCommandQueued should not be called when de-queuing
2008-04-18 20:00:25 +00:00
Marc Khouzam
2c82390e87 Bug 202343
Launch for for Attaching to a running
2008-04-15 16:38:17 +00:00
Marc Khouzam
178f065901 Bug 212916
Support for redirecting the inferior's input/output to a terminal.
2008-04-12 01:16:56 +00:00
Marc Khouzam
ac09808486 Bug 226691
We only support GDB 6.6 and higher, from what I can see,
-interpreter-exec is always available (I tried with mi1 m2 and m3 on GDB 6.6).
Therefore, we can simplify the launch by removing the
CheckInterpreterConsoleStep.
2008-04-12 00:50:15 +00:00
Marc Khouzam
8422bf48dd Bug 223076
Debug traces were printed for out-of-band events when they were processed (processEvent()) and again when the next ResultRecord is received (processCommandDone()).

This fix only prints the ResultRecord in the processCommandDone() method.
2008-04-10 14:46:02 +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
Randy Rohrbach
d25c62e763 Bugzilla 225606 2008-04-05 02:14:07 +00:00
Pawel Piech
6947c2f41b [225388] Added a CommandHandle.toString() implementation. 2008-04-02 17:56:05 +00:00
Marc Khouzam
f8934d49d7 Comment no longer valid after fix of Bug 206932 2008-04-02 15:18:36 +00:00
Pawel Piech
b76951e59e [217020] Refactored ICommandControl interface to use a token to identify queued commands. 2008-04-02 04:09:35 +00:00
Pawel Piech
706d77cc0c [206932] Made ICommandControl independent from the IDsfService class. 2008-04-01 20:46:11 +00:00
Marc Khouzam
4fe0578953 Bug 222766
Adds the use of solib-search-path as done in the CDT (by filling the Shared Library subtab in the debugger tab of the launch).
Also adds the use of auto-solib-add as in the CDT.
2008-04-01 18:23:01 +00:00
Marc Khouzam
bb57cba31b Bug 202339 comment #3
Currently, DSF launches gdb with a <file> argument, which tells gdb where the
executable file and the symbols are.  This is potentially restrictive to
someone wanting to extend gdb.

This change removes the <file> argument to gdb and uses -file-exec-file and
-file-symbol-file commands to set this parameter in the FinalLaunchSequence.
This has the exact same effect, but allows to easily override these commands by
using a tailored FinalLaunchSequence.
2008-03-31 14:33:32 +00:00
Pawel Piech
af4f8c99e1 [202510] Changed the IRegisters.getBitFields() method to take a generic IDMContext argument. 2008-03-28 18:21:36 +00:00
Pawel Piech
d5f39af5a8 [224435] Changed the IContainerSuspendedDMEvent/IContainerResumedEvent.getTriggeringContext() to return an array instead of a single context. 2008-03-28 18:05:54 +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
Pawel Piech
506cc50df7 [223969] Fixed a thread-handling problem introduced by fix. 2008-03-27 21:33:59 +00:00
Pawel Piech
4f71f37d15 [159046] Got rid of IStack.isStackAvailable(). 2008-03-27 21:20:10 +00:00
Pawel Piech
23cf575f17 [219031] Added the StepType parameter to IRunControl.canStep(). 2008-03-27 20:53:39 +00:00
Pawel Piech
5ac30e181b [223969] Extended CommanCache to track multiple contexts as "available". 2008-03-27 19:07:07 +00:00
Marc Khouzam
9fd5e0d9eb Preliminary solution for Bug 223154.
We increase the size of PipedInputBuffer from 1K to 1M
but using LargePipedInputBuffer
2008-03-27 16:57:01 +00:00
Pawel Piech
0e806a078c [179293] Coverted remaining RequestMonitor.getStatus().isOK() calls into RequestMonitor.isSuccess(). 2008-03-27 16:29:32 +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