1
0
Fork 0

implement Debug for all components of Context

This commit is contained in:
edef 2015-04-16 07:10:34 -04:00
parent 519d86ca4c
commit 7adb9e7381
3 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,8 @@ use super::common::{push, rust_trampoline};
pub const STACK_ALIGN: usize = 16; pub const STACK_ALIGN: usize = 16;
#[allow(raw_pointer_derive)]
#[derive(Debug)]
pub struct Registers { pub struct Registers {
rsp: *mut usize rsp: *mut usize
} }

View File

@ -6,6 +6,7 @@ use arch::Registers;
use stack; use stack;
use debug::StackId; use debug::StackId;
#[derive(Debug)]
pub struct Context<'a, Stack: stack::Stack> { pub struct Context<'a, Stack: stack::Stack> {
regs: Registers, regs: Registers,
_stack_id: StackId, _stack_id: StackId,

View File

@ -5,6 +5,7 @@ use stack;
mod valgrind; mod valgrind;
#[derive(Debug)]
pub struct StackId(valgrind::stack_id_t); pub struct StackId(valgrind::stack_id_t);
impl StackId { impl StackId {