summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-07-29 01:29:53 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-07-29 01:29:53 -0700
commitc52e28a4d9ddfcfb3e3610b88c1470d3147375a5 (patch)
tree1191245caf709df2c4ae7c078ef514e90fcdf9b4 /util
parentb6395da4cea2d12f27ae52517675dfdf507d4a92 (diff)
downloadgem5-c52e28a4d9ddfcfb3e3610b88c1470d3147375a5.tar.xz
Statetrace: Print the correct address of auxiliary vectors.
The address of the stackpointer proceeding the vector minus 8 should be minus 16. --HG-- extra : convert_revision : 648f01e9753e28391fc8d282bd9fe2bd47a0193f
Diffstat (limited to 'util')
-rw-r--r--util/statetrace/arch/tracechild_amd64.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/statetrace/arch/tracechild_amd64.cc b/util/statetrace/arch/tracechild_amd64.cc
index 505745575..d408598e1 100644
--- a/util/statetrace/arch/tracechild_amd64.cc
+++ b/util/statetrace/arch/tracechild_amd64.cc
@@ -202,7 +202,7 @@ ostream & AMD64TraceChild::outputStartState(ostream & os)
auxVal = ptrace(PTRACE_PEEKDATA, pid, sp, 0);
sp += 8;
sprintf(obuf, "0x%016llx: Auxiliary vector = {0x%016llx, 0x%016llx}\n",
- sp - 8, auxType, auxVal);
+ sp - 16, auxType, auxVal);
os << obuf;
} while(auxType != 0 || auxVal != 0);
//Print out the argument strings, environment strings, and file name.