Questions tagged [gdb]

The tag has no usage guidance.

28 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
0 answers
980 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
  • 189
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
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
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
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
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
555 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
1 answer
197 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
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
235 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
83 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
98 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
1 vote
1 answer
781 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
1 vote
0 answers
363 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
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
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
1 vote
1 answer
205 views

MacPorts, how to run "post-destroot" script

I'm trying to install MacPorts gdb; it seems to be poorly supported… Running "port install" installs it to /opt/local/libexec/gnubin/gdb, but the intent doesn't seem to be to add that to $PATH. The ...
Potatoswatter's user avatar
1 vote
0 answers
210 views

XCode to debug gdb-debuggable executable

I have compiled a cmake-based executable that is (miraculously) debuggable in gdb. So examining hundreds of variables with the terminal becomes a little bit slow for very large projects and I would ...
ejang's user avatar
  • 173
0 votes
0 answers
294 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
0 votes
0 answers
287 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
473 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
363 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
0 votes
1 answer
496 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
0 votes
0 answers
366 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
0 votes
1 answer
545 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
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
0 votes
1 answer
612 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
0 votes
0 answers
2k views

How can I run GDB without root permissions on a Mac?

When I start GDB from the command line I have no problems. But when I start debugging a program from NetBeans (C++), I get this message: "Type the name and password of a user in the "Developer Tools" ...
Pietro's user avatar
  • 1,759