SlideShare a Scribd company logo
1 of 18
Debugging With GNU
Debugger GDB
By
Kyaw Thiha
ICEH, ICWAPT, CWSE,
Debugging with debug symbol file
Contents
• What is Debugging
• What is Debugger?
• What are Debugger Symbols?
• Debugging Symbols
• Ripping Symbols off a Binary
• Adding Debug Symbols to a Binary
• What in Symbols Files
• Stripping Symbols off a Binary
• Setting a Breakpoint
• Disable / Enable / Delete Breakpoint
Contents
• Examine Memory
• Modify CPU and Memory
• Working with variables, functions in GDB
What is Debugging ?
• “De” + “Bug” = Debug
• finding and reducing the number of bugs, in a computer
program or a piece of electronic hardware,
• software and electronic systems have various common
debugging techniques have expanded with more methods
to detect anomalies, assess impact,
What is Debugger ?
• A special program used to find errors (bugs) in other
programs. A debugger allows a programmer to stop a
program at any point and examine and change the values of
variables.
• Examples –
-GNU Debugger
-Intel Debugger
-softIce
-WinDBG
What are Debugger Symbols ?
• information that expresses which programming-language
constructs generated a specific piece of machine code in a
given executable module.
• embedded in the binary itself or separate file
What are Debugger Symbols ?
• Kyaw Thiha (handsome)
• Young (25)
• Skinny (120 lb)
• IT ( Information Security)
• Myanmar (Yangon)
• Kyaw Thiha
• Young
• skinny
• IT
• Myanmar
Debugging Symbols
• GCC use –g option
• GCC -ggdb for GDB specific symbols
• Need to be explicitly mentioned at Compile time
• Type
-DWARF 2
-COFF
-XCOFF
-Stabs
Ripping Symbols Off a Binary
• Objcopy
• objcopy –only-keep-debug rip_from_binary_debug_file
Stripping Symbols off a Binary
• Strip
• --strip-debug –strip-unneeded binary_file
Adding Debug Symbols to a
Binary
• Add it in the Binary itself
objcopy –add-gnu-debuglink= debug_file
• Load the symbol file within GDB
symbol-file file_name
What in Symbols File ?
• Info file
• Info sources
• Info variable
• Info scope function_name
• Info function
• maint print symbols file_name
Setting a Breakpoint
• What is a Breakpoint?
• intentional stopping or pausing place in a program, sometimes
simply referred to as a pause.
• Criteia can be “about to execute an instruction”
• Debugger allows to inspect / modify CPU , Register , Memory ,
Data etc.
• Setting a Breakpoint
• break Line_number/Function/address
• View Breakpoint
• Info breakpoints
Disable / Enable / Delete
Breakpoint
• Enable xxxxxxxxxx
• Disable xxxxxxxxx
• Delete xxxxxxxxx
Examine Memory
• usage x
• x/FMT address or print
• Address – Memory address
• FMT – is repeated count followed by format letter and count
letter.
• Format letter: o(octal) , x(hex), d(decimal), u(unsigned letter),
t(binary) , f(float) , etc
• Size letter: b(byte),h(halfword) , w(word) , g(giant, 8bytes)
Modify CPU and Memory
• Modify Memory
• Set {int} address = value
• Modify CPU
• set register = address
Working with variables,
functions in GDB
• Variables
• Set new_variable = value
• Set exiting_variable = net_variable
• Functions
• call function_name
Debugging GNU Debugger GDB

More Related Content

What's hot

GCC Compiler as a Performance Testing tool for C programs
GCC Compiler as a Performance Testing tool for C programsGCC Compiler as a Performance Testing tool for C programs
GCC Compiler as a Performance Testing tool for C programsDaniel Ilunga
 
GNU Compiler Collection - August 2005
GNU Compiler Collection - August 2005GNU Compiler Collection - August 2005
GNU Compiler Collection - August 2005Saleem Ansari
 
GEM - GNU C Compiler Extensions Framework
GEM - GNU C Compiler Extensions FrameworkGEM - GNU C Compiler Extensions Framework
GEM - GNU C Compiler Extensions FrameworkAlexey Smirnov
 
How it's made: C++ compilers (GCC)
How it's made: C++ compilers (GCC)How it's made: C++ compilers (GCC)
How it's made: C++ compilers (GCC)Sławomir Zborowski
 
GNU GCC - what just a compiler...?
GNU GCC - what just a compiler...?GNU GCC - what just a compiler...?
GNU GCC - what just a compiler...?Saket Pathak
 
Compiling Under Linux
Compiling Under LinuxCompiling Under Linux
Compiling Under LinuxPierreMASURE
 
C Under Linux
C Under LinuxC Under Linux
C Under Linuxmohan43u
 
Give me 15 minutes and i'll change your view of gdb
Give me 15 minutes and i'll change your view of gdbGive me 15 minutes and i'll change your view of gdb
Give me 15 minutes and i'll change your view of gdbgregthelaw
 
eBPF Tooling and Debugging Infrastructure
eBPF Tooling and Debugging InfrastructureeBPF Tooling and Debugging Infrastructure
eBPF Tooling and Debugging InfrastructureNetronome
 
eBPF Debugging Infrastructure - Current Techniques
eBPF Debugging Infrastructure - Current TechniqueseBPF Debugging Infrastructure - Current Techniques
eBPF Debugging Infrastructure - Current TechniquesNetronome
 
不深不淺,帶你認識 LLVM (Found LLVM in your life)
不深不淺,帶你認識 LLVM (Found LLVM in your life)不深不淺,帶你認識 LLVM (Found LLVM in your life)
不深不淺,帶你認識 LLVM (Found LLVM in your life)Douglas Chen
 
Porting and Optimization of Numerical Libraries for ARM SVE
Porting and Optimization of Numerical Libraries for ARM SVEPorting and Optimization of Numerical Libraries for ARM SVE
Porting and Optimization of Numerical Libraries for ARM SVELinaro
 

What's hot (20)

Gnu debugger
Gnu debuggerGnu debugger
Gnu debugger
 
GCC Compiler as a Performance Testing tool for C programs
GCC Compiler as a Performance Testing tool for C programsGCC Compiler as a Performance Testing tool for C programs
GCC Compiler as a Performance Testing tool for C programs
 
G++ & GCC
G++ & GCCG++ & GCC
G++ & GCC
 
GNU Compiler Collection - August 2005
GNU Compiler Collection - August 2005GNU Compiler Collection - August 2005
GNU Compiler Collection - August 2005
 
GCC, GNU compiler collection
GCC, GNU compiler collectionGCC, GNU compiler collection
GCC, GNU compiler collection
 
GEM - GNU C Compiler Extensions Framework
GEM - GNU C Compiler Extensions FrameworkGEM - GNU C Compiler Extensions Framework
GEM - GNU C Compiler Extensions Framework
 
How it's made: C++ compilers (GCC)
How it's made: C++ compilers (GCC)How it's made: C++ compilers (GCC)
How it's made: C++ compilers (GCC)
 
Gcc opt
Gcc optGcc opt
Gcc opt
 
GNU GCC - what just a compiler...?
GNU GCC - what just a compiler...?GNU GCC - what just a compiler...?
GNU GCC - what just a compiler...?
 
Compiling Under Linux
Compiling Under LinuxCompiling Under Linux
Compiling Under Linux
 
C Under Linux
C Under LinuxC Under Linux
C Under Linux
 
Give me 15 minutes and i'll change your view of gdb
Give me 15 minutes and i'll change your view of gdbGive me 15 minutes and i'll change your view of gdb
Give me 15 minutes and i'll change your view of gdb
 
eBPF Tooling and Debugging Infrastructure
eBPF Tooling and Debugging InfrastructureeBPF Tooling and Debugging Infrastructure
eBPF Tooling and Debugging Infrastructure
 
eBPF/XDP
eBPF/XDP eBPF/XDP
eBPF/XDP
 
eBPF Debugging Infrastructure - Current Techniques
eBPF Debugging Infrastructure - Current TechniqueseBPF Debugging Infrastructure - Current Techniques
eBPF Debugging Infrastructure - Current Techniques
 
Onnc intro
Onnc introOnnc intro
Onnc intro
 
不深不淺,帶你認識 LLVM (Found LLVM in your life)
不深不淺,帶你認識 LLVM (Found LLVM in your life)不深不淺,帶你認識 LLVM (Found LLVM in your life)
不深不淺,帶你認識 LLVM (Found LLVM in your life)
 
GCC compiler
GCC compilerGCC compiler
GCC compiler
 
Programming
ProgrammingProgramming
Programming
 
Porting and Optimization of Numerical Libraries for ARM SVE
Porting and Optimization of Numerical Libraries for ARM SVEPorting and Optimization of Numerical Libraries for ARM SVE
Porting and Optimization of Numerical Libraries for ARM SVE
 

Viewers also liked

Metasploit Module Development
Metasploit Module DevelopmentMetasploit Module Development
Metasploit Module Developmentkyaw thiha
 
Exploit Development
Exploit DevelopmentExploit Development
Exploit Developmentkyaw thiha
 
Guide To Successful Affiliate Marketing
Guide To Successful Affiliate MarketingGuide To Successful Affiliate Marketing
Guide To Successful Affiliate Marketingshawn300
 
"Attracting Blue Chip Chinese Firms to Set Up a European base in Ireland" Eil...
"Attracting Blue Chip Chinese Firms to Set Up a European base in Ireland" Eil..."Attracting Blue Chip Chinese Firms to Set Up a European base in Ireland" Eil...
"Attracting Blue Chip Chinese Firms to Set Up a European base in Ireland" Eil...Asia Matters
 
Prof. David FitzPatrick, Provost, Beijing-Dublin International School
Prof. David FitzPatrick, Provost, Beijing-Dublin International SchoolProf. David FitzPatrick, Provost, Beijing-Dublin International School
Prof. David FitzPatrick, Provost, Beijing-Dublin International SchoolAsia Matters
 
Dissecting the Current Merger Wave in China and the Implications for EU, Li X...
Dissecting the Current Merger Wave in China and the Implications for EU, Li X...Dissecting the Current Merger Wave in China and the Implications for EU, Li X...
Dissecting the Current Merger Wave in China and the Implications for EU, Li X...Asia Matters
 
Hunting&fishing
Hunting&fishing Hunting&fishing
Hunting&fishing jessholmes
 
Eugene McDonough, COO, Coder Dojo Foundation, asia business week dublin
Eugene McDonough, COO, Coder Dojo Foundation,  asia business week dublinEugene McDonough, COO, Coder Dojo Foundation,  asia business week dublin
Eugene McDonough, COO, Coder Dojo Foundation, asia business week dublinAsia Matters
 
Shen Yongqi Chief Economist, Beijing Local Taxation Bureau asia business wee...
Shen Yongqi Chief Economist, Beijing Local Taxation Bureau  asia business wee...Shen Yongqi Chief Economist, Beijing Local Taxation Bureau  asia business wee...
Shen Yongqi Chief Economist, Beijing Local Taxation Bureau asia business wee...Asia Matters
 
Shifts in the Japanese Economy and the Potential Impact on EU Japan Investmen...
Shifts in the Japanese Economy and the Potential Impact on EU Japan Investmen...Shifts in the Japanese Economy and the Potential Impact on EU Japan Investmen...
Shifts in the Japanese Economy and the Potential Impact on EU Japan Investmen...Asia Matters
 
Opening Opportunities: The Business View on the EU-Japan FTA/ EPA, Danny Ris...
Opening Opportunities: The Business View on the  EU-Japan FTA/ EPA, Danny Ris...Opening Opportunities: The Business View on the  EU-Japan FTA/ EPA, Danny Ris...
Opening Opportunities: The Business View on the EU-Japan FTA/ EPA, Danny Ris...Asia Matters
 
Life of Josep Pla, an spanish writer.
Life of Josep Pla, an spanish writer.Life of Josep Pla, an spanish writer.
Life of Josep Pla, an spanish writer.Asier_Ansotegui
 
"Talent for Innovation: The Role of Universities." Ned Costello
"Talent for Innovation:  The Role of Universities." Ned Costello"Talent for Innovation:  The Role of Universities." Ned Costello
"Talent for Innovation: The Role of Universities." Ned CostelloAsia Matters
 
Reputable vastu consultant in kolkata
Reputable vastu consultant in kolkataReputable vastu consultant in kolkata
Reputable vastu consultant in kolkatakreativekolkata
 

Viewers also liked (16)

Metasploit Module Development
Metasploit Module DevelopmentMetasploit Module Development
Metasploit Module Development
 
Exploit Development
Exploit DevelopmentExploit Development
Exploit Development
 
Opetus Erp
Opetus ErpOpetus Erp
Opetus Erp
 
Guide To Successful Affiliate Marketing
Guide To Successful Affiliate MarketingGuide To Successful Affiliate Marketing
Guide To Successful Affiliate Marketing
 
"Attracting Blue Chip Chinese Firms to Set Up a European base in Ireland" Eil...
"Attracting Blue Chip Chinese Firms to Set Up a European base in Ireland" Eil..."Attracting Blue Chip Chinese Firms to Set Up a European base in Ireland" Eil...
"Attracting Blue Chip Chinese Firms to Set Up a European base in Ireland" Eil...
 
Prof. David FitzPatrick, Provost, Beijing-Dublin International School
Prof. David FitzPatrick, Provost, Beijing-Dublin International SchoolProf. David FitzPatrick, Provost, Beijing-Dublin International School
Prof. David FitzPatrick, Provost, Beijing-Dublin International School
 
Dissecting the Current Merger Wave in China and the Implications for EU, Li X...
Dissecting the Current Merger Wave in China and the Implications for EU, Li X...Dissecting the Current Merger Wave in China and the Implications for EU, Li X...
Dissecting the Current Merger Wave in China and the Implications for EU, Li X...
 
Hunting&fishing
Hunting&fishing Hunting&fishing
Hunting&fishing
 
Eugene McDonough, COO, Coder Dojo Foundation, asia business week dublin
Eugene McDonough, COO, Coder Dojo Foundation,  asia business week dublinEugene McDonough, COO, Coder Dojo Foundation,  asia business week dublin
Eugene McDonough, COO, Coder Dojo Foundation, asia business week dublin
 
Shen Yongqi Chief Economist, Beijing Local Taxation Bureau asia business wee...
Shen Yongqi Chief Economist, Beijing Local Taxation Bureau  asia business wee...Shen Yongqi Chief Economist, Beijing Local Taxation Bureau  asia business wee...
Shen Yongqi Chief Economist, Beijing Local Taxation Bureau asia business wee...
 
Shifts in the Japanese Economy and the Potential Impact on EU Japan Investmen...
Shifts in the Japanese Economy and the Potential Impact on EU Japan Investmen...Shifts in the Japanese Economy and the Potential Impact on EU Japan Investmen...
Shifts in the Japanese Economy and the Potential Impact on EU Japan Investmen...
 
Opening Opportunities: The Business View on the EU-Japan FTA/ EPA, Danny Ris...
Opening Opportunities: The Business View on the  EU-Japan FTA/ EPA, Danny Ris...Opening Opportunities: The Business View on the  EU-Japan FTA/ EPA, Danny Ris...
Opening Opportunities: The Business View on the EU-Japan FTA/ EPA, Danny Ris...
 
Life of Josep Pla, an spanish writer.
Life of Josep Pla, an spanish writer.Life of Josep Pla, an spanish writer.
Life of Josep Pla, an spanish writer.
 
"Talent for Innovation: The Role of Universities." Ned Costello
"Talent for Innovation:  The Role of Universities." Ned Costello"Talent for Innovation:  The Role of Universities." Ned Costello
"Talent for Innovation: The Role of Universities." Ned Costello
 
LTG Analytics
LTG AnalyticsLTG Analytics
LTG Analytics
 
Reputable vastu consultant in kolkata
Reputable vastu consultant in kolkataReputable vastu consultant in kolkata
Reputable vastu consultant in kolkata
 

Similar to Debugging GNU Debugger GDB

Reversing with gdb
Reversing with gdbReversing with gdb
Reversing with gdbMihir Shah
 
Reverse Engineering.pptx
Reverse Engineering.pptxReverse Engineering.pptx
Reverse Engineering.pptxSameer Sapra
 
Static Code Analysis and AutoLint
Static Code Analysis and AutoLintStatic Code Analysis and AutoLint
Static Code Analysis and AutoLintLeander Hasty
 
Thick Application Penetration Testing: Crash Course
Thick Application Penetration Testing: Crash CourseThick Application Penetration Testing: Crash Course
Thick Application Penetration Testing: Crash CourseScott Sutherland
 
Open Source License Compliance with AGL
Open Source License Compliance with AGLOpen Source License Compliance with AGL
Open Source License Compliance with AGLPaul Barker
 
Joe Damato
Joe DamatoJoe Damato
Joe DamatoOntico
 
scaling compiled applications - highload 2013
scaling compiled applications - highload 2013scaling compiled applications - highload 2013
scaling compiled applications - highload 2013ice799
 
Debuggers in system software
Debuggers in system softwareDebuggers in system software
Debuggers in system softwaregayathri ravi
 
License compliance in embedded linux with the yocto project
License compliance in embedded linux with the yocto projectLicense compliance in embedded linux with the yocto project
License compliance in embedded linux with the yocto projectPaul Barker
 
Source control - what you need to know
Source control - what you need to knowSource control - what you need to know
Source control - what you need to knowdaveymni
 
CLASSIFICATION OF DEBUGGERS
CLASSIFICATION OF DEBUGGERSCLASSIFICATION OF DEBUGGERS
CLASSIFICATION OF DEBUGGERSJAINAM KAPADIYA
 
Not breaking userspace: the evolving Linux ABI
Not breaking userspace: the evolving Linux ABINot breaking userspace: the evolving Linux ABI
Not breaking userspace: the evolving Linux ABIAlison Chaiken
 
Introduction to DRBD
Introduction to DRBDIntroduction to DRBD
Introduction to DRBDdawnlua
 
Profiling and Tuning a Web Application - The Dirty Details
Profiling and Tuning a Web Application - The Dirty DetailsProfiling and Tuning a Web Application - The Dirty Details
Profiling and Tuning a Web Application - The Dirty DetailsAchievers Tech
 
Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011
Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011
Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011camp_drupal_ua
 
Debugging Modern C++ Application with Gdb
Debugging Modern C++ Application with GdbDebugging Modern C++ Application with Gdb
Debugging Modern C++ Application with GdbSenthilKumar Selvaraj
 
Python performance profiling
Python performance profilingPython performance profiling
Python performance profilingJon Haddad
 
Add-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his DutyAdd-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his Dutyreedmaniac
 

Similar to Debugging GNU Debugger GDB (20)

Reversing with gdb
Reversing with gdbReversing with gdb
Reversing with gdb
 
Reverse Engineering.pptx
Reverse Engineering.pptxReverse Engineering.pptx
Reverse Engineering.pptx
 
Static Code Analysis and AutoLint
Static Code Analysis and AutoLintStatic Code Analysis and AutoLint
Static Code Analysis and AutoLint
 
Thick Application Penetration Testing: Crash Course
Thick Application Penetration Testing: Crash CourseThick Application Penetration Testing: Crash Course
Thick Application Penetration Testing: Crash Course
 
Open Source License Compliance with AGL
Open Source License Compliance with AGLOpen Source License Compliance with AGL
Open Source License Compliance with AGL
 
Joe Damato
Joe DamatoJoe Damato
Joe Damato
 
scaling compiled applications - highload 2013
scaling compiled applications - highload 2013scaling compiled applications - highload 2013
scaling compiled applications - highload 2013
 
Debuggers in system software
Debuggers in system softwareDebuggers in system software
Debuggers in system software
 
License compliance in embedded linux with the yocto project
License compliance in embedded linux with the yocto projectLicense compliance in embedded linux with the yocto project
License compliance in embedded linux with the yocto project
 
Source control - what you need to know
Source control - what you need to knowSource control - what you need to know
Source control - what you need to know
 
CLASSIFICATION OF DEBUGGERS
CLASSIFICATION OF DEBUGGERSCLASSIFICATION OF DEBUGGERS
CLASSIFICATION OF DEBUGGERS
 
Not breaking userspace: the evolving Linux ABI
Not breaking userspace: the evolving Linux ABINot breaking userspace: the evolving Linux ABI
Not breaking userspace: the evolving Linux ABI
 
Introduction to DRBD
Introduction to DRBDIntroduction to DRBD
Introduction to DRBD
 
Profiling and Tuning a Web Application - The Dirty Details
Profiling and Tuning a Web Application - The Dirty DetailsProfiling and Tuning a Web Application - The Dirty Details
Profiling and Tuning a Web Application - The Dirty Details
 
Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011
Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011
Anna Fedoruk.Theworkflow.DrupalCamp Kyiv 2011
 
Debugging Modern C++ Application with Gdb
Debugging Modern C++ Application with GdbDebugging Modern C++ Application with Gdb
Debugging Modern C++ Application with Gdb
 
E.s unit 6
E.s unit 6E.s unit 6
E.s unit 6
 
Python performance profiling
Python performance profilingPython performance profiling
Python performance profiling
 
Add-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his DutyAdd-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his Duty
 
presentation
presentationpresentation
presentation
 

Debugging GNU Debugger GDB

  • 1. Debugging With GNU Debugger GDB By Kyaw Thiha ICEH, ICWAPT, CWSE, Debugging with debug symbol file
  • 2. Contents • What is Debugging • What is Debugger? • What are Debugger Symbols? • Debugging Symbols • Ripping Symbols off a Binary • Adding Debug Symbols to a Binary • What in Symbols Files • Stripping Symbols off a Binary • Setting a Breakpoint • Disable / Enable / Delete Breakpoint
  • 3. Contents • Examine Memory • Modify CPU and Memory • Working with variables, functions in GDB
  • 4. What is Debugging ? • “De” + “Bug” = Debug • finding and reducing the number of bugs, in a computer program or a piece of electronic hardware, • software and electronic systems have various common debugging techniques have expanded with more methods to detect anomalies, assess impact,
  • 5. What is Debugger ? • A special program used to find errors (bugs) in other programs. A debugger allows a programmer to stop a program at any point and examine and change the values of variables. • Examples – -GNU Debugger -Intel Debugger -softIce -WinDBG
  • 6. What are Debugger Symbols ? • information that expresses which programming-language constructs generated a specific piece of machine code in a given executable module. • embedded in the binary itself or separate file
  • 7. What are Debugger Symbols ? • Kyaw Thiha (handsome) • Young (25) • Skinny (120 lb) • IT ( Information Security) • Myanmar (Yangon) • Kyaw Thiha • Young • skinny • IT • Myanmar
  • 8. Debugging Symbols • GCC use –g option • GCC -ggdb for GDB specific symbols • Need to be explicitly mentioned at Compile time • Type -DWARF 2 -COFF -XCOFF -Stabs
  • 9. Ripping Symbols Off a Binary • Objcopy • objcopy –only-keep-debug rip_from_binary_debug_file
  • 10. Stripping Symbols off a Binary • Strip • --strip-debug –strip-unneeded binary_file
  • 11. Adding Debug Symbols to a Binary • Add it in the Binary itself objcopy –add-gnu-debuglink= debug_file • Load the symbol file within GDB symbol-file file_name
  • 12. What in Symbols File ? • Info file • Info sources • Info variable • Info scope function_name • Info function • maint print symbols file_name
  • 13. Setting a Breakpoint • What is a Breakpoint? • intentional stopping or pausing place in a program, sometimes simply referred to as a pause. • Criteia can be “about to execute an instruction” • Debugger allows to inspect / modify CPU , Register , Memory , Data etc. • Setting a Breakpoint • break Line_number/Function/address • View Breakpoint • Info breakpoints
  • 14. Disable / Enable / Delete Breakpoint • Enable xxxxxxxxxx • Disable xxxxxxxxx • Delete xxxxxxxxx
  • 15. Examine Memory • usage x • x/FMT address or print • Address – Memory address • FMT – is repeated count followed by format letter and count letter. • Format letter: o(octal) , x(hex), d(decimal), u(unsigned letter), t(binary) , f(float) , etc • Size letter: b(byte),h(halfword) , w(word) , g(giant, 8bytes)
  • 16. Modify CPU and Memory • Modify Memory • Set {int} address = value • Modify CPU • set register = address
  • 17. Working with variables, functions in GDB • Variables • Set new_variable = value • Set exiting_variable = net_variable • Functions • call function_name