The GNU Debugger usually called just GDB

learn more… | top users | synonyms

1
vote
0answers
64 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: ...
0
votes
0answers
14 views

/usr/bin/script hangs, how to debug

Context In Ubuntu 16.04 /usr/bin/script freezes sometimes in situation where it never did in other distros (including older Ubuntu, Debian, Fedora). For details see the bug I reported on Bug #...
1
vote
2answers
79 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
216 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
217 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
155 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/...
1
vote
0answers
266 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 ...
0
votes
1answer
1k 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 ...
6
votes
1answer
3k 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
116 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
469 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
109 views

openjdk-7 gdb list main.c sources error

I'm currently struggling with debugging openjdk in Trusty Tahr. I already installed opejdk-7-jdk openjdk-7-dbg. When I issue gdb java I see it reads the symbols properly, but when I ask to list the ...
0
votes
3answers
3k 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
244 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 ...
3
votes
1answer
7k 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
255 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 "...
0
votes
1answer
3k 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
307 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
2k 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 ...
2
votes
1answer
16k 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, wierd stuff shows up like _libc_start_main (main=0x40060d <main>, argc=1, argv=0x7fffffffdfc8, init=<...
2
votes
2answers
2k views

how to setup automatic core dump on upstart script?

the myapp is an application that crashes eventually. I would like to get the core dump of those crashes... this is the upstart script I tried so far... but it still doesn't work description "...
0
votes
1answer
186 views

Installation of “gdb64” on Trusty removes “ubuntu-minimal”, is that right?

I have a 64-bit Ubuntu Trusty and I'm trying to install the package gdb64 but, I'm seeing the following packages that are about to be REMOVED, look: sudo apt-get install gdb64 ..... The following ...
2
votes
0answers
907 views

GDB not showing C code when gcc -g option is used

I have a file called hello_world.c. I use the command gcc -g -Wall hello_world.c Then gdb ./a.out I set a breakpoint at line 27 And run, it tells me this: warning: no loadable sections found in ...
1
vote
1answer
971 views

Unable to generate core dump after apport disable

Hi I'm currently programming c++ on Ubuntu and am unable to generate a core dump with a segmentation fault. I just get "Segementation fault" and not the (core dump) I have set ulimit -c unlimited. I ...
0
votes
3answers
3k views

libpython2.6.so.1.0 doesn't exist

I am trying to run an application called powerpc-eabi-gdb, however, when I start it, I get the following error: error while loading shared libraries: libpython2.6.so.1.0: cannot open shared object ...
1
vote
0answers
389 views

Compiled packages and apt-get mess

Due to my work I have to use the last version of gdb (7.7) which is not provide in the ubuntu repositories. For that purpose I download the source code, compiled it and installed it successfully. My ...
2
votes
1answer
783 views

Generating core files on Ubuntu

Recently I've been trying to enable core dumps on Ubuntu. I made a simple program, that would crash (it writes some data out of array). At first, core dumps weren't generated. This was because ulimit ...
8
votes
1answer
4k views

Setting up GDB pretty printing in Ubuntu 13.10

I tried to set up GDB pretty printing (for easier work with standard containers) according to this anwer. Instead of using python pretty printers code from svn I used the ones that ship with ubuntu. ...
1
vote
1answer
8k views

libncurses.so.5 : Error while loading shared libraries

I tried to debug a C application with Eclipse using GDB but I got the following error: Error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or ...
0
votes
2answers
1k views

Why is gdb looking for assembly files?

I am attempting to learn about gdb using Ubuntu 13.10. I am using the gcc compiler and following example: https://en.wikipedia.org/wiki/Gdb#An_example_session Instead of the output shown in the ...
14
votes
1answer
16k views

GDB crashes with: ImportError: No module named libstdcxx.v6.printers

I have a problem with GDB. Whenever I try to debug any C++ program, just after running it, GDB gives this error: (gdb) run Starting program: /home/errikos/Workspaces/tests/a.out Traceback (most ...
0
votes
2answers
3k views

Gdb symbol lookup error

I'm trying to use gdb on ubuntu 12.04, but every time the program crashes with the following error gdb: symbol lookup error: gdb: undefined symbol: PyUnicodeUCS4_FromEncodedObject Looks something ...
5
votes
1answer
564 views

Why debug packages don't include sources?

I was expecting that after installing the package libgtk-3-0-dbg I would get DDD to show the source code when stepping into gtk+, however I had to download the source package myself (from here) and ...
1
vote
1answer
2k views

How do I set up pretty printing gdb 7.5

I thought gdb 7.0 and higher has pretty printing included in it but I might be wrong? Can someone point me to the correct way to use this? Do I need to create a .gdbinit file for this? I tried copying ...
3
votes
1answer
2k views

gdb uses wrong python

When I launch gdb (on Ubuntu 12.04 LTS) it immediately crashes with the following output: BlockquoteTraceback (most recent call last): File "/usr/lib/python2.7/site.py", line 562, in <module> ...
0
votes
1answer
687 views

Help with GDB on a C++ program

I am new to Ubuntu and am using the 12.04 version on my laptop. I am trying to execute a C++ program which has Petsc libraries installed in it. I get an error when trying to run the program and so ...
1
vote
1answer
81 views

Make works fine, but the result does not run. What now?

I am trying to run https://github.com/seanpringle/simpleswitcher on my ubuntu 12.04 I downloaded it and compiled it. However, when I run I get *** glibc detected *** ./simpleswitcher: free(): ...
10
votes
3answers
20k views

warning: GDB: Failed to set controlling terminal: Operation not permitted

I'm using Code-blocks IDE in my Ubuntu 12.10.But when I'm trying to debug any project , I got the following warning : warning: GDB: Failed to set controlling terminal: Operation not permitted ...
4
votes
4answers
7k views

segmentation fault when using su or sudo

example of the problem: $ su Segmentation fault $ sudo ls Segmentation fault I tried to compile sqlite3 from source earlier. I don't know what libraries it installed. This may be the reason why ...
3
votes
1answer
3k views

gdb cannot run due to python error

I am trying to run gdb, but as soon as I hit enter I get this error Traceback (most recent call last): File "/usr/lib/python2.7/site.py", line 562, in <module> main() File "/usr/lib/...
2
votes
0answers
284 views

Ubuntu 12.10 - How to use gdb to debug a kernel module?

I am trying to use gdb to view function calls of my wireless driver. My driver is ath5k. In my opinion, all things that I have to do is: using gdb to debug ath5k module. Is it right? Anybody can give ...
6
votes
1answer
2k views

How can I get python stack trace information using GDB?

I am using GDB to debug a segmentation fault in my python application on Kubuntu 12.04. Supposedly GDB version 7 has built-in macros for extracting information about the python stack (http://docs....
2
votes
2answers
2k views

How to get the eglibc source code used by Ubuntu?

How do I get the source code for eglibc in a format that will allow stepping through the source with gdb? I have tried using apt-get source libc6-dev and that works for getting the source code, but ...
0
votes
1answer
247 views

How can I run hp-systray from gdb?

I would like to be able to run hp-systray from gdb to get a stacktrace and help fix a very annoying bug that's been around for a while now. However, if I try to run gdb hp-systray 2>&1 | tee ~/...
5
votes
2answers
4k views

How can I debug Ubuntu's kernel?

How can I debug Ubuntu's kernel? Are there any debug symbols available, or should I recompile the kernel with debug info?
7
votes
0answers
543 views

Error while reading shared library symbols for /lib/ld-linux.so.2 [closed]

When I try and run these commands (in order): gdb -tui main layout regs b main r s It gives me a ton of errors on the 'r' command, giving the error in the title, so I can't even debug my program. ...
4
votes
1answer
1k views

Debugging applications in QTCreator

Every time I go to debug some code in QTCreator, I get this GDB error returning. Current setup: Ubuntu 11.04 QT Creator version: 2.1.0 GDB Version: GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2 ...