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

Unified Diff: src/x64/virtual-frame-x64.cc

Issue 6371011: Ensures that GDB prints stacktraces correctly for x64 builds when debugging t... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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
« src/x64/full-codegen-x64.cc ('K') | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x64/virtual-frame-x64.cc
===================================================================
--- src/x64/virtual-frame-x64.cc (revision 6445)
+++ src/x64/virtual-frame-x64.cc (working copy)
@@ -30,6 +30,7 @@
#if defined(V8_TARGET_ARCH_X64)
#include "codegen-inl.h"
+#include "gdb-jit.h"
#include "register-allocator-inl.h"
#include "scopes.h"
#include "stub-cache.h"
@@ -63,8 +64,10 @@
#endif
EmitPush(rbp);
+ SET_UNWIND_INFO(UNWIND_STATE_AFTER_RBP_PUSH, masm()->pc_offset());
Vyacheslav Egorov (Chromium) 2011/01/25 12:50:11 The classic codegen is going to be replaced with C
__ movq(rbp, rsp);
+ SET_UNWIND_INFO(UNWIND_STATE_AFTER_RBP_SET, masm()->pc_offset());
// Store the context in the frame. The context is kept in rsi and a
// copy is stored in the frame. The external reference to rsi
@@ -101,6 +104,7 @@
}
EmitPop(rbp);
+ SET_UNWIND_INFO(UNWIND_STATE_AFTER_RBP_POP, masm()->pc_offset());
}
« src/x64/full-codegen-x64.cc ('K') | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698