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

31 commits

Author SHA1 Message Date
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
Randy Rohrbach
a6a82b3a2c Bugzilla 227629. 2008-04-17 19:22:14 +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
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
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
Pawel Piech
5f378a1751 [223969] Extended DsfMemoryBlockRetrieval to support multiple contexts. 2008-04-01 03:39:29 +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
e42dcea7a8 [158610] Converted the IRunControl.can*() methods to be asynchronous. 2008-03-28 17:42:49 +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
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
42eb4e884e Bug 223684
Removes the dependency by moving IGDBLaunchConfigurationContants from the org.eclipse.dd.gdb.launch plugin to org.eclipse.dd.gdb
2008-03-25 17:46:32 +00:00
Marc Khouzam
bff2486202 Bug 223200
Removal of commandCache
2008-03-20 18:03:01 +00:00
Marc Khouzam
3cc3d633da Bug 223196
Removing the guard since it was wrong (== instead of !=) and it not useful
2008-03-20 13:00:11 +00:00
Marc Khouzam
681323f895 Bug 202339.
GDB Remote Launch connecting to a GDB Server works on Linux.
Serial connection has not been tested yet.
2008-03-12 17:58:17 +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
Marc Khouzam
fe730bbef7 Fix for bug 219193
If StopAtMain is not selected, -exec-run should still be done.
2008-02-20 16:11:32 +00:00
Pawel Piech
f001078afe [213657] Left over string changes. 2008-02-14 21:49:28 +00:00
Pawel Piech
e98b65ea7c [179102] Re-aligned plugin and package names to confirm with Eclipse policy. 2008-02-13 20:27:01 +00:00