Questions tagged [gdb]
Use this tag for problems related to or involving GDB, the standard debugger for the GNU software system.
11,521
questions
0
votes
0
answers
10
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 ...
0
votes
0
answers
97
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>
...
0
votes
0
answers
47
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 ...
0
votes
0
answers
11
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 ...
-1
votes
0
answers
54
views
Why does gdb combine byte values when examining memory as words? [closed]
While examining 4 addresses from $rip as bytes in GDB, it shows 4 individual values. However, when I examine the same addresses as words, it combines that 4 byte values into a single word value. Why ...
-1
votes
0
answers
21
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:
...
1
vote
1
answer
41
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/...
0
votes
1
answer
42
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 ...
0
votes
0
answers
47
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 ...
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 -> ( ...
0
votes
0
answers
43
views
gdb: cannot interact with the debug console (-var-create: unable to create variable object) [closed]
I am trying to learn gdb and how to use the debugger console properly in vscode. I wrote the most simple program in C like this:
int main(){
int x=1;
return 0;}
I stopped at return 0, and I can see ...
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 ...
0
votes
0
answers
34
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 ...
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 ...
0
votes
0
answers
18
views
GDB convenience variable not expanded
Convenience variables on my macos are not expanded when using arm-gdb-none-eabi:
(gdb) set $foo = "bar"
(gdb) p $foo
$11 = "b"
However - this seems to be a print issue, as the ...