Bug 3829

Summary: Code uses Build.BUILD_ARCH
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Project(s) to access: ssh public key:
Bug Depends on:    
Bug Blocks: 3694    

Description Andrew Cagney 2007-01-04 13:52:53 UTC
Code shouldn't be looking at the build arch, instead it should be looking at
attributes such as the word-size, or what the executable was built as (--target=
is not reliable, cf i386 vs i686).

frysk/proc/TestIsa.java:314:    if (!Build.BUILD_ARCH.equals("x86_64"))
frysk/proc/TestIsa.java:371:    if (!Build.BUILD_ARCH.equals("x86_64"))
frysk/proc/IsaFactory.java:94:          if (frysk.core.Build.BUILD_ARCH.equals
("x86_64"))
frysk/proc/IsaFactory.java:102:       if
(frysk.core.Build.BUILD_ARCH.equals("powerpc64"))
frysk/junit/TestCase.java:76:    if (Build.BUILD_ARCH.indexOf ("powerpc") != - 1) {
frysk/junit/TestCase.java:88:    if (Build.BUILD_ARCH.indexOf ("_64") != - 1) {
frysk/junit/Runner.java:273:        this.archBuild = Build.BUILD_ARCH;
frysk/junit/Runner.java:315:        this.archBuild = Build.BUILD_ARCH;
frysk/junit/Runner.java:581:    setBuildArch (Build.BUILD_ARCH);
lib/opcodes/tests/TestOpcodes.java:79:    //boolean is64 =
Build.BUILD_ARCH.indexOf("_64") != - 1;
lib/opcodes/tests/TestOpcodes.java:82:    if
(Build.BUILD_ARCH.indexOf("powerpc") != - 1)
lib/opcodes/tests/TestOpcodes.java:98:    else if
(Build.BUILD_ARCH.indexOf("_64") != - 1)
lib/opcodes/tests/DummyByteBuffer.java:54:    if
(Build.BUILD_ARCH.indexOf("powerpc") != - 1)
lib/opcodes/tests/DummyByteBuffer.java:70:    else if
(Build.BUILD_ARCH.indexOf("_64") != - 1)
bugzilla/3349.xml:51:        testRunner.setBuildArch(Build.BUILD_ARCH);
bugzilla/2712.xml:277:to replace &quot;ppc&quot; with &quot;powerpc&quot; to
match Build.BUILD_ARCH.