11,664 questions
Score of 0
1 answer
93 views
Log all input/output of GDB MI
I have implemented some GDB pretty printers, and most of the IDEs cause GDB to hang with them at various time moments under various circumstances. I have already added verbose logging of my Python ...
Score of 1
0 answers
78 views
GDB hook-stop not triggered when next/step is interrupted by a software breakpoint (__BKPT)
I experiencing a specific behavior in GDB where the standard hook-stop is completely bypassed if a next (Step Over (F10)) or step (Step Into (F11)) command is interrupted by a software breakpoint ...
Score of 3
0 answers
107 views
Why does until *<addr> fail with a memory error while tbreak *<addr> works in GDB?
TL;DR: Despite the documentation stating they accept the same arguments, until *<addr> calculates an incorrect target breakpoint address (e.g., 0x1) using the expression evaluator, whereas ...
Advice
0
votes
4
replies
58
views
How to print variable non-recursively in GDB
I'm trying to implement GDB pretty printers for my project, to be used with VS Code / CLion. The hardest part of the process is debugging them.
I find it useful to run print myvar in GDB console and ...
Score of 2
1 answer
177 views
target.reset() causes breakpoints to not halt
I am using GNU gdb (GNU Tools for STM32 13.3.rel1.20240926-1715) 14.2.90.20240526-git connected to pyocd 0.39.0 with an STM32H573MIYxQ MCU. Normally I can set breakpoints in GDB and they work.
...
Score of 0
0 answers
170 views
How do I optimize VS Code library debug symbol loading?
As of today after updating my Ubuntu OS, VS Code takes forever to start debugging. It used to be only slow the first time you'd debug in the session, then the next time you'd debug it'd be faster. Now,...
Score of 0
0 answers
63 views
Saving GDB tracepoint information into a dump file
GDB allows collecting tracepoint information, as a non-intrusive operation, without a need for a breakpoint and a context switch to gdb. The data collected by tracepoints can be viewed, frame-by-frame,...
Score of 2
0 answers
83 views
GDB examine command shows different value than value loaded from the same address
I tried to make a function that finds all existing PCIe device's functions and saves the physical address of their config space to an allocated memory for my os, but I noticed that I got WAY too much ...
Score of 4
0 answers
143 views
How to load debug symbols of external linux module in gdb?
Could you please help me with the following GDB debugging scenario:
I have a vmlinux image with debug symbols. I also have a kernel module (.ko file) that I need to debug. However, I need to debug the ...
Score of 0
0 answers
40 views
gdb remove-symbol-file 's relative path filename not working in gdb script, but works in interactive command
I'm trying to setup all-automatic debug procedures for opensbi+u-boot+linux debug on qemu riscv virt machine. But I found in gdb script, the relative file path for remove-symbol-file command doesn't ...
Score of 0
0 answers
86 views
ESP32-S3 (Espressif IDE / esp-gdb) stepping enters code with "no source available"; GDB skip rules do not work
I am debugging an ESP32-S3 project using Espressif IDE (Eclipse) + ESP-IDF. I can attach, halt, set breakpoints, and disassemble, but stepping is painful because the debugger always enters functions ...
Score of 0
1 answer
120 views
How to locate and examine stack memory in QNX OS on ARM64?
I would like to display the contents of the stack memory of an application. That would help me both, understand the memory management of the system and determine stack fill rates (potentially for ...
Score of 3
2 answers
131 views
GDB typecasting failure in C
I was setting up gdb on vscode on windows and it wasn't working. I soon found out that it was erroring giving me a SIGSEGV segfault.
I tried gdb in powershell with the same problem.
I run the program ...
Score of 0
0 answers
49 views
How to port Keil uVision debug .ini file to Eclipse
I am porting an ARM cortex-M4 project from Keil to Eclipse. And have issues with the debugger. It is a C project, compiled with gcc-arm-none-eabi. And for debug I am using Segger J-Link GDB server + ...
Score of 1
0 answers
62 views
Can I change the output of the disassembly of my bootloader in GDB with QEMU session?
I know that load a flat binary file to GDB is not sufficient when you need the symbols to debug the programs and follow the flow of the program, because it don't have a valid format of GNU/Linux ...