From ca0622e7e0e42f223eb2ca79d634c91bf514502b Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Thu, 16 Sep 1993 23:45:46 +0000 Subject: * 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. --- gdb/config/a29k/tm-a29k.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gdb/config/a29k') 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; -- cgit v1.1