process.cc (5874:7a74edaa8741) process.cc (5955:d35d2b28df38)
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 703 unchanged lines hidden (view full) ---

712 objFile->getArch() != ObjectFile::I386)
713 fatal("Object file architecture does not match compiled ISA (x86).");
714 switch (objFile->getOpSys()) {
715 case ObjectFile::UnknownOpSys:
716 warn("Unknown operating system; assuming Linux.");
717 // fall through
718 case ObjectFile::Linux:
719 if (objFile->getArch() == ObjectFile::X86_64) {
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 703 unchanged lines hidden (view full) ---

712 objFile->getArch() != ObjectFile::I386)
713 fatal("Object file architecture does not match compiled ISA (x86).");
714 switch (objFile->getOpSys()) {
715 case ObjectFile::UnknownOpSys:
716 warn("Unknown operating system; assuming Linux.");
717 // fall through
718 case ObjectFile::Linux:
719 if (objFile->getArch() == ObjectFile::X86_64) {
720 process = new X86LinuxProcess(params, objFile);
720 process = new X86_64LinuxProcess(params, objFile);
721 } else {
721 } else {
722 panic("32 bit x86 Linux process aren't implemented.\n");
722 process = new I386LinuxProcess(params, objFile);
723 }
724 break;
725
726 default:
727 fatal("Unknown/unsupported operating system.");
728 }
729#elif THE_ISA == MIPS_ISA
730 if (objFile->getArch() != ObjectFile::Mips)

--- 41 unchanged lines hidden ---
723 }
724 break;
725
726 default:
727 fatal("Unknown/unsupported operating system.");
728 }
729#elif THE_ISA == MIPS_ISA
730 if (objFile->getArch() != ObjectFile::Mips)

--- 41 unchanged lines hidden ---