aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-base.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-03-27 04:25:45 +0000
committerAndrew Cagney <cagney@redhat.com>1998-03-27 04:25:45 +0000
commit82ea14fd9d61893514375b6649e0a74a076d4443 (patch)
tree7dc15ebabf667a3da1da31e47f628b9de1906261 /sim/common/sim-base.h
parent227b6b55faa2b122d348563a49061730caa9b90c (diff)
downloadgdb-82ea14fd9d61893514375b6649e0a74a076d4443.zip
gdb-82ea14fd9d61893514375b6649e0a74a076d4443.tar.gz
gdb-82ea14fd9d61893514375b6649e0a74a076d4443.tar.bz2
Define CPU_INDEX. Initialize.
For mips_options, iterate over MAX_NR_PROCESSORS when setting options.
Diffstat (limited to 'sim/common/sim-base.h')
-rw-r--r--sim/common/sim-base.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sim/common/sim-base.h b/sim/common/sim-base.h
index 654e71e..1c395df 100644
--- a/sim/common/sim-base.h
+++ b/sim/common/sim-base.h
@@ -1,5 +1,5 @@
/* Simulator pseudo baseclass.
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997-1998 Free Software Foundation, Inc.
Contributed by Cygnus Support.
This file is part of GDB, the GNU debugger.
@@ -174,6 +174,10 @@ typedef struct {
struct _bfd *prog_bfd;
#define STATE_PROG_BFD(sd) ((sd)->base.prog_bfd)
+ /* Symbol table for prog_bfd */
+ struct symbol_cache_entry **prog_syms;
+#define STATE_PROG_SYMS(sd) ((sd)->base.prog_syms)
+
/* The program's text section. */
struct sec *text_section;
/* Starting and ending text section addresses from the bfd. */
@@ -243,6 +247,10 @@ typedef struct {
SIM_DESC state;
#define CPU_STATE(cpu) ((cpu)->base.state)
+ /* Processor index within the SD_DESC */
+ int index;
+#define CPU_INDEX(cpu) ((cpu)->base.index)
+
/* The name of the cpu. */
const char *name;
#define CPU_NAME(cpu) ((cpu)->base.name)