-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Displays waiting for debugger window (#1203)
- Loading branch information
1 parent
2dccc89
commit 54326ec
Showing
13 changed files
with
128 additions
and
67 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pub use self::screen::*; | ||
pub use self::vmm::*; | ||
|
||
mod screen; | ||
mod vmm; | ||
|
||
/// Create a new channel to communicate with the VMM. | ||
pub fn create_channel() -> (VmmStream, ScreenStream) { | ||
// Create streams. | ||
let vmm = VmmStream::new(); | ||
let screen = ScreenStream::new(); | ||
|
||
(vmm, screen) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use gdbstub::stub::MultiThreadStopReason; | ||
|
||
/// Provides method to send and receive events from the screen. | ||
pub struct ScreenStream {} | ||
|
||
impl ScreenStream { | ||
pub(super) fn new() -> Self { | ||
Self {} | ||
} | ||
|
||
pub fn recv(&self) {} | ||
|
||
pub fn breakpoint(&self, stop: Option<MultiThreadStopReason<u64>>) -> BreakpointLock { | ||
BreakpointLock {} | ||
} | ||
} | ||
|
||
/// This struct will prevent the other CPU from entering a debugger dispatch loop. | ||
pub struct BreakpointLock {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// Provides method to send and receive events from the VMM. | ||
pub struct VmmStream {} | ||
|
||
impl VmmStream { | ||
pub(super) fn new() -> Self { | ||
Self {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { VerticalBox } from "std-widgets.slint"; | ||
|
||
export component WaitForDebugger inherits Window { | ||
in property <string> address; | ||
|
||
title: "Obliteration"; | ||
icon: @image-url("icon.png"); | ||
width: 400px; | ||
height: 50px; | ||
|
||
VerticalBox { | ||
alignment: center; | ||
|
||
Text { | ||
text: "Waiting for debugger at \{address}."; | ||
horizontal-alignment: center; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters