From a992d20414bcdba5cb95bd1c788e7db4ac071231 Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Sun, 21 Jun 2020 13:36:45 +0200 Subject: [PATCH] Updating comment about debugging --- src/main.rs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index eb7d282..3af98f5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -172,13 +172,23 @@ const APP: () = { timer: hal::timer::Timer, - // Note: Do not rustfmt the following definition, as it appears to cause a bug in GDB that - // results in failing to set breakpoints at correct locations. + // Note: It appears that rustfmt generates a format that GDB cannot recognize, which + // results in GDB breakpoints being set improperly. To debug, redefine the following + // definition to: + // + // ```rust + // net_interface: net::iface::EthernetInterface< + // 'static, + // 'static, + // 'static, + // ethernet::EthernetDMA<'static>>, + // ``` net_interface: net::iface::EthernetInterface< 'static, 'static, 'static, - ethernet::EthernetDMA<'static>>, + ethernet::EthernetDMA<'static>, + >, eth_mac: ethernet::EthernetMAC, mac_addr: net::wire::EthernetAddress,