Add missing Debug impls

This commit is contained in:
pjht 2022-10-18 17:19:02 -05:00
parent e8afb395a0
commit d782b79a1f
3 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@ use std::fmt::Display;
use crate::SymbolTables; use crate::SymbolTables;
#[derive(Debug)]
pub enum Location { pub enum Location {
Symbol((String, String)), Symbol((String, String)),
Address(u32), Address(u32),

View File

@ -39,6 +39,7 @@ use std::{
process, process,
}; };
#[derive(Debug)]
pub struct SymbolTable { pub struct SymbolTable {
symbols: HashMap<String, Symbol>, symbols: HashMap<String, Symbol>,
breakpoints: Vec<String>, breakpoints: Vec<String>,

View File

@ -2,6 +2,7 @@ use std::fmt::Display;
use elf::symbol::Symbol as ElfSymbol; use elf::symbol::Symbol as ElfSymbol;
#[derive(Debug)]
pub struct Symbol { pub struct Symbol {
section: u16, section: u16,
value: u32, value: u32,