Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-17067-1466467
proj158-rust-debugger
Commits
da87be42
Unverified
Commit
da87be42
authored
2 years ago
by
chenzhiy2001
Committed by
GitHub
2 years ago
Browse files
Options
Download
Patches
Plain Diff
Update README.md
parent
ba2d78ca
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+4
-2
README.md
with
4 additions
and
2 deletions
+4
-2
README.md
+
4
−
2
View file @
da87be42
...
...
@@ -262,9 +262,11 @@ VSCode 其实提供了几个重要的原生 request 接口,如 variablesReques
//清空该文件的断点
const
path
=
args
.
source
.
path
;
const
spaceName
=
this
.
addressSpaces
.
pathToSpaceName
(
path
);
//保存断点信息,如果这个断点不是当前空间的(比如还在内核态时就设置用户态的断点),暂时不通知GDB设置断点
//保存断点信息,如果这个断点不是当前空间的(比如还在内核态时就设置用户态的
//断点),暂时不通知GDB设置断点。
//如果这个断点是当前地址空间,或者是内核入口断点,那么就通知GDB立即设置断点
if
((
spaceName
===
this
.
addressSpaces
.
getCurrentSpaceName
())
||
(
path
===
"
src/trap/mod.rs
"
&&
args
.
breakpoints
[
0
].
line
===
30
)
if
((
spaceName
===
this
.
addressSpaces
.
getCurrentSpaceName
())
||
(
path
===
"
src/trap/mod.rs
"
&&
args
.
breakpoints
[
0
].
line
===
30
)
)
{
// TODO rules can be set by user
this
.
addressSpaces
.
saveBreakpointsToSpace
(
args
,
spaceName
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets