Skip to main content

Questions tagged [gdb]

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

gdb
0 votes
0 answers
68 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
37 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
9 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
53 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 ...
Naresh Kumar's user avatar
-1 votes
0 answers
20 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
39 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
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 ...
Barzi2001's user avatar
  • 1,524
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 ...
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
0 votes
0 answers
39 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 ...
user26329522'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,121
0 votes
0 answers
31 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
27 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
  • 49
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 ...
Catalin Moraru's user avatar
-1 votes
1 answer
47 views

How do I change my gcc compiler and debugger in VSCode?

I need to use another compiler (gcc, gdb, g++) that I installed on my Win 11 box on VSCode. How do I do that?
Diego's user avatar
  • 356

15 30 50 per page
1
2 3 4 5
769