Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9)

Unified Diff: src/processor/stackwalker_selftest.cc

Issue 6814002: SH4 support Base URL: http://google-breakpad.googlecode.com/svn/trunk/
Patch Set: with sh4_unittest Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/processor/stackwalker_selftest.cc
===================================================================
--- src/processor/stackwalker_selftest.cc (revision 1435)
+++ src/processor/stackwalker_selftest.cc (working copy)
@@ -341,6 +341,14 @@
StackwalkerSPARC stackwalker = StackwalkerSPARC(NULL, &context, &memory,
NULL, NULL, &resolver);
+#elif defined(__SH4__)
+ MDRawContextSH4 context = MDRawContextSH4();
+ context.spc = GetPC();
+ context.sgr = GetSP();
+
+ StackwalkerSH4 stackwalker = StackwalkerSH4(NULL, &context, &memory, NULL,
+ NULL, &resolver);
+
#endif // __i386__ || __ppc__ || __sparc__
CallStack stack;

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted