Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [gdb]

Use this tag for problems related to or involving GDB, the standard debugger for the GNU software system.

0 votes
0 answers
23 views

How to custom cpp var value in gdb and clion > watches

see my img, I find zoned_time can show custom str "America/New_York" 1721904914882986761ns [2024-07-25 10:55:14] how to custom this value in my own class I try following code but it only ...
chikadance's user avatar
  • 4,025
-1 votes
0 answers
27 views

Weird debugging error lead to aborting in CLion/VS Code [closed]

I have a weird error. if I step into the line of the break point and then run a few lines, it will abort for strange reasons but if I jump over this line, it will just be fine. It is a function ...
user900476's user avatar
0 votes
0 answers
29 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 ...
Yovboy's user avatar
  • 85
0 votes
0 answers
21 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 ...
TechRobs's user avatar
0 votes
0 answers
104 views

How to find memory address of a function which isn't called in main, but declared and defined outside main in gdb

tl,tr: Find memory address of an uncalled function, without having source code(or having function name) in gdb. Issue: given a source code given to me, which looks like this: #include<stdio.h> ...
nastya's user avatar
  • 1
0 votes
0 answers
49 views

No effect after i have updated my GDB version to 11.2. GDB debug failed

I have the same question. And i have all ready done the recommend solution that i updated my GDB to v_11.2. And i also have added it to the system environment path and updated the launch and task file ...
xs_william's user avatar
0 votes
0 answers
13 views

Gem5 Arm SimpleAtomic CPU checkpoint interpretation

I am new to Gem5 and want to manually construct gem5 checkpoint from the information gained by gdb. To this end, I try to understand gem5's checkpoint. However, even the integer register does not make ...
Boru Chen's user avatar
-1 votes
0 answers
29 views

Trouble codesigning gdb 15.1 on MacOS Sonoma

I have been trying to codesign gdb 15.1 on MacOS Sonoma 14.5. I have been following the instructions here (https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d). These instructions say: ...
Aaron's user avatar
  • 179
1 vote
1 answer
42 views

Do I need to add extra quotes in a single args entry containing spaces for a cppdbg launch config?

I can build the source code for the Linux "parted" command from my command line and then run a command like this from the command line and it works as expected: sudo /home/flex/apps/sbin/...
FlexMcMurphy's user avatar
0 votes
1 answer
43 views

gdb: what are the differences between mi2 and mi3 interface?

The official news page does not say too much and the debugging with gdb book of R. Stallman (link to pdf) only says that m3 was introduced in gdb 9.1. I tried to google more but I couldn't find much ...
Barzi2001's user avatar
  • 1,524
0 votes
0 answers
48 views

Why does earlier gdb gets OSError: [Errno 22] or the latest crash when starting a dap session?

I was trying to debug on nvim using the dap functionality of gdb 14.2 (installed via msys2), but a message Debug adapter didn't respond. Either the adapter is slow (then wait and ignore this) or there ...
Caiyhg's user avatar
  • 1
0 votes
1 answer
61 views

Proper dereferencing of Fortran double precision values in GDB

I am using Fortran double precision reals. gdb works correctly, e.g. (gdb) p t(27,8,1) $17 = 4816.0976560758863 Sometimes I need to watch addresses, so (gdb) p &t(27,8,1) $18 = (PTR TO -> ( ...
hjm_els's user avatar
3 votes
1 answer
53 views

Missing ELF symbol for extern const float?

I have seen Missing ELF symbol "var" when using GDB? , but this is a different issue. I am using gdb with RP2040 over openocd. Unfortunately I cannot provide a full code that reproduces the ...
sdbbs's user avatar
  • 5,129
0 votes
0 answers
36 views

gdb fails to access linux vmalloc-ed memory ffffc90000000000 in x86_64

My gdb (GNU gdb (GDB) 10.2) backtrace fails to access kernel memory in vmalloc range. This is with a kernel crash coredump on x86_64 platform. In my understanding 0xffffc90000000000 is the vmalloc ...
SanjibDas's user avatar
0 votes
0 answers
28 views

gdb core file path too long? [duplicate]

I use gdb to analyse the core dumped file. But the output of gdb is: GNU gdb (GDB) Amazon Linux 12.1-5.amzn2023.0.3 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 ...
kevin h's user avatar
  • 55

15 30 50 per page
1
2 3 4 5
769