Professional Documents
Culture Documents
Itw1 1
Itw1 1
(AIML)
Lecture-1
About the Course:
Lab Type Course (2 Credits)
Evaluation Will be of 100Marks
Attendance+Lab Assignments
Contents:
Linux Based Commands
Linux System/VM
Debugger
Debugger is a program that runs/simulates another program allows to :
-pause and continue its execution
-set “breakpoints” or conditions where the execution pauses so you can look
at its state.
-view and watch variable values
-step through the program line by line.
➢ Gdb(GNU debugger)
Debugger In Linux
GDB, the GNU Debugger
Text-based, invoked with:
Argument descriptions:
You can install DDD (and GDB) in your computer (you must run Linux or
Unix of course) – this software is free ☺.
source window
command tool
machine code
debugger console
status line
open program (execution file)
To open your executable file :
- File → Open Program
- choose sample file
you should get the following window →
(gdb)
program execution
- Program → Run
(Run Program dialog box appears)
In Run with Arguments, you can enter arguments for the program.