Questions tagged [gdb]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
281 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 ...
Zsar's user avatar
  • 233
2 votes
2 answers
6k 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 ...
schizophrenia 's user avatar
0 votes
2 answers
127 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 ...
Brydon Gibson's user avatar
40 votes
5 answers
80k 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 ...
Mahyar Shokraeian's user avatar
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 ...
tjcaul's user avatar
  • 273
1 vote
1 answer
9k 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 ...
Udesh's user avatar
  • 882
0 votes
0 answers
283 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 ...
Jeeva's user avatar
  • 101
0 votes
1 answer
471 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: ...
Omer Lerinman's user avatar
0 votes
1 answer
361 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 ...
Daniel's user avatar
  • 1
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
shuitang's user avatar
1 vote
0 answers
233 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 ...
Aentum's user avatar
  • 11
1 vote
0 answers
82 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 ...
TheMagicalCake's user avatar
1 vote
0 answers
96 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 ...
ClonedOne's user avatar
  • 195
0 votes
1 answer
492 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 ...
taylor wang's user avatar
3 votes
1 answer
16k 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 --...
AgnosticCucumber's user avatar
0 votes
0 answers
365 views

Pointer address value truncated

I am facing core dump issue in my application code, application got dumped in frequent intervals(once in a month, not exactly). During the core analysis , i am able to identify that corrupted pointer ...
Sakthivel Thandabani's user avatar
8 votes
1 answer
8k views

How to codesign gdb on OS X Mojave?

After installing gdb from homebrew (via $ brew install gdb), I followed these instructions to give gdb permissions to attach to a process. When I got to the step that runs the command: $ codesign --...
camercu's user avatar
  • 451
1 vote
1 answer
5k views

GDB cross-compilation for arm

I cross-compiling gdb on ubuntu 16.04 to debug an application running on arm. The main tutorial I'm following is https://sourceware.org/gdb/wiki/BuildingCrossGDBandGDBserver The cross-toolchain ...
donets20's user avatar
  • 121
0 votes
1 answer
1k views

Unix alias to redirect background process output

I'm looking for a way to redirect the output of a background process into /dev/null or some other file. $ python ./spam_console.py & $ [start doing something in the foreground $ cat test.py $ [...
Sriharsha's user avatar
  • 111
0 votes
1 answer
540 views

STM32 Microcontroller with GDB: debugging doesn't work when I change flash structure

I want to debug my application for the STM32F107 microcontroller using JLinkGDBServer and the arm-none-eabi-gdb client. I am using the startup assembly file and the linker script provided by default ...
Dani S.'s user avatar
0 votes
1 answer
111 views

What format crash utility's disassembler uses to output assembly instructions?

Crash utility can disassemble kernel functions. but what format it uses? Which is first, source or destination? inst src, dist or inst dist, src This is what I am asking about: crash> dis ...
feeling_lonely's user avatar
-1 votes
1 answer
2k views

What to install with Qt Creator?

I'm trying to install Qt creator on Windows but it has so many options (and the whole installation requires many GB) that I really don't know which ones I need. I only want to be able to create and ...
Floella's user avatar
  • 184
4 votes
1 answer
3k views

What is batch mode execution in GDB?

I read a comment like - "Runs gdb in batch mode". So wanted to understand what does batch mode execution mean for GDB? And what is the other mode of execution for GDB?
Darshan L's user avatar
  • 659
1 vote
1 answer
780 views

what to do when vs-code remote C++ debugging asks to set gnutarget format-name

I am on to debugging remote C++ program running on raspberry pi on ubuntu. I have followed https://medium.com/@spe_/debugging-c-c-programs-remotely-using-visual-studio-code-and-gdbserver-559d3434fb78. ...
Necktwi's user avatar
  • 335
2 votes
1 answer
2k views

MinGW: Python enabled GDB on Windows

I use QtCreator 4.6.2, which apparently requires Python-enabled GDB if I want to use it as a debugger. I tried to install mingw32-gdb-python version 7.5-1 with MinGW installer (graphical interface), ...
Yksisarvinen's user avatar
1 vote
1 answer
6k views

How do I uninstall pwndbg?

Not much explaining to do, except I Googled how to and couldn't find anything relating to the uninstall process. I am on a Debian 9 system. If I recall correctly I installed it using: git clone ...
adam's user avatar
  • 138
7 votes
0 answers
971 views

GDB 7.6 TUI does not refresh the display, creating artifacts

I'm using GDB 7.6 on a remote server. When I start gdb, everything is fine, as long as the program to debug is not run. I can use up and down arrows to navigate through GDB history, etc. No display ...
hdl's user avatar
  • 179
0 votes
1 answer
5k views

gdb binary and where to find it?

I'm following the instruction here to install gdb on my MacOS Sierra. In section "2.1.3. Code-sign the gdb binary", I'm supposed to "specify the full path to the gdb binary" but I don't know what it ...
Nhu Thai Sanh Nguyen's user avatar
3 votes
1 answer
4k views

How to install specific gdb (or other) package version using apt-cyg in Cygwin?

I am trying to install fresh version of gdb debugger on my cygwin (version that comes with cygwin is buggy). Since I need the newest version of gdb, I need to use apt-cyg to install it. When I run ...
Danijel's user avatar
  • 714
2 votes
2 answers
12k views

Cannot see variables in gdb

I'm new to cygwin (and *nix for that matter) and don't understand the following gdb behavior. I've created an executable that intentionally results in a SIGSEGV: #include <iostream> void Func(...
StoneThrow's user avatar
  • 1,167
0 votes
1 answer
1k views

Arrow keys in GDB (window mode) not working with TERM=xterm

First, this is not the history size problem. (gdb) show history size The size of the command history is 70000000. Second, it happens in xterm and not in vt100 and I don't want vt100 because of weird ...
tcpip's user avatar
  • 61
2 votes
1 answer
11k views

How to equivalent to ps -ef in Windows 10

I have looked online, and have not found anything that would accomplish what I want to do. I am looking for a command with output equivalent to "ps -ef" of Linux so I can find out the process id ...
user3326293's user avatar
12 votes
2 answers
54k views

Closing open file without killing the process

I have java(yeah java...) application running on CentOS 7. After a while, there are many "deleted" files that bother me. for deleted files used(not the issue): lsof | grep "(deleted)" I found them ...
igor's user avatar
  • 433
2 votes
1 answer
433 views

coredumps 'can only dump core to fully qualified path!'

I have a question about generating a coredumps under Debian. First, I enable the feature trough this command : ulimit -c unlimited Next I create a Segmentation fault but I have this error : [...
Toufik Airane's user avatar
0 votes
1 answer
604 views

How to enter into process running on gdb?

So I was trying to debug a program that runs on two node. I use yod as task launcher. yod -hosts node01,node02 ./dist_task -nl 2 The program is stuck. So I wanted to use the gdb like this yod -...
solti's user avatar
  • 101
2 votes
1 answer
2k views

$HOME is not defined for root user on Ubuntu 14.04

On a fresh Ubuntu 14.04 install, the bash environment for the root user does not have $HOME defined. I need to run some apps from a root shell, for example: gdb /usr/sbin/apache2 This is difficult ...
Byron Hawkins's user avatar
1 vote
0 answers
361 views

Emacs, gdb: How do direct program output to gdb buffer in gdb 2 window mode

Is there a way to tell Emacs 24.3.1 with gdb 7.5 to display the program output in the gdb buffer instead of a separate "** input/output **" buffer? (Displaying it in a separate buffer in 2 window ...
simpleuser's user avatar
1 vote
2 answers
5k views

Intalling gdb and pstack on Amazon Linux AMI

I tried installing gdb and pstack on EC2 Instance with Amazon Linux AMI (it was not installed by default), and it's not working. Tried: [ec2-user@ip-172-21-ab-xyz ~]$ sudo yum install gdb Loaded ...
K.K's user avatar
  • 111
0 votes
1 answer
1k views

Homebrew install gdb, symlink error with binutils

I'm trying to install GDB via Homebrew on OSX Mavericks via the command brew install homebrew/dupes/gdb. This error message pops up during install: gdb requires special privileges to access Mach ...
nwly's user avatar
  • 101
2 votes
1 answer
380 views

Dtrace shows posix_spawn called with only 3 argument. Trying to launch by hand

I ran dtruss on a process that launches another one: the League of Legends Launcher starts the main game process with certain arguments that I can't seem to pass via the command line. What caught my ...
Alex Popov's user avatar
6 votes
2 answers
7k views

Software: Launching League of Legends spectator mode from Command Line (Mac)

Background: tl;dr at the end League of Legends has a spectator mode, in which you can watch someone else's game (essentially a replay) with a 3 minute delay. Popular LoL website OP.GG has figured ...
Alex Popov's user avatar
1 vote
0 answers
1k views

Debugging linux kernel, SIGKILL

Trying to debug linux kernel (vmlinux) with gdb during my education, but after I run kernel I just got "program terminated with SIGKILL": gdb vmlinux-3.11.0-12-generic ...GDB header... Reading ...
user314509's user avatar
2 votes
1 answer
14k views

How to install gdb on Arch Linux

How do I install the GNU Debugger (gdb) on Arch Linux? I've checked that I don't already have gdb installed by running this command: gdb -help I've tried this: sudo apt-get install gdb but it's ...
ann_smith's user avatar
1 vote
1 answer
2k views

Debug info package for centos

Hi I am getting the following on each line of gdb instruction steps. Does anyone know what package I need to install to remove this message from a CentOS build? Missing separate debuginfos, use: ...
bjackfly's user avatar
  • 203
2 votes
0 answers
79 views

Old gdb cannot find out how to do logging

I'm running an obsolete Red Hat OS and debugging with the built-in gdb but I cannot figure out how to do logging. I've tried: set logging on But get: No symbol "logging" in current context It ...
FluffyBeing's user avatar
2 votes
0 answers
554 views

Where is the console ST2/GDB

I'm using sublime text 2. I got GDB to work but I don't see a console window anywhere. I see the GDB console but nothing that outputs text from my C++ program. How do I use GDB and see my the console ...
user avatar
2 votes
4 answers
69k views

How to know if gdb is installed?

How can i know if gdb is installed in a unix machine? I run the following commands: > gdb > gdb main and the result is gdb: command not found but i don't if this means that gdb is not ...
Dchris's user avatar
  • 311
2 votes
1 answer
196 views

Can I remotely monitor printf results of a C program?

I have a long running C program in which I've started from the Terminal.app using: gdb program_name gdb run I'm using many printf statements to monitor the progress of the program. Unfortunately, ...
mota's user avatar
  • 121
0 votes
1 answer
1k views

Why gdb is bind to fixed version of autoconf?

Edit 1: I am trying to build gdb from source. Why can't I use autoconf 2.65 instead of 2.64? It is confusing:( /var/lib/gforge/chroot/home/users/mirror/ins/ins-autoconf/bin/autoreconf -iv ...
hugemeow's user avatar
  • 2,299
11 votes
5 answers
28k views

Why can't I find termcap library when I build gdb?

make and then failed with: configure: error: no termcap library found, but that termcap lib is just there, why can't make find it? checking for library containing zlibVersion... -lz checking zlib.h ...
hugemeow's user avatar
  • 2,299