3 EXTENSION class Tb_entry
13 class Tb_entry_trap : public Tb_entry
18 Mword _ebp, _cr2, _eax, _eflags, _esp;
21 unsigned print(int max, char *buf) const;
22 } __attribute__((packed));
24 IMPLEMENTATION [ia32,ux]:
28 PUBLIC inline NEEDS ["cpu.h"]
31 { _tsc = Cpu::rdtsc(); }
33 PUBLIC inline NEEDS ["trap_state.h"]
35 Tb_entry_trap::set(Mword eip, Trap_state *ts)
38 _trapno = ts->_trapno;
42 _cs = (Unsigned16)ts->cs();
43 _ds = (Unsigned16)ts->_ds;
45 _eflags = ts->flags();
50 Tb_entry_trap::set(Mword eip, Mword trapno)
59 Tb_entry_trap::trapno() const
64 Tb_entry_trap::error() const
69 Tb_entry_trap::eax() const
74 Tb_entry_trap::cr2() const
79 Tb_entry_trap::ebp() const
84 Tb_entry_trap::cs() const
89 Tb_entry_trap::ds() const
94 Tb_entry_trap::sp() const
99 Tb_entry_trap::flags() const