Statetrace: Use sys/user.h instead of linux/user.h.
This commit is contained in:
parent
d7a47af12d
commit
16d997840a
2 changed files with 7 additions and 7 deletions
|
@ -54,12 +54,12 @@ I386TraceChild::getRegs(user_regs_struct & myregs, int num)
|
||||||
case EBP: return myregs.ebp;
|
case EBP: return myregs.ebp;
|
||||||
case ESP: return myregs.esp;
|
case ESP: return myregs.esp;
|
||||||
//Segmentation registers
|
//Segmentation registers
|
||||||
case CS: return myregs.cs;
|
case CS: return myregs.xcs;
|
||||||
case DS: return myregs.ds;
|
case DS: return myregs.xds;
|
||||||
case ES: return myregs.es;
|
case ES: return myregs.xes;
|
||||||
case FS: return myregs.fs;
|
case FS: return myregs.xfs;
|
||||||
case GS: return myregs.gs;
|
case GS: return myregs.xgs;
|
||||||
case SS: return myregs.ss;
|
case SS: return myregs.xss;
|
||||||
//PC
|
//PC
|
||||||
case EIP: return myregs.eip;
|
case EIP: return myregs.eip;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#ifndef REGSTATE_I386_HH
|
#ifndef REGSTATE_I386_HH
|
||||||
#define REGSTATE_I386_HH
|
#define REGSTATE_I386_HH
|
||||||
|
|
||||||
#include <linux/user.h>
|
#include <sys/user.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
Loading…
Reference in a new issue