The GNU Debugger usually called just GDB

learn more… | top users | synonyms

0
votes
0answers
5 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
32 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 ...
1
vote
0answers
25 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 ...
0
votes
0answers
28 views

GDB can not be installed because of dependency on libpython3.4.2

I am on 14.04.1 64bit and trying to install GDB version 7.9. First I tried to build from source but I got errors all over the place. Now I got the deb package and it also can not be installed because ...
1
vote
0answers
52 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
98 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 ...
4
votes
1answer
282 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
39 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 ...
0
votes
0answers
14 views

weird message by the pre installed gdb

I have installed Ubuntu few weeks ago and when I opened gdb and code I written by: >> gdb ./lab (gdb) run I get this message Starting program: /home/ahmed/lab2 Cannot exec /home/ahmed/lab2 ...
0
votes
0answers
46 views

Dependency not satisfiable: gdb

I have installed gdb version 7.7.1. But it appears there is a bug which, when debugging, does not print arrays. So some people got this working by using gdb version 7.9. From apt-get install I see ...
0
votes
0answers
122 views

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

I've installed Code::Blocks 13.12 in Ubuntu 14.04 through official repositories. When I compile, everything goes OK. But when I debug, the following message is shown at the sheel: warning: GDB: ...
0
votes
0answers
40 views

Programming and debugging embedded systems using Ubuntu

I have switched from Win7 to Ubuntu and I got some problems to configure toolchain for programming embedded systems. On Windows I have used Em::Blocks with GDB and J-Link from Segger. It was very ...
0
votes
0answers
179 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
0answers
99 views

use gdb to know the source of seg fault

I use this structure to get the source of my problem in ns2... Quote: It is some times simpler if you can locate the root cause of the segmentation fault. To do this, make the following changes to ...
0
votes
1answer
66 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
0answers
13 views

Missing s_floor.S messages are messing up my gdb-session

__floor_sse41 () at ../sysdeps/x86_64/fpu/multiarch/s_floor.S:37 37 ../sysdeps/x86_64/fpu/multiarch/s_floor.S: No such file or directory. Using 14.10 on amd64. How to get rid of this mess? Am I ...
0
votes
3answers
1k 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
131 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 ...
2
votes
1answer
2k 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
134 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
1k 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 ...
0
votes
0answers
99 views

I'm receiving a GDB test error installing Python 3.4.1 on 14.04

I'm trying to create a VirtualBox VM with Ubuntu 14.04 and Python 3.4.1. I've downloaded the source https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz And I've updated OpenSSL to resolve a ...
0
votes
0answers
25 views

Kernel debugging

I am trying to set a kernel debugging between 2 Ubuntu machines, using a com port. It just does not work. I have tried to compile 3.15.6 kernel from kernel.org. Can somebody please help me? I am ...
2
votes
0answers
193 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 ...
0
votes
0answers
201 views

gdb uses python3.3

Currently in Ubuntu 14.04 it seems that gdb uses Python 3. I'd like to downgrade to using the gdb version that uses Python2. Is there any way I could go about doing that easily?
1
vote
1answer
699 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 ...
0
votes
1answer
6k 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, ...
1
vote
0answers
107 views

Why is gdb progfile producing a segmentation fault? [closed]

I have a g++ project and would like to debug it using gdb. Opening gdb with the program as an argument produces the following output: Reading symbols from <my_app_name>...Segmentation fault ...
2
votes
2answers
1k 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
87 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 ...
1
vote
0answers
656 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 ...
0
votes
1answer
369 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
2answers
2k 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
323 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
572 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 ...
7
votes
1answer
3k 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
5k 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
915 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 ...
4
votes
1answer
3k 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
2k 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
389 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 ...
0
votes
1answer
1k 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 ...
2
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
524 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
76 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(): ...
6
votes
3answers
12k 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
4k 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 ...
2
votes
1answer
2k 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 ...
2
votes
0answers
261 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 ...
4
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 ...