The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
18 views

GDB - Call second program

I have a program which I want to debug gdb. And I want to call a second program to redirect the output to the first program. How this is done in gdb. I tried it like that: run -2 < $(python ...
0
votes
1answer
1k 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 ...
2
votes
0answers
68 views

How can you annotate or club info into ELF core files on Linux?

For debugging core files it would be useful to add additional information into a core file at the time it is generated. I'm currently using /proc/sys/kernel/core_pattern to run a 'dumb' script that ...
2
votes
0answers
64 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
0answers
20 views

Why would gdb ignore Control C

Centos7, gdb 'GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7'. Here's what I do: I use gdb -p to attach to a process. Set a breakpoint 'c' Now, I realize that I should have set two ...
1
vote
0answers
171 views

Linux Kernel module Remote Debugging with GDB + KGDB, Remote 'g' packet reply is too long

I am trying to remotely debug Linux Kernel and I am having issues. My setup: Target machine with Ubnutu Linux with my custom kernel 4.3 which I built with debugging information and KGDB. ...
1
vote
0answers
356 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 ...
0
votes
0answers
13 views

How do I debug packages that I've made?

I've created a number of packages using mock and rpmbuild to form my own software repository. As a part of the build, RPM will extract debug symbols and source files and install them in a debuginfo ...
0
votes
0answers
7 views

GDB not copying desired string (Buffer Overflow attempt)

Ok so I am trying to learn about buffer overflows and there is this simple program that is vulnerable of a BoF because it copies the first argument into a buffer of 5 characters. In the source code, ...
0
votes
0answers
67 views

All Cygwin packages installed but can't run GDB

I have installed all of the Cygwin packages but when I try to launch my executable file by typing this into the terminal $ gdb ./a.exe I get the following message: -bash: gdb: command not found ...
0
votes
0answers
54 views

dlopen causes segfault when running in gdb

My project loads a libray (compiled in debug mode) dynamically within the main thread with dlopen and then uses dlsym without problem. However, when running in debug mode with gdb 7.7.1+dfsg-5, it ...
0
votes
0answers
141 views

Can't install additional debug infos in the CentOS 6.7

I am attempting to debug coredump of the some application on the latest CentOS 6.7 and gdb gives me hints that some debug infos are missing, for example: Missing separate debuginfo for ...
0
votes
0answers
160 views

gdb attach permission question (ptrace_scope is read-only)

When using gdb to attach to the process. It shows Could not attach to process. If your uid matches the uid of the target process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try ...
0
votes
0answers
23 views

Setting breakpoints remotely with gdb/gdbserver

I'm debugging a vulnerable app on a remote host. I've set up gbserver on the host with: gdbserver host:1234 /my/target/app On my local host I've connected with: $ gdb /same/target/app gdb$ target ...
0
votes
0answers
360 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: *** ...
0
votes
0answers
476 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 ...
0
votes
0answers
125 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 ...