From 748974ef2c0e969e95cccc9cb061436d5a1d1b35 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Tue, 29 Oct 2024 14:03:04 +1300 Subject: Load and display symbols in debug information The assembler saves out symbols files, which are loaded automatically by the emulator when present. The name and location of the most recent label is displayed with the debug information when symbols are loaded. --- src/emulators.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/emulators.rs') diff --git a/src/emulators.rs b/src/emulators.rs index fcebe1d..56f7181 100644 --- a/src/emulators.rs +++ b/src/emulators.rs @@ -8,6 +8,8 @@ use crate::*; use phosphor::Colour; +use std::path::PathBuf; + pub enum EmulatorSignal { Promote, @@ -25,4 +27,6 @@ pub struct EmulatorConfig { pub initial_transmission: Option>, pub decode_stdin: bool, pub encode_stdout: bool, + + pub symbols_path: Option, } -- cgit v1.2.3-70-g09d2