Minor cleanup of symtab code/includes.

base/loader/symtab.cc:
base/loader/symtab.hh:
    Get rid of old unused calls.
cpu/simple_cpu/simple_cpu.hh:
    No need to include base/loader/symtab.hh
kern/linux/linux_system.cc:
kern/tru64/tru64_system.cc:
    Include base/loader/symtab.hh (since it's no longer included in system.hh)
sim/system.hh:
    Replace include of base/loader/symtab.hh with forward class decl.

--HG--
extra : convert_revision : 3a778c2f409ec94e3b00eaa9b3859943cb39918c
This commit is contained in:
Steve Reinhardt 2004-11-15 20:30:51 -05:00
parent 26c666b4f3
commit b1816cb837
6 changed files with 3 additions and 21 deletions

View file

@ -136,19 +136,3 @@ SymbolTable::findAddress(const string &symbol, Addr &address) const
address = (*i).second;
return true;
}
string
SymbolTable::find(Addr addr) const
{
string s;
findSymbol(addr, s);
return s;
}
Addr
SymbolTable::find(const string &symbol) const
{
Addr a = 0;
findAddress(symbol, a);
return a;
}

View file

@ -72,9 +72,6 @@ class SymbolTable
bool findSymbol(Addr address, std::string &symbol) const;
bool findAddress(const std::string &symbol, Addr &address) const;
std::string find(Addr addr) const;
Addr find(const std::string &symbol) const;
};
/// Global unified debugging symbol table (for target). Conceptually

View file

@ -31,7 +31,6 @@
#include "cpu/base_cpu.hh"
#include "sim/eventq.hh"
#include "base/loader/symtab.hh"
#include "cpu/pc_event.hh"
#include "base/statistics.hh"
#include "cpu/exec_context.hh"

View file

@ -35,6 +35,7 @@
* up boot time.
*/
#include "base/loader/symtab.hh"
#include "base/trace.hh"
#include "cpu/exec_context.hh"
#include "cpu/base_cpu.hh"

View file

@ -26,6 +26,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "base/loader/symtab.hh"
#include "base/trace.hh"
#include "cpu/exec_context.hh"
#include "kern/tru64/tru64_events.hh"

View file

@ -32,7 +32,6 @@
#include <string>
#include <vector>
#include "base/loader/symtab.hh"
#include "base/statistics.hh"
#include "cpu/pc_event.hh"
#include "kern/system_events.hh"
@ -43,6 +42,7 @@ class PhysicalMemory;
class Platform;
class RemoteGDB;
class GDBListener;
class SymbolTable;
class ObjectFile;
class ExecContext;
namespace Kernel { class Binning; }