projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6395da
)
Statetrace: Print the correct address of auxiliary vectors.
author
Gabe Black
<gblack@eecs.umich.edu>
Sun, 29 Jul 2007 08:29:53 +0000
(
01:29
-0700)
committer
Gabe Black
<gblack@eecs.umich.edu>
Sun, 29 Jul 2007 08:29:53 +0000
(
01:29
-0700)
The address of the stackpointer proceeding the vector minus 8 should be minus 16.
--HG--
extra : convert_revision :
648f01e9753e28391fc8d282bd9fe2bd47a0193f
util/statetrace/arch/tracechild_amd64.cc
patch
|
blob
|
history
diff --git
a/util/statetrace/arch/tracechild_amd64.cc
b/util/statetrace/arch/tracechild_amd64.cc
index 50574557581e3eb3f16eaead5fb3a10183285768..d408598e153be8417a95315b2551e36e703d8553 100644
(file)
--- 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.