Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common commands for Ubuntu GDB debugging

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Ubuntu GDB debugging commonly used commands, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

Backtrace (or bt)

View function calls and parameters at all levels

Finish

Run continuously until the current function returns, then stop and wait for the command

Frame (or f) frame number

Select stack frame

Info (or I) locals

View the value of the local variable in the current stack frame

List (or l)

List the source code, followed by the last location below, 10 rows at a time

List line number

List the source code starting from which line

List function name

List the source code of a function

Next (or n)

Execute the next line of statement

Print (or p)

Print the value of an expression, through which you can modify the value of a variable or call a function

Quit (or Q)

Exit the gdb debugging environment

Set var

Modify the value of a variable

Start

Start executing the program, stop in front of the first line of the main function statement and wait for the command

Step (or s)

Execute the next line of statement, and enter the function if there is a function call

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 230

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report