431 questions
Score of 0
0 answers
116 views
Having gdb on the host mirror an embedded display and how the target side needs to modify its print function
I have a 128*64 bits monochrome display on my target. gdb controls this, and it runs on the host.
On the target I have the printf statements that are then echoed in the debug window on the host.
But I ...
Tooling
0
votes
0
replies
50
views
How to tell gdb the default opsize, so it can debug multi cpu mode code (without a weird disassembly output)
Note: This is a repost of a question I asked on RetroComputing, where I was told to move it here.
I've made my own kernel. It has 32-bit pm, 16-bit pm, and 16-bit real mode code. I use Qemu to ...
Score of 1
0 answers
83 views
Is there a way to inspect the actual STM32CubeProgrammer invocation during the launch sequences in STM32CubeIDE?
During a STM32CubeIDE launch sequence, a proprietary version of GDB runs, which uses STM32CubeProgrammer to flash the MCU before proceeding with the debug. In the Launch Configuration window, I can ...
Score of 0
0 answers
37 views
Remote debug program for Linux uses GDBServer
When writing a console program in the C programming language for the Linux (the Linux is installed on the Respberry Pi), you can use remote development and debugging using the Eclipse on the Windows ...
Score of 0
1 answer
113 views
No source code available after attaching in a remote debugging session with VS Code + Docker in cross-compilation
I want to do remote debugging in VS Code. I start a Docker container and attach to it from inside VS Code and opens a new window inside the container. Then I run in a VM my remote process and attach ...
Score of 3
0 answers
180 views
VSCode GDB Debugging Fails with CustomAttributeFormatException When Using Rosetta
I'm trying to debug a C++ program in VS Code using GDB. GDB works fine from the command line, but when I attempt to launch the debugger in VS Code, I encounter a strange error. I'm running an x86_64 ...
Score of 0
1 answer
272 views
Remote debug C, C++ binaries in VSCode
How to remotely debug C, C++ binaries installed in Linux environments in VSCode environments connected by ssh.
Insatlling VSCode on Windows
Installing C/C++, C/C++ Extension in VSCode
VSCode to ...
Score of -1
2 answers
1418 views
Vscode : I can't use jlink (blocked on "Waiting for GDB connection..." )
I would like to upload/debug a C program for an embended MCU: cortex M0 (infineon XMC1302).
I am using windows 10, vscode and Jlink (V9). It is the first time I try to use those 2 tools together so it ...
Score of 1
0 answers
61 views
Let `rr` ignore some child processes
I'm trying to set up rr as a production debugger, recording debug information, but not interrupting the process to be debugged.
The main process (the one that I indent to refix with rr record) spawns ...
Score of 3
0 answers
213 views
STL containers don't pretty-print when connected to gdbserver?
I have the following code:
#include <iostream>
#include <string>
using namespace std;
int main()
{
string s{"qwe"};
while (true){} // in order to attach
cout <<...
Score of 2
1 answer
386 views
Debugging with LLDB over SSH "error: process exited with status -1 (no such process.)" MacOS
I'm trying to debug an executable, that I manually built with clang, with lldb on MacOS host (ssh'd into) machine, through ssh. However, when I run it I get:
(lldb) error: process exited with status -...
Score of 3
0 answers
90 views
Linux driver major number appears different across dmesg and gdb
PROBLEM:
I have a debug kernel running in QEMU/KVM with GDB attached. I am attempting to debug the ioctl calls of an LKM I am developing. My LKM registers a character device with a major number. I am ...
Score of 1
1 answer
244 views
Slow breakpoint triggering with GDB and LinkServer/MCULink
I'm working on a project involving the NXP i.MX RT1060, and I'm using NXP's MCULink for debugging. I use NXP's LinkServer for running a GDB server, and the Cortex-Debug extension in VSCode for GDB. ...
Score of 0
0 answers
96 views
Crash on WinDbg remote debugging of gdbserver on 32 bit elf
I am trying to use gdbserver in WSL to debug programs with Windbg, but getting a crash of the dbgserver with the following output:
Process ./program created; pid = 454
Listening on port 1234
Remote ...
Score of 0
1 answer
120 views
What does GDB need to know from memory when connecting to a target?
I am trying to write a GDB stub for a custom chip. Since the target is custom, it needs a GDB stub/server to handle GDB's requests. I seem to be able to handle all the requests GDB gives fine when ...