Reenable Drop on Session
@@ -180,7 +180,6 @@ impl Session {
sequence_handle.reset_hardware_deassert(&mut memory_interface)?;
}
- let (mut interface, target, _core) = {
let cores = target
.cores
.iter()
@@ -205,24 +204,12 @@ impl Session {
core.wait_for_core_halted(Duration::from_millis(100))?;
}
- match session.interface {
- ArchitectureInterface::Arm(interface) => {
- (interface, session.target, session.cores.remove(0))
- }
- ArchitectureInterface::Riscv(_) => unreachable!(),
- }
- };
-
{
+ let interface = session.get_arm_interface()?;
let mut memory_interface = interface.memory_interface(default_memory_ap)?;
// we need to halt the chip here
sequence_handle.reset_catch_clear(&mut memory_interface)?;
}
- let mut session = Session {
- target,
- interface: ArchitectureInterface::Arm(interface),
- cores,
- };
{
let mut core = session.core(0)?;
@@ -465,7 +452,6 @@ impl Session {
// This test ensures that [Session] is fully [Send] + [Sync].
static_assertions::assert_impl_all!(Session: Send);
-/*
// TODO tiwalun: Enable again, after rework of Session::new is done.
impl Drop for Session {
fn drop(&mut self) {
@@ -479,7 +465,6 @@ impl Drop for Session {
}
}
}
-*/
/// Determine the [Target] from a [TargetSelector].
///
