Permalink
Browse files

'Backtrace.Mode.Defaults' defaults to native unless we're debugging a…

… managed application.

2009-06-20  Martin Baulig  <martin@ximian.com>

	* classes/Backtrace.cs
	(Backtrace.IsFrameOkForMode): `Mode.Default' defaults to native
	unless we're debugging a managed application.

svn path=/trunk/debugger/; revision=136610
  • Loading branch information...
1 parent e38ff60 commit f7a1f66299940005b403bd9d0df30426ab74b50c Martin Baulig committed Jun 22, 2009
Showing with 8 additions and 0 deletions.
  1. +6 −0 ChangeLog
  2. +2 −0 classes/Backtrace.cs
View
@@ -1,3 +1,9 @@
+2009-06-20 Martin Baulig <martin@ximian.com>
+
+ * classes/Backtrace.cs
+ (Backtrace.IsFrameOkForMode): `Mode.Default' defaults to native
+ unless we're debugging a managed application.
+
2009-06-18 Martin Baulig <martin@ximian.com>
* backend/os/Bfd.cs
View
@@ -141,6 +141,8 @@ private bool IsFrameOkForMode (StackFrame frame, Mode mode)
{
if (mode == Mode.Native)
return true;
+ if ((mode == Mode.Default) && !frame.Thread.Process.IsManaged)
+ return true;
if ((frame.Language == null) || !frame.Language.IsManaged)
return false;
if (mode == Mode.Default)

0 comments on commit f7a1f66

Please sign in to comment.