chiark / gitweb /
man: add examples for coredumpctl
authorRonny Chevalier <chevalier.ronny@gmail.com>
Sat, 11 Oct 2014 22:37:21 +0000 (00:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Oct 2014 23:16:17 +0000 (01:16 +0200)
Add examples to clarify how to use coredumpctl

See https://bugs.freedesktop.org/show_bug.cgi?id=83437

man/coredumpctl.xml

index a7b8793e5115e0631c8f36ee434f8f257ec7332e..03552b7d19b11eafebe3d809815d34a92750c23a 100644 (file)
                 </para>
         </refsect1>
 
+        <refsect1>
+                <title>Examples</title>
+
+                <example>
+                        <title>List all the coredumps of a program named foo</title>
+
+                        <programlisting># coredumpctl list foo</programlisting>
+                </example>
+
+                <example>
+                        <title>Invoke gdb on the last coredump</title>
+
+                        <programlisting># coredumpctl gdb</programlisting>
+                </example>
+
+                <example>
+                        <title>Show information about a process that dumped core</title>
+
+                        <programlisting># coredumpctl info 6654</programlisting>
+                </example>
+
+                <example>
+                        <title>Extract the last coredump of /usr/bin/bar to a file named bar.coredump</title>
+
+                        <programlisting># coredumpctl -o bar.coredump dump /usr/bin/bar</programlisting>
+                </example>
+        </refsect1>
+
         <refsect1>
                 <title>See Also</title>
                 <para>