Author: martin
Date: 2005-10-11 11:08:15 -0400 (Tue, 11 Oct 2005)
New Revision: 51578
Modified:
trunk/debugger/ChangeLog
trunk/debugger/classes/SymbolTableManager.cs
Log:
2005-10-11 Martin Baulig <[EMAIL PROTECTED]>
* classes/SymbolTableManager.cs
(SymbolTableManager.SymbolTable): Removed.
(SymbolTableManager): Make some API entry points `internal'.
Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog 2005-10-11 15:03:10 UTC (rev 51577)
+++ trunk/debugger/ChangeLog 2005-10-11 15:08:15 UTC (rev 51578)
@@ -1,5 +1,11 @@
2005-10-11 Martin Baulig <[EMAIL PROTECTED]>
+ * classes/SymbolTableManager.cs
+ (SymbolTableManager.SymbolTable): Removed.
+ (SymbolTableManager): Make some API entry points `internal'.
+
+2005-10-11 Martin Baulig <[EMAIL PROTECTED]>
+
* interfaces/ISymbolTable.cs (ISimpleSymbolTable): Removed.
* arch/Disassembler.cs (Disassembler.SymbolTable): Removed.
Modified: trunk/debugger/classes/SymbolTableManager.cs
===================================================================
--- trunk/debugger/classes/SymbolTableManager.cs 2005-10-11 15:03:10 UTC
(rev 51577)
+++ trunk/debugger/classes/SymbolTableManager.cs 2005-10-11 15:08:15 UTC
(rev 51578)
@@ -20,7 +20,7 @@
bool symtab_update_in_progress;
bool module_update_in_progress;
- public SymbolTableManager ()
+ internal SymbolTableManager ()
{
symtab_reload_event = new AutoResetEvent (false);
symtabs_loaded_event = new ManualResetEvent (true);
@@ -36,7 +36,7 @@
// the symbol tables in the background and emit the
SymbolTableChangedEvent
// when done.
// </summary>
- public void SetModules (ICollection modules)
+ internal void SetModules (ICollection modules)
{
lock (this) {
new_modules = modules;
@@ -52,7 +52,7 @@
// <summary>
// Whether an update is currently in progress.
// </summary>
- public bool SymbolTableUpdateInProgress {
+ internal bool SymbolTableUpdateInProgress {
get {
lock (this) {
return symtab_update_in_progress;
@@ -63,7 +63,7 @@
// <summary>
// Whether an update is currently in progress.
// </summary>
- public bool ModuleUpdateInProgress {
+ internal bool ModuleUpdateInProgress {
get {
lock (this) {
return module_update_in_progress;
@@ -71,29 +71,6 @@
}
}
- public delegate void SymbolTableHandler (object sender,
ISymbolTable symbol_table);
- public delegate void ModuleHandler (object sender, Module[]
modules);
-
- // <summary>
- // This event is emitted each time the symbol tables have
changed.
- // The symbol tables won't change while this handler is
running.
- // </summary>
- public event SymbolTableHandler SymbolTableChangedEvent;
-
- // <summary>
- // The current symbol tables. This property may change at
any time, so
- // you should use the SymbolTableChangedEvent to get a
notification.
- // </summary>
- public ISymbolTable SymbolTable {
- get {
- if (symtab_thread != null)
- symtabs_loaded_event.WaitOne ();
- lock (this) {
- return current_symtab;
- }
- }
- }
-
public void Wait ()
{
if (symtab_thread != null) {
@@ -101,11 +78,13 @@
}
}
+ internal delegate void ModuleHandler (object sender, Module[]
modules);
+
// <summary>
// This event is emitted each time the modules have changed.
// The modules won't change while this handler is running.
// </summary>
- public event ModuleHandler ModulesChangedEvent;
+ internal event ModuleHandler ModulesChangedEvent;
// <summary>
// The current modules. This property may change at any
time, so you
@@ -123,7 +102,11 @@
public Method Lookup (TargetAddress address)
{
- return SymbolTable.Lookup (address);
+ if (symtab_thread != null)
+ symtabs_loaded_event.WaitOne ();
+ lock (this) {
+ return current_symtab.Lookup (address);
+ }
}
public Symbol SimpleLookup (TargetAddress address, bool
exact_match)
@@ -144,14 +127,6 @@
}
}
- protected virtual void OnSymbolTableChanged ()
- {
- lock (this) {
- if (SymbolTableChangedEvent != null)
- SymbolTableChangedEvent (this,
current_symtab);
- }
- }
-
protected virtual void OnModulesChanged ()
{
lock (this) {
@@ -234,7 +209,6 @@
// the `SymbolTable' accessor.
symtabs_loaded_event.Set ();
symtab_update_in_progress = false;
- OnSymbolTableChanged ();
}
lock (this) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches