Zephyr Stack Backtrace

Zephyr Stack Backtrace

A stack trace (Stack Trace or Stack Backtrace) is the current call stack information printed when an exception, error, or active debugging occurs during program execution. It helps developers understand the execution state of the program at a specific moment, which is very useful for debugging and diagnosing program issues. Using Stack Backtrace Zephyr uses … Read more

Common GDB Commands for Linux

Common GDB Commands for Linux

1. Common GDB Commands 1. Basic Commands 1.1. Start Debugging gdb test.elf 1.2. View Disassembly # Set style to view disassembly set disassembly-floavor intel disassemble # Disassemble current instruction disassemble $pc, $pc+0x100 1.3. View Functions info functions 1.4. Print Addresses # Print variable address Print function address print &var print test_function 1.5. GDB Remote Connection … Read more

A Detailed Explanation of Linux Core Dumps: From Basics to Practical Applications (Part 2)

A Detailed Explanation of Linux Core Dumps: From Basics to Practical Applications (Part 2)

Hello everyone, welcome to Lixin Embedded. In Linux development, core dumps are powerful tools for debugging program crashes. However, on devices with limited storage space, core dump files that can be several megabytes in size can take up a lot of space. In the previous article, we discussed the principles and generation mechanisms of core … Read more