diff options
Diffstat (limited to 'documentation/dev-manual/dev-manual-common-tasks.xml')
-rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.xml | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 8684851dcc..c509d12c54 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml | |||
@@ -4016,41 +4016,41 @@ | |||
4016 | and the GDB prompt appears. | 4016 | and the GDB prompt appears. |
4017 | </para> | 4017 | </para> |
4018 | </section> | 4018 | </section> |
4019 | </section> | ||
4019 | 4020 | ||
4020 | <section id='platdev-gdb-connect-to-the-remote-gdb-server'> | 4021 | <section id='platdev-gdb-connect-to-the-remote-gdb-server'> |
4021 | <title>Connect to the Remote GDB Server</title> | 4022 | <title>Connect to the Remote GDB Server</title> |
4022 | 4023 | ||
4023 | <para> | 4024 | <para> |
4024 | From the target, you need to connect to the remote GDB | 4025 | From the target, you need to connect to the remote GDB |
4025 | server that is running on the host. | 4026 | server that is running on the host. |
4026 | You need to specify the remote host and port. | 4027 | You need to specify the remote host and port. |
4027 | Here is the command continuing with the example: | 4028 | Here is the command continuing with the example: |
4028 | <literallayout class='monospaced'> | 4029 | <literallayout class='monospaced'> |
4029 | target remote 192.168.7.2:2345 | 4030 | target remote 192.168.7.2:2345 |
4030 | </literallayout> | 4031 | </literallayout> |
4031 | </para> | 4032 | </para> |
4032 | </section> | 4033 | </section> |
4033 | 4034 | ||
4034 | <section id="platdev-gdb-remotedebug-launch-gdb-using"> | 4035 | <section id="platdev-gdb-remotedebug-launch-gdb-using"> |
4035 | <title>Use the Debugger</title> | 4036 | <title>Use the Debugger</title> |
4036 | 4037 | ||
4037 | <para> | 4038 | <para> |
4038 | You can now proceed with debugging as normal - as if you were debugging | 4039 | You can now proceed with debugging as normal - as if you were debugging |
4039 | on the local machine. | 4040 | on the local machine. |
4040 | For example, to instruct GDB to break in the "main" function and then | 4041 | For example, to instruct GDB to break in the "main" function and then |
4041 | continue with execution of the inferior binary use the following commands | 4042 | continue with execution of the inferior binary use the following commands |
4042 | from within GDB: | 4043 | from within GDB: |
4043 | <literallayout class='monospaced'> | 4044 | <literallayout class='monospaced'> |
4044 | (gdb) break main | 4045 | (gdb) break main |
4045 | (gdb) continue | 4046 | (gdb) continue |
4046 | </literallayout> | 4047 | </literallayout> |
4047 | </para> | 4048 | </para> |
4048 | 4049 | ||
4049 | <para> | 4050 | <para> |
4050 | For more information about using GDB, see the project's online documentation at | 4051 | For more information about using GDB, see the project's online documentation at |
4051 | <ulink url="http://sourceware.org/gdb/download/onlinedocs/"/>. | 4052 | <ulink url="http://sourceware.org/gdb/download/onlinedocs/"/>. |
4052 | </para> | 4053 | </para> |
4053 | </section> | ||
4054 | </section> | 4054 | </section> |
4055 | </section> | 4055 | </section> |
4056 | 4056 | ||