Tagged Questions

The GNU Debugger usually called just GDB

learn more… | top users | synonyms

-1
votes
0answers
14 views

Is it possible to install gdb 7.7 or greater version in ubuntu 12.04.4?

I am having gdb 7.04 in ubuntu 12.04.4. when i tried to upgrade gdb it gives message that gdb 7.04 is the latest version. Is it possible to install gdb 7.7 in ubuntu 12.04.4 ? and i dont want to ...
-1
votes
0answers
36 views

GNOME applications crashes with segmentation fault

While clicking on options in most of the GNOME apps, the respective windows crashes. For example i cannot click on theme options in appearance window of gnome-tweak-tool(all other options like power ...
0
votes
0answers
7 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
1answer
28 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
42 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 ...
0
votes
1answer
176 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
49 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
0answers
184 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
67 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
20 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
121 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
136 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
277 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
991 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
81 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
457 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
0answers
20 views

gdb and current block frame in the stack

I know that my current block is between epb and esp. Is there a way to print my stack the following way: Let's says that len=ebp-esp I would like a command on gdb that would look like this: x/lenx ...
0
votes
1answer
56 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
313 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
0answers
453 views

“Code 126: Permission Denied” when using GDB Debugger

I have written a piece of C++ code and am trying to debug that using GDB Debugger. The code uses bunch of libraries, so I am using a make-file to compile and link all the required libraries, which I ...
0
votes
1answer
100 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
859 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
297 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 ...
1
vote
1answer
432 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 ...
1
vote
0answers
112 views

how to find specific string or hex value under gdb

Based on physical memory address where I'm started draw from "hexdump -C" commands as below. 0040f4f0 53 48 45 4c 4c 43 4f 44 45 3d 54 68 69 73 20 6c |SHELLCODE=This l| 0040f500 69 6e 65 20 69 73 ...
6
votes
1answer
2k 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. ...
0
votes
0answers
26 views

Need help in understanding the contents of registers as displayed by the info registers in gdb

I am using infinite recursion to generate core and to understand debugging it with gdb. void foo(){ return foo(); } int main(){ foo(); return 0; } Can you explain me the "info register" of ...
0
votes
0answers
158 views

Linux Kernel Remote Debugging using GDB

I am trying to debug linux kernel using remote connection through gdb. I have followed the below steps, but there is "connection timeout" error @ HOST PC. I have a Host PC (running ubuntu 12.04) and ...
1
vote
1answer
3k 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
539 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
2k 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
985 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
259 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 ...
1
vote
1answer
1k 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
383 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
72 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(): ...
3
votes
2answers
8k 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
3k 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
245 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 ...
3
votes
1answer
1k 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 ...
2
votes
2answers
981 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
189 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 ...
4
votes
2answers
3k 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
389 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
956 views

Debugging applications in QTCreator

Everytime 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 Debugging ...