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

Unified Diff: samples/gdb-integration.js

Issue 6995161: Extend gdb-jit support (OSX/locals+parameters/prettyprint) (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 9 years, 6 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
Index: samples/gdb-integration.js
diff --git a/samples/gdb-integration.js b/samples/gdb-integration.js
new file mode 100644
index 0000000000000000000000000000000000000000..fa97cc48ad5b084dc467e849ce5c80235602e79b
--- /dev/null
+++ b/samples/gdb-integration.js
@@ -0,0 +1,26 @@
+function Initialize() { }
+
+function ProcessLine(input_line) {
+ return ">>>" + input_line + "<<<";
+}
+
+function gdbSomeFunction(va, vb, vc) {
+ var lva = va;
+ var lvb = vb;
+ var lvc = vc;
+ debug_break();
+ return v + 1;
+}
+
+while (true) {
+ var result = gdbSomeFunction(42, -42, 0xBAADF00DCAFE);
+ print(result);
+ debug_break();
+ var line = read_line();
+ if (!line) {
+ break;
+ }
+ var res = line + " | " + line;
+ print(res);
+}
+

Powered by Google App Engine
This is Rietveld 408576698