Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
labs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emil Kitti
labs
Commits
3e239743
Commit
3e239743
authored
7 years ago
by
Emil Kitti
Browse files
Options
Downloads
Patches
Plain Diff
bare0_1
parent
91c83a75
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/bare0.rs
+10
-3
10 additions, 3 deletions
examples/bare0.rs
with
10 additions
and
3 deletions
examples/bare0.rs
+
10
−
3
View file @
3e239743
...
@@ -30,16 +30,23 @@ fn main() {
...
@@ -30,16 +30,23 @@ fn main() {
// 1. run the program in the debugger,
// 1. run the program in the debugger,
// let the program run for a while and then press pause
// let the program run for a while and then press pause
// look in the (Local -vscode) Variables view what do you find
// look in the (Local -vscode) Variables view what do you find
// ** your answer here **
//
// (gdb) info locals
// x = 6686607
//
//
// in the Expressions (WATCH -vscode) view add X and Y
// in the Expressions (WATCH -vscode) view add X and Y
// what do you find
// what do you find
//
//
// ** your answer here **
// (gdb) print X
// $19 = 6686606
// (gdb) print Y
// $20 = 6686606
//
// step through one complete iteration of the loop
// step through one complete iteration of the loop
// and see how the (Local) Variables are updated
// and see how the (Local) Variables are updated
// can you foresee what will eventually happen?
// can you foresee what will eventually happen?
// ** place your answer here **
//
// The unsigned 32 bit variable will eventually overflow.
//
//
// commit your answers (bare0_1)
// commit your answers (bare0_1)
//
//
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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