[M3commit] CVS Update: cm3
Jay Krell
jkrell at elego.de
Sun Sep 20 03:50:32 CEST 2009
CVSROOT: /usr/cvs
Changes by: jkrell at birch. 09/09/20 03:50:32
Modified files:
cm3/m3-sys/m3gdb/gdb/gdb/: m3-util.c
Log message:
Very likely remove some porting work:
enum m3_target_typ
m3_target_pure ( char * name )
{ if (strstr(name, "NT386")) { return TARGET_NT386; }
/* This is crude but very likely to always be correct.
There is a 32bit mode on HP-UX/IA64 and ALPHA_NT is 32bit,
but these are hypothetical and unlikely to materialize
and could have "32" put in their names, and ALPHA_NT
would unlikely support m3gdb. */
if (strstr(name, "32")) { return TARGET_OTHER; }
if (strstr(name, "ALPHA")) { return TARGET_64; }
if (strstr(name, "64" )) { return TARGET_64; }
/* FIXME: Positively check for all M3 compiler target names, or at
least all those in m3middle/src/Target.m3 that cause a call on
Init64. */
return TARGET_OTHER;
} /* m3_target_pure */
where before it was checking for very specific 64bit targets
with strcmp.
More information about the M3commit
mailing list