The gdb tag has no wiki summary.
0
votes
1answer
34 views
gdb not launching app
I am trying to run a app using gdb in emulator shell. I use following command
gdb <path of exe>
However, The app does not launch and I get following error
Starting program: <path of ...
0
votes
1answer
39 views
Changing suspend order on OpenSUSE 12.2
This question seems more relevant here than SO. I've been trying to debug a library that X uses through a GDB session that I'm running through SSH, but it seems that on OpenSUSE, the SSH session is ...
0
votes
1answer
20 views
Auditing of gdb commands
Is there a way I can log all gdb commands executed by a user?
And do user level logging?
Is any other tool like gdbserver can help in this case ?
0
votes
2answers
29 views
Read only mode in gdb
Is there gdb read only mode ?
Is there way I can restrict gdb level to read only. So I will not be able to modify current data in gdb.
Can gdbserver or any other tool help in this case?
2
votes
0answers
38 views
kgdb not returning control to gdb
I've compiled a kernel with kgdb support and I'm trying to debug it. I have two machines running, a debug machine (running the kgdb kernel) and the machine I'm using to debug it. They are connected ...
1
vote
1answer
90 views
How to compile linux kernel and debug with gcc and BOCHS?
I have download bochs 2.6 sourcecode and installed with gdb-stub configuration. I would like to debug linux-kernel 1.0 or 2.0 or 3.0 which sourcecode downloaded from http://www.kernel.org/ with gcc ...
3
votes
2answers
749 views
Missing separate debuginfo for - GDB
I have mentioned -g option along with -Wall in the Makefile.
When I run gdb onlineSunday, I get:
Missing separate debuginfo for /usr/lib64/kde4/plugins/imageformats/kimg_dds.so
Try: zypper install ...
5
votes
2answers
458 views
How can I find a memory leak of a running process?
Is there a way, I can find the memory leak of a running process? I can use Valgrind for finding memory leaks before the start of a process. I can use GDB to attach it to a running process. How could I ...
1
vote
1answer
148 views
vimrc mapping line numbers
I have these lines in my .vimrc file:
:map <F9> :exe ':!gdbset bp "%:'.line(".").'"'<CR><CR>
:map <F8> :exe ':!gdbset clear bp "%:'.line(".").'"'<CR><CR>
They ...
7
votes
2answers
252 views
Unix History: return code octal?
// EDIT: Request to move this question to unix.stackexchange.com
I was thrown off guard today by gdb:
Program exited with code 0146.
gdb prints the return code in octal; looking into why I found:
...
4
votes
2answers
1k views
Can gdb debug suid root programs?
I wrote a program that calls setuid(0) and execve("/bin/bash",NULL,NULL).
Then I did chown root:root a.out && chmod +s a.out
When I execute ./a.out I get a root shell. However when I do gdb ...
5
votes
2answers
811 views
Dump process core without killing the process
Is there a way to get a core dump (or something similar) for a process without actually killing the processes? I have a multithreaded python process running on an embedded system. And I want to be ...