The GNU Debugger usually called just GDB

learn more… | top users | synonyms

1
vote
1answer
225 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 ...
3
votes
1answer
166 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
124 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 ...
1
vote
0answers
104 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 ...
0
votes
0answers
29 views

What debug symbol package has gcc's _Alloc_hider?

A c++ program I'm compiling has a reference to symbol _ZNSbIwSt11char_traitsIwESaIwEEC1Ev, which turns out to resolve to _Alloc_hider, from ...
1
vote
0answers
63 views

How to extract backtrace from a core file without entering into GDB console

I have core file generated by a crash , my requirement is without entering into gdb console i want to print the backtrace, can somebody help me or point me to docs.
0
votes
0answers
84 views

How to access “fseek.c” code?

I'm debugging a program using gdb. gdb prints the following: Program received signal SIGSEGV, Segmentation fault. fseek (fp=0x2e747874, offset=0, whence=2) at fseek.c:40 40 fseek.c: No such file ...
2
votes
1answer
269 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 ...
0
votes
0answers
17 views

Is there a way to see ALL the variables declared in DDD while debugging C++ programs?

I absolutely LOVE how I can see all the declared variables while debugging Java in Eclipse and have started to use DDD to debug C++ programs now. So I want to know if there's any way to see all the ...
0
votes
2answers
356 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
102 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 ...
2
votes
2answers
1k 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
273 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
626 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 ...