Questions tagged [gdb]
The gdb tag has no usage guidance.
64
questions
0
votes
1
answer
466
views
How to setup GDB integration in Visual Studio 2019+ for the local machine?
For Visual Studio 2015 there is a dedicated "GDB Debugger Extension". Apparently its actual name in the marketplace misleadingly is "Visual C++ for IoT Development" but explicitly ...
2
votes
2
answers
8k
views
How to download GDB from minGW correctly?
I am using GDB, downloaded from MinGW Installation Manager(I doubt it's installed correctly), to debug C++, and GDB cannot be found in the path below used to debug.
C:\msys64\mingw64\bin
Other exes ...
0
votes
2
answers
162
views
What can I use in core-pattern to dump a core and nothing else?
I'm currently working on a weird GNU chroot environment, that uses abrt-hook-ccpp for the original system to dump cores, however the environment I'm in does not have that utility.
systemd-coredump ...
44
votes
5
answers
94k
views
Accessing Windows localhost from WSL2?
I have Windows 11 with WSL2 (Ubuntu) installed on it.
I've setup a gdb listener server on my Windows localhost and want to access it from Wsl2, but it seems my Windows machine and WSL are using ...
3
votes
2
answers
1k
views
GDB Hangs after “New Thread” on macOS
I have built GDB from source on macOS 12.0 and codesigned it. However, every time I try to debug a program, I get this:
(gdb) b main
Breakpoint 1 at 0x10000324f: file main.cpp, line 50.
(gdb) run
...
1
vote
1
answer
10k
views
Installation failed for gdb in kali linux
$ sudo apt-get install gdb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gdb is not available, but is referred to by another package.
This may ...
0
votes
0
answers
318
views
How do I dump the memory of running process in Windows?
I am learning how to use GDB. I want to dump the memory of a running process. I tried to like this
gdb -pid 2767
(gdb) gcore test.dmp
warning: cannot close "test.dmp": Invalid operation
Can't create ...
0
votes
1
answer
501
views
libsymbolic.so: cannot open shared object file: No such file or directory
I am trying to debug my C++ application from the shell.
gdb --args [scripts' parameters...]
Then, in the gdb:
(gdb) run
and I get the output:
error while loading shared libraries: libsymbolic.so: ...
0
votes
1
answer
371
views
GDB hangs when running 32bit executables
I have a VM with Mint Cinnamon 19.2 (this also happens in Ubuntu 18.04):
whenever I run a 32 bit executable, whether i put breakpoints or not, I get these kind of warnings:
warning: Breakpoint ...
1
vote
2
answers
6k
views
gdb can't debug the 32bits program for linux
How to solve this? When I use the gdb to debug the 32bits program, this warning appeared. And this made the program can't run.
This is the configuration information about gdb
1
vote
0
answers
246
views
Prompt doesn't scroll/clear until window resizing (using gdb/cgdb in bash)
I'm just learning to write C, and I have been having this problem while using gdb/cgdb. It's really annoying, to the extent that it discourages me from using the debugger entirely. I'm using WSL for ...
1
vote
0
answers
86
views
Install GDB remotely onto a Mac through SSH?
I've built the binaries for GDB on the Mac, but now I need to codesign it, and every tutorial tells me to open up the Keychain GUI to achieve this. I don't have any access to the actual computer, I ...
1
vote
0
answers
105
views
GEF can't find python modules in virtualenv
I wanted to try out GEF but I am having some issues with missing commands. The tools says it's because of missing python packages, but I just installed them in a clean virtualenv to try.
I am ...
0
votes
1
answer
539
views
gdb failed to load sharedlibrary
I had this problem when trying to decode a corefile generated by a system crash.
But after I load the corefile and debug symbol of my main process, I found the gdb did not load any of sharedlibrary ...
3
votes
1
answer
17k
views
How to install GDB 8 in CentOS 7
I need to install GDB 8.0 or above in my CentOS 7. My current version of gdb is 7.6.1.
I have followed the guide at devtoolset-7-gdb | Install HowTo:
yum install centos-release-scl-rh
yum --...