aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/a29k
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-16 23:45:46 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-16 23:45:46 +0000
commitca0622e7e0e42f223eb2ca79d634c91bf514502b (patch)
treec14890437eaca1e694a8796eb07f72df736ba9b5 /gdb/config/a29k
parentde8c35cfdb6f8dd8eaa87ef4da72d77fae1b9049 (diff)
downloadgdb-ca0622e7e0e42f223eb2ca79d634c91bf514502b.zip
gdb-ca0622e7e0e42f223eb2ca79d634c91bf514502b.tar.gz
gdb-ca0622e7e0e42f223eb2ca79d634c91bf514502b.tar.bz2
* remote-udi.c, remote-adapt.c, remote-mm.c: Move processor_type
to tm-a29k.h and a29k-tdep.c and make it an enum. * a29k-tdep.c (a29k_get_processor_type): New function. Fix many aspects of how we detected the processor type. * remote-udi.c, remote-adapt.c, remote-mm.c (*_open): Call it rather than figuring out the type ourselves.
Diffstat (limited to 'gdb/config/a29k')
-rw-r--r--gdb/config/a29k/tm-a29k.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/config/a29k/tm-a29k.h b/gdb/config/a29k/tm-a29k.h
index 9306c96..0b027be 100644
--- a/gdb/config/a29k/tm-a29k.h
+++ b/gdb/config/a29k/tm-a29k.h
@@ -715,3 +715,14 @@ extern void pop_frame ();
"Invalid register number %d in symbol table entry for %s\n", \
(num), SYMBOL_SOURCE_NAME (sym)), (num) \
: (num))
+
+extern enum a29k_processor_types {
+ a29k_unknown,
+
+ /* Bit 0x400 of the CPS does *not* identify freeze mode, i.e. 29000,
+ 29030, etc. */
+ a29k_no_freeze_mode,
+
+ /* Bit 0x400 of the CPS does identify freeze mode, i.e. 29050. */
+ a29k_freeze_mode
+} processor_type;