432 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
109
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
32
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 ...
1
vote
0
answers
71
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 ...
0
votes
0
answers
30
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 ...
0
votes
1
answer
70
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 ...
3
votes
0
answers
156
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 ...
0
votes
1
answer
196
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 ...
-1
votes
2
answers
1k
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 ...
1
vote
0
answers
42
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 ...
1
vote
0
answers
125
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 <<...
2
votes
1
answer
315
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 -...
3
votes
0
answers
82
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 ...
1
vote
1
answer
220
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. ...
0
votes
0
answers
86
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 ...
0
votes
0
answers
846
views
Issues Connecting Ghidra to GDBServer on Windows
all buttons non active
I'm trying to set up remote debugging for my application on Windows using Ghidra and GDBServer.
trying_connect_to_gdb
GDB successfully connects to GDBServer. However, when I ...