Skip to content
Snippets Groups Projects
Commit 3e239743 authored by Emil Kitti's avatar Emil Kitti
Browse files

bare0_1

parent 91c83a75
No related branches found
No related tags found
No related merge requests found
...@@ -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)
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment