debugger: Fix not being able to stop a Go debug session when no breakpoints were ever hit (#35190)
Fixes #35030 Release Notes: - debugger: Fixed a bug where a Go debug session could not be stopped if no breakpoint was ever hit.
This commit is contained in:
parent
cef7d53607
commit
4aae7aed93
6 changed files with 19 additions and 24 deletions
|
@ -61,15 +61,10 @@ use worktree::Worktree;
|
|||
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, PartialOrd, Ord, Eq)]
|
||||
#[repr(transparent)]
|
||||
pub struct ThreadId(pub u64);
|
||||
pub struct ThreadId(pub i64);
|
||||
|
||||
impl ThreadId {
|
||||
pub const MIN: ThreadId = ThreadId(u64::MIN);
|
||||
pub const MAX: ThreadId = ThreadId(u64::MAX);
|
||||
}
|
||||
|
||||
impl From<u64> for ThreadId {
|
||||
fn from(id: u64) -> Self {
|
||||
impl From<i64> for ThreadId {
|
||||
fn from(id: i64) -> Self {
|
||||
Self(id)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue