1
0
forked from Rativel/BurritOS

Add launch argument parser, add debug parameter to machine

burritos now launch binary
This commit is contained in:
Quentin Legot
2023-04-06 13:27:03 +02:00
parent 2f0b9e6592
commit 9cc57e7f03
9 changed files with 459 additions and 60 deletions

View File

@@ -612,7 +612,7 @@ mod test {
#[test]
fn test_parse_elf() {
let mut machine = Machine::default();
let mut machine = Machine::new(true);
let loader = Loader::load_and_parse("./target/guac/unsigned_addition.guac").expect("IO Error");
loader.load_into_machine(&mut machine, 0).expect("Parsing error");
assert!(!loader.elf_header.is_32bits);
@@ -633,7 +633,7 @@ mod test {
#[test]
fn test_parse_section() {
let mut machine = Machine::default();
let mut machine = Machine::new(true);
let loader = Loader::load_and_parse("./target/guac/unsigned_addition.guac").expect("IO Error");
loader.load_into_machine(&mut machine, 0).expect("Parsing error");
assert_eq!(9, loader.sections.len());