From 4b0622f6fba5190e77d1a0d26af32a22eb85261d Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Mon, 1 Apr 2024 16:37:06 +0100 Subject: [PATCH] Always include the code --- agb-addr2line/src/main.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/agb-addr2line/src/main.rs b/agb-addr2line/src/main.rs index b23cae53..6dec8cf8 100644 --- a/agb-addr2line/src/main.rs +++ b/agb-addr2line/src/main.rs @@ -17,10 +17,6 @@ struct Args { /// The output of agb's dump dump: String, - - /// Whether the actual code should be shown - #[arg(short, long)] - code: bool, } struct Location { @@ -53,7 +49,7 @@ fn main() -> anyhow::Result<()> { address += 0x0800_0000; } - print_address(&ctx, i, address, cli.code)?; + print_address(&ctx, i, address)?; } Ok(()) @@ -63,7 +59,6 @@ fn print_address( ctx: &addr2line::Context, index: usize, address: u64, - include_code: bool, ) -> anyhow::Result<()> { let mut frames = ctx.find_frames(address).skip_all_loads()?; @@ -105,7 +100,7 @@ fn print_address( location.line.to_string().green() ); - if include_code && location.line != 0 && is_interesting { + if location.line != 0 && is_interesting { print_line_of_code(&frame, location)?; }