Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

2006-04-18 Martin Baulig <martin@ximian.com>

	* interfaces/ISourceBuffer.cs: Removed.
	(ISourceBuffer): Removed this interface; `SourceBuffer' is the
	only class implementing it.


svn path=/trunk/debugger/; revision=59565
  • Loading branch information...
commit 533bf7f801797f0cbadf9f7b215a295e44043f63 1 parent 0e340c0
Martin Baulig authored
View
6 ChangeLog
@@ -1,5 +1,11 @@
2006-04-18 Martin Baulig <martin@ximian.com>
+ * interfaces/ISourceBuffer.cs: Removed.
+ (ISourceBuffer): Removed this interface; `SourceBuffer' is the
+ only class implementing it.
+
+2006-04-18 Martin Baulig <martin@ximian.com>
+
* interfaces/ITargetMemoryAccess.cs: Removed.
(ITargetMemoryAccess): Removed.
View
4 arch/DwarfReader.cs
@@ -2408,7 +2408,7 @@ protected class DwarfTargetMethod : Method
DwarfTargetMethodSource msource;
int start_row, end_row;
LineNumber[] lines;
- ISourceBuffer buffer;
+ SourceBuffer buffer;
public DwarfTargetMethod (DieSubprogram subprog, LineNumberEngine engine)
: base (subprog.Name, subprog.ImageFile, subprog.dwarf.module)
@@ -2466,7 +2466,7 @@ public DwarfTargetMethod (DieSubprogram subprog, LineNumberEngine engine)
get { return source; }
}
- public ISourceBuffer SourceBuffer {
+ public SourceBuffer SourceBuffer {
get { return buffer; }
}
View
2  classes/AssemblerMethod.cs
@@ -32,7 +32,7 @@ public AssemblerLine (TargetAddress address, byte size, string text)
public sealed class AssemblerMethod : MethodSource
{
- ISourceBuffer buffer;
+ SourceBuffer buffer;
int start_row;
int end_row;
Module module;
View
8 classes/MethodSource.cs
@@ -70,7 +70,7 @@ object read_source (object user_data)
}
}
- public ISourceBuffer SourceBuffer {
+ public SourceBuffer SourceBuffer {
get {
return SourceData.SourceBuffer;
}
@@ -193,16 +193,16 @@ protected class MethodSourceData
public readonly int EndRow;
public readonly LineEntry[] Addresses;
public readonly SourceMethod SourceMethod;
- public readonly ISourceBuffer SourceBuffer;
+ public readonly SourceBuffer SourceBuffer;
public readonly Module Module;
public MethodSourceData (int start, int end, LineEntry[] addresses,
- ISourceBuffer buffer, Module module)
+ SourceBuffer buffer, Module module)
: this (start, end, addresses, null, buffer, module)
{ }
public MethodSourceData (int start, int end, LineEntry[] addresses,
- SourceMethod method, ISourceBuffer buffer,
+ SourceMethod method, SourceBuffer buffer,
Module module)
{
this.StartRow = start;
View
2  classes/SourceBuffer.cs
@@ -5,7 +5,7 @@
namespace Mono.Debugger
{
[Serializable]
- public class SourceBuffer : ISourceBuffer
+ public class SourceBuffer
{
string name;
string[] contents;
View
6 classes/SourceFileFactory.cs
@@ -10,10 +10,10 @@ public class SourceFileFactory : MarshalByRefObject
{
Hashtable files = new Hashtable ();
- public ISourceBuffer FindFile (string name)
+ public SourceBuffer FindFile (string name)
{
if (files.Contains (name))
- return (ISourceBuffer) ((ObjectCache) files [name]).Data;
+ return (SourceBuffer) ((ObjectCache) files [name]).Data;
ObjectCache cache = (ObjectCache) files [name];
if (cache == null) {
@@ -21,7 +21,7 @@ public ISourceBuffer FindFile (string name)
files.Add (name, cache);
}
- return (ISourceBuffer) cache.Data;
+ return (SourceBuffer) cache.Data;
}
public bool Exists (string name)
View
4 frontend/ScriptingContext.cs
@@ -281,7 +281,7 @@ public void ListSourceCode (SourceLocation location, int count)
} else
start = last_line;
} else {
- ISourceBuffer buffer;
+ SourceBuffer buffer;
if (location.HasSourceFile) {
string filename = location.SourceFile.FileName;
@@ -550,7 +550,7 @@ public void ShowSources (Module module)
Print ("{0,4} {1}", source.ID, source.FileName);
}
- public ISourceBuffer FindFile (string filename)
+ public SourceBuffer FindFile (string filename)
{
Process process = GetProcess ();
return process.SourceFileFactory.FindFile (filename);
View
31 interfaces/ISourceBuffer.cs
@@ -1,31 +0,0 @@
-using System;
-using System.IO;
-
-namespace Mono.Debugger
-{
- // <summary>
- // This is a source code buffer which can be displayed by a
- // source code viewer.
- //
- // A source code debugger can either belong to a file on
- // disk or be implicitly generated, for instance as the
- // result of disassembling a function.
- // </summary>
- public interface ISourceBuffer
- {
- // <summary>
- // The name of this buffer.
- // </summary>
- string Name {
- get;
- }
-
- // <summary>
- // The whole contents of this buffer. This is what
- // a source code viewer should display.
- // </summary>
- string[] Contents {
- get;
- }
- }
-}
View
2  languages/mono/MonoSymbolFile.cs
@@ -982,7 +982,7 @@ protected override MethodSourceData ReadSource ()
LineEntry[] addresses = new LineEntry [lines.Count];
lines.CopyTo (addresses, 0);
- ISourceBuffer buffer = factory.FindFile (source_method.SourceFile.FileName);
+ SourceBuffer buffer = factory.FindFile (source_method.SourceFile.FileName);
return new MethodSourceData (
start_row, end_row, addresses, source_method, buffer,
source_method.SourceFile.Module);
Please sign in to comment.
Something went wrong with that request. Please try again.