Updating comment about debugging

This commit is contained in:
Ryan Summers 2020-06-21 13:36:45 +02:00
parent 7e279ed87c
commit a992d20414
1 changed files with 13 additions and 3 deletions

View File

@ -172,13 +172,23 @@ const APP: () = {
timer: hal::timer::Timer<hal::stm32::TIM2>, timer: hal::timer::Timer<hal::stm32::TIM2>,
// Note: Do not rustfmt the following definition, as it appears to cause a bug in GDB that // Note: It appears that rustfmt generates a format that GDB cannot recognize, which
// results in failing to set breakpoints at correct locations. // 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< net_interface: net::iface::EthernetInterface<
'static, 'static,
'static, 'static,
'static, 'static,
ethernet::EthernetDMA<'static>>, ethernet::EthernetDMA<'static>,
>,
eth_mac: ethernet::EthernetMAC, eth_mac: ethernet::EthernetMAC,
mac_addr: net::wire::EthernetAddress, mac_addr: net::wire::EthernetAddress,