From 322c9e534114ad45ed00169025d7cbe5ef5566ae Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 29 Apr 2017 10:54:24 +0000 Subject: [PATCH] Include debug information in release builds. Without debug information, `tbreak cortex_m_rt::reset_handler` does not work: rustc does not include the Rust support script directive, gdb does not load it, and breakpoints can only be set on functions using their full mangled name. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index d5a867d..3bf3b0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,3 +13,4 @@ cortex-m-rt = "0.2.0" [profile.release] lto = true +debug = true