implement Debug for all components of Context

master
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;
#[allow(raw_pointer_derive)]
#[derive(Debug)]
pub struct Registers {
rsp: *mut usize
}

View File

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

View File

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