6

Most commonly used commands in GDB Console

 2 years ago
source link: https://fann.im/blog/2010/09/26/most-commonly-used-commands-in-gdb-console/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Most commonly used commands in GDB Console

Sep 26, 2010

load program

Load the program into the target.

b main

Set a breakpoint in function main.

c

Continue after a breakpoint.

l

View a listing of the program.

n

Step one line (stepping over function calls).

s

Step one line (stepping into function calls).

info reg

View register values.

p xyz

Print the value of xyz data.

watch gvar1

Set Watchpoint on Global Variable gvar1.

via Commonly Used GDB Console Commands

Was this page helpful?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK