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
This commit is contained in:
Gabe Black 2007-07-29 01:29:53 -07:00
parent b6395da4ce
commit c52e28a4d9

View file

@ -202,7 +202,7 @@ ostream & AMD64TraceChild::outputStartState(ostream & os)
auxVal = ptrace(PTRACE_PEEKDATA, pid, sp, 0); auxVal = ptrace(PTRACE_PEEKDATA, pid, sp, 0);
sp += 8; sp += 8;
sprintf(obuf, "0x%016llx: Auxiliary vector = {0x%016llx, 0x%016llx}\n", sprintf(obuf, "0x%016llx: Auxiliary vector = {0x%016llx, 0x%016llx}\n",
sp - 8, auxType, auxVal); sp - 16, auxType, auxVal);
os << obuf; os << obuf;
} while(auxType != 0 || auxVal != 0); } while(auxType != 0 || auxVal != 0);
//Print out the argument strings, environment strings, and file name. //Print out the argument strings, environment strings, and file name.