forked from M-Labs/libfringe
implement Debug for all components of Context
This commit is contained in:
parent
519d86ca4c
commit
7adb9e7381
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue