Index: src/platform-linux.cc |
=================================================================== |
--- src/platform-linux.cc (revision 1718) |
+++ src/platform-linux.cc (working copy) |
@@ -262,9 +262,10 @@ |
} |
-int OS::StackWalk(OS::StackFrame* frames, int frames_size) { |
+int OS::StackWalk(Vector<OS::StackFrame> frames) { |
// backtrace is a glibc extension. |
#ifdef __GLIBC__ |
+ int frames_size = frames.length(); |
void** addresses = NewArray<void*>(frames_size); |
int frames_count = backtrace(addresses, frames_size); |