summaryrefslogtreecommitdiff
path: root/util/statetrace/base
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2011-04-15 10:44:06 -0700
committerNathan Binkert <nate@binkert.org>2011-04-15 10:44:06 -0700
commit39a055645f77e0fa7bf49406635dba6bd65e361f (patch)
treea7df44358c75ff2de6e6f1549755f72cddb7d735 /util/statetrace/base
parent50fda09ac79b2dc1aa31fbced8d19b23d683fbab (diff)
downloadgem5-39a055645f77e0fa7bf49406635dba6bd65e361f.tar.xz
includes: sort all includes
Diffstat (limited to 'util/statetrace/base')
-rw-r--r--util/statetrace/base/regstate.hh3
-rw-r--r--util/statetrace/base/statetrace.cc18
-rw-r--r--util/statetrace/base/tracechild.cc10
3 files changed, 17 insertions, 14 deletions
diff --git a/util/statetrace/base/regstate.hh b/util/statetrace/base/regstate.hh
index bab3485c6..ac350ddba 100644
--- a/util/statetrace/base/regstate.hh
+++ b/util/statetrace/base/regstate.hh
@@ -31,9 +31,10 @@
#ifndef REGSTATE_H
#define REGSTATE_H
-#include <string>
#include <stdint.h>
+#include <string>
+
class RegState
{
protected:
diff --git a/util/statetrace/base/statetrace.cc b/util/statetrace/base/statetrace.cc
index 156983a67..fd6f40925 100644
--- a/util/statetrace/base/statetrace.cc
+++ b/util/statetrace/base/statetrace.cc
@@ -28,22 +28,22 @@
* Authors: Gabe Black
*/
-#include "base/arch_check.h"
-
-#include <cstring>
-#include <errno.h>
-#include <fstream>
-#include <iostream>
-#include <netdb.h>
#include <netinet/in.h>
-#include <stdio.h>
-#include <string>
#include <sys/ptrace.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/wait.h>
+#include <netdb.h>
#include <unistd.h>
+#include <cerrno>
+#include <cstdio>
+#include <cstring>
+#include <fstream>
+#include <iostream>
+#include <string>
+
+#include "base/arch_check.h"
#include "tracechild.hh"
using namespace std;
diff --git a/util/statetrace/base/tracechild.cc b/util/statetrace/base/tracechild.cc
index b5665ff37..d22f2fd43 100644
--- a/util/statetrace/base/tracechild.cc
+++ b/util/statetrace/base/tracechild.cc
@@ -28,13 +28,15 @@
* Authors: Gabe Black
*/
-#include "tracechild.hh"
-#include <cstring>
-#include <errno.h>
-#include <iostream>
#include <sys/ptrace.h>
#include <sys/wait.h>
+#include <cerrno>
+#include <cstring>
+#include <iostream>
+
+#include "tracechild.hh"
+
using namespace std;
bool