Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/lttng
diff options
context:
space:
mode:
authorPatrick Tasse2013-03-13 21:25:24 +0000
committerPatrick Tasse2013-03-15 15:07:34 +0000
commit16962f4d76cfb9f23287459e179a0ccda04916c4 (patch)
tree59177ac0e080afc213afb14b6354256660ff340c /lttng
parent0ff3537f6251970182a059949dd447aad34a6e86 (diff)
downloadorg.eclipse.linuxtools-16962f4d76cfb9f23287459e179a0ccda04916c4.tar.gz
org.eclipse.linuxtools-16962f4d76cfb9f23287459e179a0ccda04916c4.tar.xz
org.eclipse.linuxtools-16962f4d76cfb9f23287459e179a0ccda04916c4.zip
Update GDB Tracepoint Analysis help files
Change-Id: I68053b9522a0c5dc5969f6cd3f0396a125f124cc Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com> Reviewed-on: https://git.eclipse.org/r/11176 Tested-by: Hudson CI Reviewed-by: Bernd Hufmann <bhufmann@gmail.com> IP-Clean: Bernd Hufmann <bhufmann@gmail.com> Tested-by: Bernd Hufmann <bhufmann@gmail.com>
Diffstat (limited to 'lttng')
-rw-r--r--lttng/org.eclipse.linuxtools.gdbtrace.help/doc/User-Guide.mediawiki79
-rw-r--r--lttng/org.eclipse.linuxtools.gdbtrace.help/doc/images/GDBTracePerspective.pngbin0 -> 167177 bytes
-rw-r--r--lttng/org.eclipse.linuxtools.gdbtrace.help/doc/images/gdb_icon16.pngbin0 -> 330 bytes
3 files changed, 78 insertions, 1 deletions
diff --git a/lttng/org.eclipse.linuxtools.gdbtrace.help/doc/User-Guide.mediawiki b/lttng/org.eclipse.linuxtools.gdbtrace.help/doc/User-Guide.mediawiki
index fbf0883c2d..4423052f67 100644
--- a/lttng/org.eclipse.linuxtools.gdbtrace.help/doc/User-Guide.mediawiki
+++ b/lttng/org.eclipse.linuxtools.gdbtrace.help/doc/User-Guide.mediawiki
@@ -1,7 +1,84 @@
= Overview =
-TODO
+The GDB Tracepoint Analysis feature is an extension to the Tracing and Monitoring Framework that allows the visualization and analysis of C/C++ tracepoint data collected by GDB and stored to a log file.
+
+= Getting Started =
+
+The feature can be installed from the Eclipse update site by selecting '''Linux Tools''' > '''GDB Tracepoint Analysis'''.
+
+The feature requires GDB version 7.2 or later to be installed on the local host. The executable program 'gdb' must be found in the path.
+
+= GDB Trace Perspective =
+
+To open the perspective, select '''Window''' > '''Open Perspective''' > '''Other...''' > '''GDB Trace'''.
+
+The perspective includes the following views by default:
+
+* '''Project Explorer''': This view shows the projects in the workspace and is used to create and manage Tracing projects.
+* '''Debug''': This view shows the running C/C++ Postmortem Debugger instances and displays the thread and stack trace associated with a tracepoint.
+* '''Trace Control''': This view shows the status of the debugger and allows navigation of trace records.
+* '''Console''': This view displays console output of the C/C++ Postmortem Debugger.
+
+The editor area contains the '''Events''' and '''C/C++''' editors when a GDB Trace is opened.
+
+[[Image:images/GDBTracePerspective.png]]
+
+= Collecting Tracepoint Data =
+
+Collecting the C/C++ tracepoint data is outside the scope of this feature. It can be done from the GDB command line or by using the CDT debug component within Eclipse. See the CDT FAQ entry in the [[#References | References]] section.
+
+= Importing Tracepoint Data =
+
+Some information in this section is redundant with the LTTng User Guide. For further details, see the LTTng User Guide entry in the [[#References | References]] section.
+
+== Creating a Tracing Project ==
+
+In the '''Project Explorer''' view, right-click and select '''New''' > '''Project...''' from the context menu. In the '''New Project''' dialog, select '''Tracing''' > '''Tracing Project''', click '''Next''', name your project and click '''Finish'''.
+
+== Importing a GDB Trace ==
+
+In your tracing project, right-click on the '''Traces''' folder and select '''Import...'''. Browse to, or enter, a source directory. Select the trace file in the tree. Optionally set the trace type to '''GDB : GDB Trace'''. Click '''Finish'''.
+
+Alternatively, the trace can be drag & dropped to the '''Traces''' folder from any external file manager.
+
+== Selecting the GDB Trace Type ==
+
+Right-click the imported trace in the '''Traces''' folder and choose '''Select Trace Type...''' > '''GDB''' > '''GDB Trace''' from the context menu. This step can be omitted if the trace type was selected at import.
+
+The trace will be updated with the GDB icon [[Image:images/gdb_icon16.png]].
+
+== Selecting the Trace Executable ==
+
+The executable file that created the tracepoint data must be identified so that the C/C++ Postmortem Debugger can be launched properly.
+
+Right-click the GDB trace in the '''Traces''' folder and choose '''Select Trace Executable''' from the context menu. Browse to, or enter, the path of the executable file and press '''OK'''.
+
+The selected file must be recognized by GDB as an executable.
+
+= Visualizing Tracepoint Data =
+
+== Opening a GDB Trace ==
+
+In the '''Traces''' folder, double-click the GDB trace or right-click it and select '''Open''' from the context menu.
+
+The tracepoint data will be opened in an Events editor, and a C/C++ Postmortem Debugger instance will be launched.
+
+If available in the workspace, the source code corresponding to the first trace record will also be opened in a C/C++ editor.
+
+At this point it is recommended to relocate the Events editor outside of the default editor area, so that it is not hidden by the C/C++ editor.
+
+== Viewing Trace Data ==
+
+In the Events editor, a table is shown with one row for each trace record. The '''Trace Frame''' column shows the sequential trace record number. The '''Tracepoint''' column shows the number assigned by GDB at collection time for this tracepoint. The '''File''' column shows the file name, line number and method where the tracepoint was set. The '''Content''' column shows the data collected at run-time by the tracepoint.
+
+Searching and filtering can be done on any column by entering a regular expression in the column header.
+
+== Navigating the GDB Trace ==
+
+Trace records can be selected in the Events editor using the keyboard or mouse. The C/C++ Postmortem Debugger in the '''Debug''' view will be updated to show the stack trace of the current trace record.
+
+The trace can also be navigated from the '''Trace Control''' view by clicking the '''Next Trace Record''' or '''Previous Trace Record''' buttons. The Events editor and '''Debug''' views will be updated.
= References =
diff --git a/lttng/org.eclipse.linuxtools.gdbtrace.help/doc/images/GDBTracePerspective.png b/lttng/org.eclipse.linuxtools.gdbtrace.help/doc/images/GDBTracePerspective.png
new file mode 100644
index 0000000000..af032e4fc3
--- /dev/null
+++ b/lttng/org.eclipse.linuxtools.gdbtrace.help/doc/images/GDBTracePerspective.png
Binary files differ
diff --git a/lttng/org.eclipse.linuxtools.gdbtrace.help/doc/images/gdb_icon16.png b/lttng/org.eclipse.linuxtools.gdbtrace.help/doc/images/gdb_icon16.png
new file mode 100644
index 0000000000..89f7666bc4
--- /dev/null
+++ b/lttng/org.eclipse.linuxtools.gdbtrace.help/doc/images/gdb_icon16.png
Binary files differ

Back to the top