Author: martin
Date: 2006-04-17 22:07:19 -0400 (Mon, 17 Apr 2006)
New Revision: 59570
Removed:
trunk/debugger/backends/classes/Utils.cs
Modified:
trunk/debugger/ChangeLog
trunk/debugger/backends/Inferior.cs
Log:
2006-04-18 Martin Baulig <[EMAIL PROTECTED]>
* backends/Inferior.cs
(Inferior.GetFileContents): New public static method; obsoletes
the `Utils' class form backends/classes/Utils.cs.
Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog 2006-04-18 02:01:25 UTC (rev 59569)
+++ trunk/debugger/ChangeLog 2006-04-18 02:07:19 UTC (rev 59570)
@@ -1,5 +1,13 @@
2006-04-18 Martin Baulig <[EMAIL PROTECTED]>
+ * backends/Inferior.cs
+ (Inferior.GetFileContents): New public static method; obsoletes
+ the `Utils' class form backends/classes/Utils.cs.
+
+ * backends/classes/Utils.cs: Removed.
+
+2006-04-18 Martin Baulig <[EMAIL PROTECTED]>
+
* backends/EventQueue.cs: New file; merged classes/Threading.cs
and backends/classes/EventQueue.cs here.
Modified: trunk/debugger/backends/Inferior.cs
===================================================================
--- trunk/debugger/backends/Inferior.cs 2006-04-18 02:01:25 UTC (rev 59569)
+++ trunk/debugger/backends/Inferior.cs 2006-04-18 02:07:19 UTC (rev 59570)
@@ -586,6 +586,21 @@
target_addr_size, is_bigendian
!= 0, domain);
}
+ public static string GetFileContents (string filename)
+ {
+ try {
+ StreamReader sr = File.OpenText (filename);
+ string contents = sr.ReadToEnd ();
+
+ sr.Close();
+
+ return contents;
+ }
+ catch {
+ return null;
+ }
+ }
+
protected void SetupInferior ()
{
IntPtr data = IntPtr.Zero;
@@ -1228,7 +1243,7 @@
// the current file position and System.IO will try to
"fix" this
// by seeking back.
string mapfile = String.Format ("/proc/{0}/maps",
child_pid);
- string contents = Utils.GetFileContents (mapfile);
+ string contents = GetFileContents (mapfile);
if (contents == null)
return null;
Deleted: trunk/debugger/backends/classes/Utils.cs
===================================================================
--- trunk/debugger/backends/classes/Utils.cs 2006-04-18 02:01:25 UTC (rev
59569)
+++ trunk/debugger/backends/classes/Utils.cs 2006-04-18 02:07:19 UTC (rev
59570)
@@ -1,24 +0,0 @@
-using System;
-using System.IO;
-
-namespace Mono.Debugger.Backends
-{
- internal abstract class Utils
- {
- public static string GetFileContents (string filename)
- {
- try {
- StreamReader sr = File.OpenText (filename);
- string contents = sr.ReadToEnd ();
-
- sr.Close();
-
- return contents;
- }
- catch {
- return null;
- }
- }
-
- }
-}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches