Questions tagged [gdb]

The GNU Debugger usually called just GDB

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

gdb on Ubuntu 19.10 showing wrong variable values

Since upgrading to Ubuntu 19.10, gdb (8.3) is nearly unusable using programs compiled using the default gcc (9.2.1) using -O0 -ggdb -g3 because most displayed values for variables are wrong. The ...
0
votes
0answers
95 views

18.04 32bit: Code::Blocks debug issue “warning: GDB: Failed to set controlling terminal: Operation not permitted”

So I know that this has been asked everywhere multiple times but I tried like everything that was written and I still encounter the same error and the same issue. I'll post more info about my laptop ...
0
votes
1answer
177 views

Ubuntu 19.10 gdb nearly unusable long delay

I am having a problem with the gnu debugger on Ubuntu 19.10. The problem presents itself as a long delay, somewhere between 20-30 seconds between running my program with gdb and my program actually ...
0
votes
0answers
47 views

Debugging a crash with valgrind

Assume I have a program foo that I run with foo bar. Now, if I run it normally, it works OK. If I try to use: valgrind --tool=massif foo bar It crashes out with repeated: ==10202== Warning: noted ...
0
votes
0answers
73 views

Problem with Cpp Debugger in Visual Studio Code

I can't debug my C++ code with Visual Studio Code. I did all the things about configuring launch.json, but it just runs like when I execute and the next line button is disabled. It looks like the ...
1
vote
0answers
210 views

gdb error for keepassx/keepassxc: “Cannot find user-level thread for LWP” “generic error”

I tried to run gdb on keepassxc, but encountered an unfamiliar error: $ gdb /usr/bin/keepassxc GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git Copyright (C) 2018 Free Software Foundation, Inc. ...
0
votes
0answers
85 views

Makefile:9155: recipe for target 'install-gdb' failed

while installing gdb-source archive files (from http://ftp.gnu.org/gnu/gdb/) i am getting the following error(Makefile:9155: recipe for target 'install-gdb' failed).please explain me clearly and if ...
0
votes
1answer
36 views

Is there an Ubuntu developer installation which comes with full C/C++ development envirenment installed?

I do not want to download source code for gnu gcc/g++/gdb/make... and compile from scratch. I am OK with downloading a built and ready to use set of packages. But best of all, I am looking for an ...
2
votes
0answers
48 views

Manually compile and install debugging symbols for the recoll package?

I've got some crash files for recoll from which I would like to extract a symbolic stack trace. Unfortunately, there are no debug symbols available for this package, so my stack traces are mostly ...
0
votes
0answers
707 views

How to solve warnings from GDB?

I need help about debugging GIMP 2.10.10 O.S. Ubuntu 18.04.2 LTS GDB Version (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git I get this message from GDB when i try to generate a backtrace inside flatpak ...
0
votes
1answer
441 views

TrueStudio “Could not determine GDB version command” error

I am working with TrueStudio. I face with this error when click Debug button. https://imgur.com/YWEyf9i How can I fix this problem? Before this in the build step I saw another warning as you can see ...
1
vote
2answers
2k views

Core file not generated in Ubuntu 18.04

I was trying to generate a core file in Ubuntu 18.04. My program generates a core file, but I'm not able to find it. $ ./a.out Segmentation fault (core dumped) $ ls -lrt total 32 -rwxrwxrwx 1 sanjay ...
1
vote
2answers
1k views

g++ and gdb problem: debug symbols for shared libraries not found

I am porting a large set of applications and libraries from Debian 7 to Ubuntu 16.04. This is a GNU autotools project, so libtool is involved. gdb cannot find the symbols for the majority of the ...
1
vote
1answer
843 views

netbeans missing native build tools

My Goal I want to have a fully functioning NetBeans C/C++ on my ubuntu 18.04 A small background The first problem I've encountered was build host not connected after a little research I've ...
2
votes
0answers
847 views

Upgrade to python 2.7.15 (for gdb 8) on Ubuntu 16.04

I am running Ubuntu 16.04 with gdb version 7.11.1-0ubuntu1~16.5. When I upgraded g++ to g++-6.4 (Ubuntu 6.4.0-17ubuntu1~16.04), gdb started giving python errors like: Python Exception <class '...
3
votes
0answers
470 views

How to set up debugger for ARM Assembly using qemu and gdb

I followed this tutorial as well as this one to set up a compiler + debugger for ARM Assembly. Following the first one, I ran the command qemu-arm -singlestep -g 1234 emptyand started a new shell, ...
7
votes
5answers
19k views

How to install “gdb-arm-none-eabi” on Ubuntu 18.04?

in previous versions of Ubuntu, gdb for ARM Cortex processors was part of the package gdb-arm-none-eabi. Searching https://packages.ubuntu.com/ for gdb-arm-none-eabi for Ubuntu 18.04 returns no ...
12
votes
1answer
2k views

False “application not responding” box is creating havoc with GDB

I'm trying to debug a C++ application using GDB and the Qt Creator IDE. Every time the debugger stops on a breakpoint, Ubuntu (v 17.10) thinks the application is frozen and issues the dialog box with ...
0
votes
0answers
127 views

GDB not available after “make install” unless a new terminal is opened

I'm fairly new to Ubuntu and development on Linux in general. After building GDB from source (pre-installed the dependencies): $ git clone git://sourceware.org/git/binutils-gdb.git $ CD binutils-gdb $...
1
vote
1answer
2k views

debugging in codelite - “GDB: Failed to set controlling terminal: Operation not permitted”

while debugging in codelite this error appears in the terminal : could anyone help me solving this problem?
0
votes
0answers
2k views

gdb during startup program exited with code 127

I am using Ubuntu 17.04, I am having problem with gdb. I am using CLion and Netbeans for C++ programming, when I debug code, it's throwing me this error During startup program exited with code 127. I ...
0
votes
2answers
1k views

Cannot install GDB on Ubuntu 17.10 due to Python dependency issues

I had to uninstall GDB just to upgrade to 17.10, but now I can't get it installed again. sudo apt install gdb Reading package lists... Done Building dependency tree Reading state information......
0
votes
2answers
986 views

gdb-qemu : can't put break point on kernel function ( kernel 4.10.0-35)

I am trying to debug the Ubuntu kernel using KDB + qemu. However, I am not able to debug it. Following is the error I am getting. Can someone help? Starting QEMU: sudo qemu-system-x86_64 -enable-...
-1
votes
1answer
219 views

Debian 4.9.3 - downgrading gdb, which version i need? [closed]

I can't work with Eclipse's debug stepping due to gdb version 7.12 not supporting certain option: Failed to execute MI command: maintenance set python print-stack off Error message from debugger back ...
0
votes
1answer
719 views

GDB can't break strcpy()? [closed]

so im trying to debug this simple c program #include<stdio.h> #include<string.h> int main(){ char str_a[20]; strcpy(str_a,"Hello, world!\n"); printf(str_a); return 0;} gcc -...
6
votes
1answer
549 views

What would cause an installed application to not be recognized as such?

I need to revert my version of gdb back to a previous release so that it is compatible with a certain tool. I currently have gdb 7.7.1 installed. If I enter gdb into the terminal and hit enter, gdb ...
1
vote
1answer
441 views

gdb skips breakpoints without sudo

I'm trying to debug simple 8-line program with gdb: $ g++ -g 1.cpp $ gdb a.out (gdb) break 5 Breakpoint 1 at 0x40089e: file 1.cpp, line 5. (gdb) run However, gdb will just skip over the breakpoint ...
0
votes
1answer
1k views

Gdb pretty printer is not working in Ubuntu 16.04

I have debugged C++ codes using gdb in Ubuntu 14.04. When I pass a stl container to the print command, it used to print the contents of the container. But then I upgraded to Ubuntu 16.04 LTS a week ...
1
vote
1answer
2k views

How to output web page html source code into a file

My goal is to output an html source into a file, I'm using w3m to browse the web from terminal. When using the following command on terminal: w3m <url> -dump the program displays the web site ...
1
vote
1answer
3k views

Is ctype.h installed in my system?

I am running 16.04. My C program uses isdigit(int). I get the following when I run it under gdb: `Breakpoint 1, check_tok (token=0x6f7c20 <tokens> ".t") at outline.c:150 150 unsigned char *tp=...
2
votes
1answer
2k views

When I run the debugger: “failed to set controlling terminal” [duplicate]

In a book I read, the author's CPU was 32-bit. Mine is 64-bit. I run the NASM assembler in the terminal with: nasm -f elf -g -F stabs asmwork/eatsyscall.asm Then I run the linker: ld -o eatsyscall ...
1
vote
0answers
240 views

Port Ubuntu Touch using Windows 10 ubuntu bash

I'm trying to port Ubuntu Touch to my phone using Windows 10 bash. After many try, i stuck on building the test image for Nexus 4 to check possible it's or not. And every time after starting building: ...
3
votes
2answers
3k views

Putting some lines in a script to execute them in gdb

I want to create a script or actually a shortcut to surf in peace #!/bin/bash konsole -e firefox --debug (gdb) handle SIGPIPE noprint nostop pass (gdb) handle SIGSEGV noprint nostop pass (gdb) run ...
0
votes
2answers
1k views

gdb - load kernel module for remote debugging

Ubuntu 14.04 LTS: peter@peterubuntu0:$ insmod mymodule peter@peterubuntu0:/sys/module/mymodule/sections$ cat .text .data .bss 0x0000000000000000 0x0000000000000000 0x0000000000000000 So how do I ...
0
votes
1answer
1k views

GDB arrow keys not working

The up arrow key in gdb is not scrolling through previous commands on one of my ubuntu machines (kudu) but is working on another (similar) machine (cs13): karl@kudu:~$ gdb --version GNU gdb (Ubuntu 7....
1
vote
0answers
349 views

Have Qt Creator execute gdb command after all libraries are loaded

I would like to setup Qt Creator debugger to ignore all boost files when stepping through my code. Just to test, I added the command: "skip file /usr/include/boost/ptr_container/ptr_sequence/...
2
votes
1answer
883 views

Stop or disable keyboard/mouse/input grab from shell

I am trying to debug a full-screen application which uses OIS for input. The program grabs control of mouse and keyboard. When I hit a breakpoint (i'm using gdb), I cannot continue, step, or do ...
1
vote
1answer
3k views

How to enable Qt Creator 3.2.2 to use GDB?

After installing Qt Creator 3.2.2 from source I tried to run my project with Qt Creator's debugger frontend, but instead of starting to debug I got an error from Qt Creator: The selected build of ...
8
votes
1answer
8k views

How to get an apache core dump?

I am having problems with my 14.10 Ubuntu Server. Upon performing certain actions my apache2 restarts with a segmentation fault error. In order to debug this issue I would like to create a core dump. ...
0
votes
1answer
622 views

how to stop using export command

every time I run gdb I have to type export SHELL=/bin/bash or gdb would return exit with code 127 my question how to make this command run every time automatically without need to re type it because ...
2
votes
0answers
1k views

Downgrading GDB from 7.7.1 to 6.8 in Ubuntu 14.04

I currently have GDB version 7.7.1 installed on my system. However, for the combination of Eclipse and a software package called openFOAM (version 2.3.1) I need to downgrade the GDB version to 6.8 in ...
0
votes
1answer
232 views

openjdk-7 gdb list error: “main.c: No such file or directory”

I'm currently struggling with debugging openjdk in Trusty Tahr. I already installed opejdk-7-jdk and openjdk-7-dbg. When I issue gdb java I see it reads the symbols properly, but when I ask to list ...
0
votes
3answers
5k views

Trouble compiling GDB with python 2.7 support for gdb-peda

Trying to install gdb-peda, but am having issues compiling gdb with python 2 support instead of python 3 support. I have python-dev for 2.7, build-dep nmon, and libncurses5-dev installed. I ...
0
votes
1answer
420 views

cannot install from terminal

I cannot install things from terminal. I can do ./configure but when I do make I get no on some points but I have a makefile in the program directory. Make install want work after that. I tested with ...
10
votes
3answers
19k views

Upgrade from gdb 7.7 to 7.8

How to upgrade my GDB debugger from the current version which is 7.7 to the next version which is 7.8, Also I'm working on Ubuntu 14.04.1?
0
votes
1answer
783 views

How to use GDB to trace C++ library?

Recently, I want to use GDB to debug my C++ program. But I find when I use CTRL+X+A to see the source code of my program, it cannot show the library code of C++. For example, when I want to trace "...
2
votes
1answer
8k views

Cannot compile GDB7.8 with Python support

I am trying to install GDB7.8 with Python support. From the source folder, I am running ./configure --with-python When I did tab-complete from --with- I did not see Python in the list. But when I ran ...
2
votes
0answers
783 views

how to downgrade GDB 7.6.1 to GDB 6.8? [closed]

I am using linux (ubuntu 13.10) for openfoam(free ware) which calculate the fluid motion. Openfoam program is really uncomfortable to use, they even provide debug :) So to me, I need to use GDB for ...
1
vote
1answer
6k views

C compiler cannot create executables

Everything was right. I have installed gdb from github and installed in /usr/local/bin. After that i removed default gdb(/usr/bin) using the following command sudo apt-get remove gdb Now, when try ...
6
votes
1answer
39k views

how to install gdb and valgrind in ubuntu

If I type gdb on my terminal prompt, gdb opens up , but when I run commands like next, weird stuff shows up like: _libc_start_main (main=0x40060d <main>, argc=1, argv=0x7fffffffdfc8, init=<...