0
votes
1answer
23 views

Intalling gdb and pstack on Amazon Linux AMI

I tried installing gdb and pstack on EC2 Instance with Amazon Linux AMI (it was not installed by default), and it's not working. Tried: [ec2-user@ip-172-21-ab-xyz ~]$ sudo yum install gdb Loaded ...
1
vote
0answers
125 views

Debugging linux kernel, SIGKILL

Trying to debug linux kernel (vmlinux) with gdb during my education, but after I run kernel I just got "program terminated with SIGKILL": gdb vmlinux-3.11.0-12-generic ...GDB header... Reading ...
1
vote
0answers
24 views

Old gdb cannot find out how to do logging

I'm running an obsolete Red Hat OS and debugging with the built-in gdb but I cannot figure out how to do logging. I've tried: set logging on But get: No symbol "logging" in current context It ...
-1
votes
4answers
3k views

How to know if gdb is installed?

How can i know if gdb is installed in a unix machine? I run the following commands: > gdb > gdb main and the result is gdb: command not found but i don't if this means that gdb is ...
1
vote
0answers
130 views

XCode to debug gdb-debuggable executable

I have compiled a cmake-based executable that is (miraculously) debuggable in gdb. So examining hundreds of variables with the terminal becomes a little bit slow for very large projects and I would ...
0
votes
2answers
919 views

(How) Can I get a core dump when running a program with sudo?

Cores apparently are not dumped when the using sudo despite ulimit -c being set to unlimited. Is there any way around this?
3
votes
2answers
1k views

In GDB, how can I jump directly up to the topmost call stack frame?

I have a C program that seg faults after descending deep into an infinite recursive mess. Backtracing the process in GDB is useless because the call stack frame is at least 1000 frames deep, and the ...