Statetrace: Rename i386 to i686.

--HG--
rename : util/statetrace/arch/i386/tracechild.cc => util/statetrace/arch/i686/tracechild.cc
rename : util/statetrace/arch/i386/tracechild.hh => util/statetrace/arch/i686/tracechild.hh
This commit is contained in:
Gabe Black 2011-03-02 22:53:11 -08:00
parent 3bcd77ddef
commit 9d2650792f
4 changed files with 15 additions and 15 deletions

View file

@ -49,7 +49,7 @@ the build/<arch>/ directories you specified on the command line.
''')
arches = 'amd64', 'arm', 'i386', 'sparc'
arches = 'amd64', 'arm', 'i686', 'sparc'
import os

View file

@ -33,12 +33,12 @@
#include <sys/ptrace.h>
#include <stdint.h>
#include "arch/i386/tracechild.hh"
#include "arch/i686/tracechild.hh"
using namespace std;
int64_t
I386TraceChild::getRegs(user_regs_struct & myregs, int num)
I686TraceChild::getRegs(user_regs_struct & myregs, int num)
{
assert(num < numregs && num >= 0);
switch (num) {
@ -69,7 +69,7 @@ I386TraceChild::getRegs(user_regs_struct & myregs, int num)
}
bool
I386TraceChild::update(int pid)
I686TraceChild::update(int pid)
{
oldregs = regs;
if (ptrace(PTRACE_GETREGS, pid, 0, &regs) != 0)
@ -79,20 +79,20 @@ I386TraceChild::update(int pid)
}
}
I386TraceChild::I386TraceChild()
I686TraceChild::I686TraceChild()
{
for (unsigned int x = 0; x < numregs; x++)
regDiffSinceUpdate[x] = false;
}
int64_t
I386TraceChild::getRegVal(int num)
I686TraceChild::getRegVal(int num)
{
return getRegs(regs, num);
}
int64_t
I386TraceChild::getOldRegVal(int num)
I686TraceChild::getOldRegVal(int num)
{
return getRegs(oldregs, num);
}
@ -100,5 +100,5 @@ I386TraceChild::getOldRegVal(int num)
TraceChild *
genTraceChild()
{
return new I386TraceChild;
return new I686TraceChild;
}

View file

@ -28,8 +28,8 @@
* Authors: Gabe Black
*/
#ifndef REGSTATE_I386_HH
#define REGSTATE_I386_HH
#ifndef REGSTATE_I686_HH
#define REGSTATE_I686_HH
#include <sys/user.h>
#include <sys/types.h>
@ -39,7 +39,7 @@
#include "base/tracechild.hh"
class I386TraceChild : public TraceChild
class I686TraceChild : public TraceChild
{
public:
enum RegNum
@ -67,7 +67,7 @@ class I386TraceChild : public TraceChild
public:
I386TraceChild();
I686TraceChild();
int64_t getRegVal(int num);
int64_t getOldRegVal(int num);
@ -76,7 +76,7 @@ class I386TraceChild : public TraceChild
std::ostream &
outputStartState(std::ostream & output)
{
output << "Printing i386 initial state not yet implemented"
output << "Printing i686 initial state not yet implemented"
<< std::endl;
return output;
}

View file

@ -44,10 +44,10 @@
#if !defined __hppa__
#error "Hppa toolchain required."
#endif
#elif defined __STATETRACE_I386__
#elif defined __STATETRACE_I686__
#if !(defined __i386__ || defined __i486__ || \
defined __i586__ || defined __i686__)
#error "I386 toolchain required."
#error "I686 toolchain required."
#endif
#elif defined __STATETRACE_IA64__
#if !defined __ia64__