~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/Mono.Debugging/Mono.Debugging.Client/ObjectValue.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// ObjectValue.cs
2
2
//
3
 
// Author:
4
 
//   Lluis Sanchez Gual <lluis@novell.com>
5
 
//
 
3
// Authors: Lluis Sanchez Gual <lluis@novell.com>
 
4
//          Jeffrey Stedfast <jeff@xamarin.com>
 
5
// 
6
6
// Copyright (c) 2008 Novell, Inc (http://www.novell.com)
 
7
// Copyright (c) 2012 Xamarin Inc. (http://www.xamarin.com)
7
8
//
8
9
// Permission is hereby granted, free of charge, to any person obtaining a copy
9
10
// of this software and associated documentation files (the "Software"), to deal
496
497
                        if (IsArray) {
497
498
                                GetArrayItem (arrayCount - 1);
498
499
                                return children.ToArray ();
499
 
                        } else {
500
 
                                if (children == null) {
501
 
                                        children = new List<ObjectValue> ();
502
 
                                        if (source != null) {
503
 
                                                try {
504
 
                                                        ObjectValue[] cs = source.GetChildren (path, -1, -1, options);
505
 
                                                        ConnectCallbacks (parentFrame, cs);
506
 
                                                        children.AddRange (cs);
507
 
                                                } catch (Exception ex) {
508
 
                                                        if (parentFrame != null)
509
 
                                                                parentFrame.DebuggerSession.OnDebuggerOutput( true, ex.ToString());
510
 
                                                        children.Add (CreateFatalError ("", ex.Message, ObjectValueFlags.ReadOnly));
511
 
                                                }
 
500
                        }
 
501
 
 
502
                        if (children == null) {
 
503
                                children = new List<ObjectValue> ();
 
504
                                if (source != null) {
 
505
                                        try {
 
506
                                                ObjectValue[] cs = source.GetChildren (path, -1, -1, options);
 
507
                                                ConnectCallbacks (parentFrame, cs);
 
508
                                                children.AddRange (cs);
 
509
                                        } catch (Exception ex) {
 
510
                                                if (parentFrame != null)
 
511
                                                        parentFrame.DebuggerSession.OnDebuggerOutput (true, ex.ToString ());
 
512
                                                children.Add (CreateFatalError ("", ex.Message, ObjectValueFlags.ReadOnly));
512
513
                                        }
513
514
                                }
514
 
                                return children.ToArray ();
515
515
                        }
 
516
 
 
517
                        return children.ToArray ();
516
518
                }
517
519
                
518
520
                /// <summary>