The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
1answer
40 views

How to make gdb not ask me “y or n”?

When I use GDB command add-symbol-file to load the symbol, GDB always asks me 'y or n', like this: gdb> add-symbol-file mydrv.ko 0xa0070000 add symbol table from file "mydrv.ko" at ...
0
votes
1answer
16 views

Missing separate debuginfos

I'm trying to debug a code using GDB in a Fedora machine. It produces this message each time I run it. Missing separate debuginfos, use: debuginfo-install glibc-2.18-12.fc20.x86_64 ...
5
votes
2answers
233 views

How to determine what instructions a process is executing?

I know about strace and ltrace, but that only tells me what system calls and library calls a process is executing, respectively. I would like to know exactly what instructions a process is executing. ...
2
votes
1answer
35 views

“Missing separate debuginfo for …” when running gcore

I am running the following: command: gcore 56058 output: Missing separate debuginfo for /lib64/libdl.so.2 Try: zypper install -C "debuginfo(build-id)=dcca9c1f648bda0a7318a7c8844982c440e3e4a3" ...
0
votes
0answers
69 views

qtcreator debugger shows <unavailable synchronous data> when trying to view the contents of std::map

I'm running QtCreator 4.8.0 on a Ubuntu 12.04 (64bit) machine. apt-cache policy qtcreator shows: qtcreator: Installed: 2.4.1-0ubuntu2 Candidate: 2.4.1-0ubuntu2 Version table: *** ...
1
vote
0answers
45 views

How to debug a semop failure?

Using a 2.6.30-gentoo-r4 Linux a very complex system of php code is executed (with 4.4.9-pl0-gentoo and 5.2.10-pl0-gentoo), which occasionally runs into a semaphore blocking problem. The call to the ...
3
votes
1answer
85 views

Backtrace of “git clone” running inside qemu-user-emulation based arm-chroot

I'm running a wheezy:armhf chroot using qemu user emulation on my jessie:x86_64 system. Somehow, a git clone on a particular private repository will hang inside the chroot, while succeed natively. ...
0
votes
0answers
38 views

Can I use lldb to remotely debug the Linux kernel?

With GDB, I can remotely debug the Linux kernel. lldb, which promises to completely replace GDB, should be able to remotely debug the Linux kernel too. However, I cannot find any tutorial about this ...
0
votes
1answer
121 views

what are some of the best resources to learn advanced debugging techniques using gdb? [closed]

I know the basics of how to use gdb. But I would like to learn some advanced debugging techniques using gdb. What are the best resources - books, blogs, tutorials - that any of you use regularly. I ...
1
vote
2answers
220 views

Uninstalling GDB on a Mac

I'm having lots of problems with GDB; usually crashes and starts using 100% CPU until I kill the process using the activity monitor on the Mac (using Mavericks). How do I remove GDB from my machine ...
3
votes
1answer
728 views

permission denied for ptrace under GDB

I initially posted this question on StackOverflow, as a GDB problem. I didn't find a solution there, but they did help me find that it's a permissions problem, so I'm posting it here. I have set a ...
2
votes
1answer
214 views

How can I run gdb in one machine and run kgdb kernel in another machine?

I want to run two machine: debugged machine: compiled kernel with kgdb option. debugger machine: for running gdb How can I debug machine 1 from machine 2?
0
votes
1answer
366 views

Error installing gdb-arm-linux-gnueabi

I get an error when I try to install the gdb-arm-linux-gnueabi package. This is the error that I obtain when I run apt-get install gdb-arm-linux-gnueabi: $ env LC_ALL=C sudo apt-get install ...
0
votes
0answers
137 views

gdb debugging in Terminal OS X (10.8.5) with zsh - zsh doesn't know gdb

For my studies I have to run a binary unix-program called bomb with gdb. Some time ago I followed the steps on ...
4
votes
5answers
184 views

Run program at lower CPU speed?

It would be very useful for me to run specific programs in a Linux environment with a fixed (lower) CPU clock speed (say, runat 400mhz ./my-program --argument-of="my program" for getting that clock ...
0
votes
0answers
161 views

gdb-multiarch command not found

I have installed QEMU in RHEL for running the assembly programs in ARM. I have successfully installed QEMU and ARM. However, for debugging we are thinking to use GDB. I want to install the ...
2
votes
1answer
180 views

QEMU for ARM programs with GDB [closed]

I want to emulate an ARM processor for running the assembly programs using QEMU in RHEL. I have installed QEMU but I still have problems in running the assembly program. I got the assembly program, ...
2
votes
2answers
99 views

Tshark not running via gdb

I have successfully installed wireshark on centos 6.4 I can run the command tshark it works perfectly fine. I want to run gdb so that I want to learn how it decodes tcp and udp packet as I am writing ...
0
votes
0answers
50 views

Building GDB, cant find libreadline.a

I am trying to build GDB from source, and am encountering a strange problem. I'm not sure what information is relevant, so please let me know if I have not provided enough. I am working on Linux ...
0
votes
1answer
99 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
64 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
23 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
53 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
52 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
200 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
2k 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 ...
6
votes
2answers
3k 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
183 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
374 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
2k 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
1k 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 ...