OLD | NEW |
1 .. _devcycle-debugging: | 1 .. _devcycle-debugging: |
2 | 2 |
3 ######### | 3 ######### |
4 Debugging | 4 Debugging |
5 ######### | 5 ######### |
6 | 6 |
7 This document describes tools and techniques you can use to debug, monitor, | 7 This document describes tools and techniques you can use to debug, monitor, |
8 and measure your application's performance. | 8 and measure your application's performance. |
9 | 9 |
10 .. contents:: Table Of Contents | 10 .. contents:: Table Of Contents |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 <http://www.gnu.org/software/gdb/>`_, and is located at | 207 <http://www.gnu.org/software/gdb/>`_, and is located at |
208 ``toolchain/<platform>_x86_newlib/bin/x86_64-nacl-gdb`` (where *<platform>* | 208 ``toolchain/<platform>_x86_newlib/bin/x86_64-nacl-gdb`` (where *<platform>* |
209 is the platform of your development machine: ``win``, ``mac``, or | 209 is the platform of your development machine: ``win``, ``mac``, or |
210 ``linux``). | 210 ``linux``). |
211 | 211 |
212 Note that this same copy of GDB can be used to debug any NaCl program, | 212 Note that this same copy of GDB can be used to debug any NaCl program, |
213 whether built using newlib or glibc for x86-32, x86-64 or ARM. In the SDK, | 213 whether built using newlib or glibc for x86-32, x86-64 or ARM. In the SDK, |
214 ``i686-nacl-gdb`` is an alias for ``x86_64-nacl-gdb``, and the ``newlib`` | 214 ``i686-nacl-gdb`` is an alias for ``x86_64-nacl-gdb``, and the ``newlib`` |
215 and ``glibc`` toolchains both contain the same version of GDB. | 215 and ``glibc`` toolchains both contain the same version of GDB. |
216 | 216 |
| 217 .. _debugging_pnacl_pexes: |
| 218 |
217 Debugging PNaCl pexes (with Pepper 35+) | 219 Debugging PNaCl pexes (with Pepper 35+) |
218 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 220 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
219 | 221 |
220 If you want to use GDB to debug a program that is compiled with the PNaCl | 222 If you want to use GDB to debug a program that is compiled with the PNaCl |
221 toolchain, you must have a copy of the pexe from **before** running | 223 toolchain, you must have a copy of the pexe from **before** running |
222 ``pnacl-finalize``. The ``pnacl-finalize`` tool converts LLVM bitcode | 224 ``pnacl-finalize``. The ``pnacl-finalize`` tool converts LLVM bitcode |
223 to the stable PNaCl bitcode format, but it also strips out debug | 225 to the stable PNaCl bitcode format, but it also strips out debug |
224 metadata, which we need for debugging. | 226 metadata, which we need for debugging. |
225 | 227 |
226 **Note** unlike the finalized copy of the pexe, the non-finalized debug copy | 228 **Note** unlike the finalized copy of the pexe, the non-finalized debug copy |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 <http://www.chromium.org/nativeclient>`_ that describe how to do profiling on | 590 <http://www.chromium.org/nativeclient>`_ that describe how to do profiling on |
589 `64-bit Windows | 591 `64-bit Windows |
590 <https://sites.google.com/a/chromium.org/dev/nativeclient/how-tos/profiling-nacl
-apps-on-64-bit-windows>`_ | 592 <https://sites.google.com/a/chromium.org/dev/nativeclient/how-tos/profiling-nacl
-apps-on-64-bit-windows>`_ |
591 and `Linux | 593 and `Linux |
592 <http://www.chromium.org/nativeclient/how-tos/limited-profiling-with-oprofile-on
-x86-64>`_ | 594 <http://www.chromium.org/nativeclient/how-tos/limited-profiling-with-oprofile-on
-x86-64>`_ |
593 machines. | 595 machines. |
594 | 596 |
595 | 597 |
596 .. |menu-icon| image:: /images/menu-icon.png | 598 .. |menu-icon| image:: /images/menu-icon.png |
597 .. |puzzle| image:: /images/puzzle.png | 599 .. |puzzle| image:: /images/puzzle.png |
OLD | NEW |