From 9d2650792fa41155773b22771acbabdb4fbb164a Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 2 Mar 2011 22:53:11 -0800 Subject: [PATCH] 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 --- util/statetrace/SConstruct | 2 +- util/statetrace/arch/{i386 => i686}/tracechild.cc | 14 +++++++------- util/statetrace/arch/{i386 => i686}/tracechild.hh | 10 +++++----- util/statetrace/base/arch_check.h | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) rename util/statetrace/arch/{i386 => i686}/tracechild.cc (91%) rename util/statetrace/arch/{i386 => i686}/tracechild.hh (93%) diff --git a/util/statetrace/SConstruct b/util/statetrace/SConstruct index 2e93162d8..5909772c6 100644 --- a/util/statetrace/SConstruct +++ b/util/statetrace/SConstruct @@ -49,7 +49,7 @@ the build// directories you specified on the command line. ''') -arches = 'amd64', 'arm', 'i386', 'sparc' +arches = 'amd64', 'arm', 'i686', 'sparc' import os diff --git a/util/statetrace/arch/i386/tracechild.cc b/util/statetrace/arch/i686/tracechild.cc similarity index 91% rename from util/statetrace/arch/i386/tracechild.cc rename to util/statetrace/arch/i686/tracechild.cc index 67223666c..0ac977b4a 100644 --- a/util/statetrace/arch/i386/tracechild.cc +++ b/util/statetrace/arch/i686/tracechild.cc @@ -33,12 +33,12 @@ #include #include -#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, ®s) != 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; } diff --git a/util/statetrace/arch/i386/tracechild.hh b/util/statetrace/arch/i686/tracechild.hh similarity index 93% rename from util/statetrace/arch/i386/tracechild.hh rename to util/statetrace/arch/i686/tracechild.hh index 30c75afec..c21955506 100644 --- a/util/statetrace/arch/i386/tracechild.hh +++ b/util/statetrace/arch/i686/tracechild.hh @@ -28,8 +28,8 @@ * Authors: Gabe Black */ -#ifndef REGSTATE_I386_HH -#define REGSTATE_I386_HH +#ifndef REGSTATE_I686_HH +#define REGSTATE_I686_HH #include #include @@ -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; } diff --git a/util/statetrace/base/arch_check.h b/util/statetrace/base/arch_check.h index ab350e5c7..a5bdf477d 100644 --- a/util/statetrace/base/arch_check.h +++ b/util/statetrace/base/arch_check.h @@ -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__