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

[309887] The dsf-gdb preference page lacks context help

This commit is contained in:
John Cortell 2010-04-20 22:53:36 +00:00
parent 71ad0df545
commit 2c70f116e7
7 changed files with 68 additions and 3 deletions

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<?NLS TYPE="org.eclipse.help.contexts"?>
<!DOCTYPE contexts [
<!ENTITY defaultCSHelp "Default Context Sensitive Help">
<!ENTITY gdbmiPrefs "GDB MI Preference Page">
]>
<contexts>
<context id ="default_cs_help">
<description>Click below to see help.</description>
<topic href="default_cs_help.htm"
label="&defaultCSHelp;"/>
</context>
<context id="dsfgdb_preference_page">
<description>Control the behavior of the C/C++ debugger when debugging with GDB, specifically when using a GDB (DSF) launcher.</description>
<topic href="reference/cdt_u_dsfgdb.htm" label="GDB Preferences"/>
</context>
</contexts>

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -80,6 +80,13 @@
plugin="org.eclipse.cdt.launch">
</contexts>
</extension>
<extension
point="org.eclipse.help.contexts">
<contexts
file="contexts_CDT_DEBUGGER_DSFGDB.xml"
plugin="org.eclipse.cdt.dsf.gdb.ui">
</contexts>
</extension>
<!-- ============================================================================= -->
<!-- KEYWORD INDEX EXTENSION -->

View file

@ -0,0 +1,34 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GDB Debugging Preferences</title>
<link rel="stylesheet" type="text/css" href="../help.css">
</head>
<body>
<h1>GDB Debugging Preferences</h1>
<p>This preferences page lets you control how the CDT debugger behaves when debugging with GDB,
specifically when using a <i>GDB (DSF)</i> launcher.
The page is accessible at:
<strong>Window &gt; Preferences &gt; C/C++ &gt; Debug &gt; GDB</strong>.</p>
<img src="../images/cdt_dsfgdb_preferences_page.png" alt="GDB preferences page">
<dl>
<dt>Enable GDB traces</dt>
<dd>When checked, the debug session will produce an additional console which will contain all the gdb/mi activity. Basically, this details the
interaction between the CDT debugger and GDB. This information is often critical when the debugger is not behaving as you expect. Turn this on and submit
the console output when submitting a bugzilla report against the CDT debugger.
</dd>
<dt>Terminate GDB when last process exits</dt>
<dd>When checked, the CDT debugger will terminate the GDB host processs after all the target processes it is debugging have terminated. Otherwise it will leave it running.</dd>
<dt>Use Inspector Debug Hover</dt>
<dd>When checked, hovering over an expression in the editor during a debug session will bring up an <i>enhanced</i> expression evaluation control. Otherwise, a more basic control is used. This, of course, assumes that you have the debugger's hovering capability turned on in C/C++ > Editor > Hovers. If not, this checkbox has no effect. </dd>
</dl>
</body>
</html>

View file

@ -71,6 +71,7 @@
<topic label="Breakpoint Actions" href="reference/cdt_u_dbg_brkpt_actions.htm"/>
<topic label="Common Source Lookup Path" href="reference/cdt_u_dbg_src.htm"/>
<topic label="GDB MI" href="reference/cdt_u_gdb_mi.htm"/>
<topic label="GDB" href="reference/cdt_u_dsfgdb.htm"/>
</topic>

View file

@ -42,7 +42,7 @@ public class GdbDebugPreferencePage extends FieldEditorPreferencePage implements
@Override
public void createControl(Composite parent) {
super.createControl(parent);
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IGdbDebugPreferenceConstants.PREFERENCE_PAGE);
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), GdbUIPlugin.PLUGIN_ID + ".dsfgdb_preference_page"); //$NON-NLS-1$
}
@Override
@ -106,4 +106,9 @@ public class GdbDebugPreferencePage extends FieldEditorPreferencePage implements
protected void adjustGridLayout() {
// do nothing
}
public void performHelp() {
// jjjjjjjjjjjjjjjj
super.performHelp();
}
}

View file

@ -40,7 +40,5 @@ public interface IGdbDebugPreferenceConstants {
* Help prefixes.
*/
public static final String PREFIX = GdbPlugin.PLUGIN_ID + "."; //$NON-NLS-1$
public static final String PREFERENCE_PAGE= PREFIX + "preference_page_context"; //$NON-NLS-1$
}