Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: mojo/devtools/common/README.md

Issue 1253573008: Only update symbols on current thread when breaking or stepping in GDB. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/devtools/common/android_gdb/session.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/devtools/common/README.md
diff --git a/mojo/devtools/common/README.md b/mojo/devtools/common/README.md
index 9e063f1d4ff87aa1dae634caa279c70e334d2d77..088141c88322af79f5bbad352e62c25dd539fb8f 100644
--- a/mojo/devtools/common/README.md
+++ b/mojo/devtools/common/README.md
@@ -39,7 +39,7 @@ The trace file can be then loaded using the trace viewer in Chrome available at
`about://tracing`.
#### GDB
-It is possible to inspect a Mojo Shell process using GDB. The `debugger` script
+It is possible to inspect a Mojo Shell process using GDB. The `mojo_debug` script
can be used to launch GDB and attach it to a running shell process (android
only):
@@ -47,9 +47,26 @@ only):
mojo_debug gdb attach
```
+Once started, GDB will first stop the Mojo Shell execution, then load symbols
+from loaded Mojo applications. Please note that this initial step can time (
kulakowski 2015/07/23 22:07:20 I think you wanted something like can time => ca
etiennej 2015/07/23 22:29:23 Fixed, thanks
+up to several minutes in the worst case).
+
+After each execution pause, GDB will update the set of loaded symbols based on
+the selected thread only. If you need symbols for all threads, use the
+`update-symbols` GDB command:
+```sh
+(gdb) update-symbols
+```
+
+If you only want to update symbols for the current selected thread (for example,
+after changing threads), use the `current` option:
+```sh
+(gdb) update-symbols current
+```
+
#### Android crash stacks
When Mojo shell crashes on Android ("Unfortunately, Mojo shell has stopped.")
-due to a crash in native code, `debugger` can be used to find and symbolize the
+due to a crash in native code, `mojo_debug` can be used to find and symbolize the
stack trace present in the device log:
```sh
« no previous file with comments | « no previous file | mojo/devtools/common/android_gdb/session.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698