fix stuff
This commit is contained in:
parent
5899c8d160
commit
4b28d0a406
3 changed files with 25 additions and 17 deletions
|
|
@ -149,8 +149,8 @@ impl DebugInfo {
|
|||
|
||||
/// A state machine that interpret a [`DebugInfoItem`].
|
||||
#[derive(Debug, PartialEq, Eq, Clone)]
|
||||
pub struct DebugInfoReader<'a> {
|
||||
debug_info: &'a DebugInfoItem,
|
||||
pub struct DebugInfoReader {
|
||||
debug_info: DebugInfoItem,
|
||||
pub pc: usize,
|
||||
pub address: u32,
|
||||
pub line: u32,
|
||||
|
|
@ -161,17 +161,18 @@ pub struct DebugInfoReader<'a> {
|
|||
pub register_states: Vec<DebugRegState>,
|
||||
}
|
||||
|
||||
impl<'a> DebugInfoReader<'a> {
|
||||
impl DebugInfoReader {
|
||||
pub fn new(
|
||||
debug_info: &'a DebugInfoItem,
|
||||
debug_info: DebugInfoItem,
|
||||
//source_file_idx: Option<u32>,
|
||||
//nb_reg: usize
|
||||
) -> Self {
|
||||
let line = debug_info.line_start.0;
|
||||
Self {
|
||||
debug_info,
|
||||
pc: 0,
|
||||
address: 0,
|
||||
line: debug_info.line_start.0,
|
||||
line,
|
||||
//source_file_idx,
|
||||
//prologue_end: false,
|
||||
//epilogue_begin: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue