| OLD | NEW |
| 1 Mojo | 1 Mojo |
| 2 ==== | 2 ==== |
| 3 | 3 |
| 4 Mojo is an effort to extract a common platform out of Chrome's renderer and | 4 Mojo is an effort to extract a common platform out of Chrome's renderer and |
| 5 plugin processes that can support multiple types of sandboxed content, such as | 5 plugin processes that can support multiple types of sandboxed content, such as |
| 6 HTML, Pepper, or NaCl. | 6 HTML, Pepper, or NaCl. |
| 7 | 7 |
| 8 ## Set-up and code check-out | 8 ## Set-up and code check-out |
| 9 | 9 |
| 10 The instructions below only need to be done once. Note that a simple "git clone" | 10 The instructions below only need to be done once. Note that a simple "git clone" |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 258 |
| 259 #### Android crash stacks | 259 #### Android crash stacks |
| 260 When Mojo shell crashes on Android ("Unfortunately, Mojo shell has stopped.") | 260 When Mojo shell crashes on Android ("Unfortunately, Mojo shell has stopped.") |
| 261 due to a crash in native code, `debugger` can be used to find and symbolize the | 261 due to a crash in native code, `debugger` can be used to find and symbolize the |
| 262 stack trace present in the device log: | 262 stack trace present in the device log: |
| 263 | 263 |
| 264 ``` | 264 ``` |
| 265 mojo/devtools/common/debugger device stack | 265 mojo/devtools/common/debugger device stack |
| 266 ``` | 266 ``` |
| 267 | 267 |
| 268 #### GDB |
| 269 It is possible to inspect a Mojo Shell process using GDB. The `debugger` script |
| 270 can be used to launch GDB and attach it to a running shell process (android |
| 271 only): |
| 272 ``` |
| 273 mojo/devtools/common/debugger gdb attach |
| 274 ``` |
| 275 |
| 268 ### Android set-up | 276 ### Android set-up |
| 269 | 277 |
| 270 #### Adb | 278 #### Adb |
| 271 | 279 |
| 272 For the Android tooling to work, you will need to have `adb` in your PATH. For | 280 For the Android tooling to work, you will need to have `adb` in your PATH. For |
| 273 that, you can either run: | 281 that, you can either run: |
| 274 ``` | 282 ``` |
| 275 source build/android/envsetup.sh | 283 source build/android/envsetup.sh |
| 276 ``` | 284 ``` |
| 277 | 285 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 298 ``` | 306 ``` |
| 299 adb logcat | ./tools/android_stack_parser/stack | 307 adb logcat | ./tools/android_stack_parser/stack |
| 300 ``` | 308 ``` |
| 301 | 309 |
| 302 ### Running manually on Linux | 310 ### Running manually on Linux |
| 303 | 311 |
| 304 If you wish to, you can also run the Linux Mojo shell directly with no wrappers: | 312 If you wish to, you can also run the Linux Mojo shell directly with no wrappers: |
| 305 ``` | 313 ``` |
| 306 ./out/Debug/mojo_shell mojo:spinning_cube | 314 ./out/Debug/mojo_shell mojo:spinning_cube |
| 307 ``` | 315 ``` |
| OLD | NEW |