https://github.com/abdullah-niaz/operating-system
https://github.com/abdullah-niaz/operating-system
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abdullah-niaz/operating-system
- Owner: Abdullah-Niaz
- Created: 2024-03-20T21:24:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-25T17:39:29.000Z (over 1 year ago)
- Last Synced: 2025-01-17T10:28:47.971Z (9 months ago)
- Language: C++
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Operating-System
[Guide to Run: ]()
# g++ -g -o code.exe code.cpp
## gdb code.exe* **break:** Set a breakpoint at a specific line or function.
- **line break:**
(gdb) break 10
(gdb) break filename.cpp:10
- **Function:**
(gdb) break function_name
- **Address BreakPoint:**
(gdb) break *0xaddress
- **Condition BreakPoint:**
(gdb) break 10 if x == 10
- **information of breakpoint:**
(gdb) info breakpoints
- **delete breakpoints**
(gdb) delete 1* **run:** Run the program until the next breakpoint or until it finishes.
* **continue:** Continue running the program until the next breakpoint.
* **next:** Execute the next line of code.
* **step:** Step into functions called on the current line.
* **print:** Print the value of a variable.* **backtrace:** Print a backtrace of the function call stack.