FreeBSD Bugzilla – Attachment 220396 Details for
Bug 251709
Developer's Handbook: add a section on remote debugging via LLDB
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-Add-a-section-on-remote-debugging-with-LLDB-12.0.patch
0001-Add-a-section-on-remote-debugging-with-LLDB-12.0.patch (text/plain), 2.17 KB, created by
Michał Górny
on 2020-12-09 16:53:15 UTC
(
hide
)
Description:
0001-Add-a-section-on-remote-debugging-with-LLDB-12.0.patch
Filename:
MIME Type:
Creator:
Michał Górny
Created:
2020-12-09 16:53:15 UTC
Size:
2.17 KB
patch
obsolete
>From 78aa9844d7cd7b0c2c7896c7767c39dd8005ac89 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> >Date: Wed, 9 Dec 2020 15:35:20 +0100 >Subject: [PATCH] Add a section on remote debugging with LLDB 12.0+ > >--- > .../developers-handbook/tools/chapter.xml | 32 +++++++++++++++++++ > 1 file changed, 32 insertions(+) > >diff --git a/en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml b/en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml >index c7d538f58f..1ef4ed50f3 100644 >--- a/en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml >+++ b/en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml >@@ -1655,6 +1655,38 @@ else if (pid == 0) { /* child */ > <userinput>expr PauseMode = 0</userinput> and wait > for the <function>sleep()</function> call to return.</para> > </sect3> >+ >+ <sect3> >+ <title>Remote Debugging Using LLDB</title> >+ >+ <para>Starting with LLDB 12.0.0, remote debugging is supported >+ on FreeBSD. This means that <command>lldb-server</command> >+ can be started to debug a program on one host, while >+ the interactive <command>lldb</command> client connects >+ to it from another one.</para> >+ >+ <para>To launch a new process to be debugged remotely, run >+ <command>lldb-server</command> on the remote server >+ by typing</para> >+ >+ <screen>&prompt.user; <userinput>lldb-server g <replaceable>host:port</replaceable> -- <replaceable>progname</replaceable></userinput></screen> >+ >+ <para>The process will be stopped immediately after launching, >+ and <command>lldb-server</command> will wait for the client >+ to connect.</para> >+ >+ <para>Start <command>lldb</command> locally and type >+ the following command to connect to the remote >+ server:</para> >+ >+ <screen>(lldb) <userinput>gdb-remote <replaceable>host:port</replaceable></userinput></screen> >+ >+ <para><command>lldb-server</command> can also attach to >+ a running process. To do that, type the following >+ on the remote server:</para> >+ >+ <screen>&prompt.user; <userinput>lldb-server g <replaceable>host:port</replaceable> --attach <replaceable>pid-or-name</replaceable></userinput></screen> >+ </sect3> > </sect2> > > <sect2> >-- >2.29.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 251709
: 220396