Questions tagged [gdb]

The GNU Debugger usually called just GDB

is the standard debugger for the GNU software system. It is a portable debugger that runs on many Unix-like systems and works for many programming languages, including Ada, Java, C, C++, Objective-C, FreeBASIC, Free Pascal and Fortran.

91 questions
10
votes
3 answers

Upgrade from gdb 7.7 to 7.8

How to upgrade my GDB debugger from the current version which is 7.7 to the next version which is 7.8, Also I'm working on Ubuntu 14.04.1?
Belal Medhat
  • 237
  • 1
  • 3
  • 9
4
votes
2 answers

Core file not generated in Ubuntu 18.04

I was trying to generate a core file in Ubuntu 18.04. My program generates a core file, but I'm not able to find it. $ ./a.out Segmentation fault (core dumped) $ ls -lrt total 32 -rwxrwxrwx 1 sanjay sanjay 302 Mar 4 16:38…
sam
  • 41
  • 1
  • 1
  • 2
3
votes
3 answers

debugging in codelite - "GDB: Failed to set controlling terminal: Operation not permitted"

while debugging in codelite this error appears in the terminal : could anyone help me solving this problem?
1
vote
3 answers

Why is gdb looking for assembly files?

I am attempting to learn about gdb using Ubuntu 13.10. I am using the gcc compiler and following example: https://en.wikipedia.org/wiki/Gdb#An_example_session Instead of the output shown in the example, I get: Program received signal SIGSEGV,…
Jason K
  • 11
1
vote
1 answer

Ubuntu 19.10 gdb nearly unusable long delay

I am having a problem with the gnu debugger on Ubuntu 19.10. The problem presents itself as a long delay, somewhere between 20-30 seconds between running my program with gdb and my program actually appearing to run. I typically use gdb with the…
sysrpl
  • 251
  • 1
  • 2
  • 5
0
votes
1 answer

GDB arrow keys not working

The up arrow key in gdb is not scrolling through previous commands on one of my ubuntu machines (kudu) but is working on another (similar) machine (cs13): karl@kudu:~$ gdb --version GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 karl@kudu:~$ uname…
cronburg
  • 178
  • 9
0
votes
0 answers

Does Ubuntu not provide debuginfod for gdb?

The operating system I am currently using is Ubuntu 22.04 (Jammy Jellyfish). I referred to Ubuntu's Service - Debuginfod official documentation, link: https://ubuntu.com/server/docs/service-debuginfod And add export…
0
votes
0 answers

gdb-multiarch cannot recognize my arm binary file

I want to use gdb-multiarch to remote debug arm code running in qemu. Below is my mk script: ARM=arm-none-eabi QEMU=qemu-system-arm $ARM-as -o ts.o ts.s -g $ARM-ld -T t.ld -o t.elf ts.o $ARM-nm t.elf $ARM-objcopy -O binary t.elf t.bin dd if=t.bin…
shino
  • 1
0
votes
0 answers

gdb/gdb multiarch does not work on my ubuntu

currently I'm running xv6 on qemu on Ubuntu machine, the version is buster/sid On one terminal I start qemu like this, seems ok ~/xv6-labs-2020# make qemu-gdb *** Now run 'gdb' in another window. qemu-system-riscv64 -machine virt -bios none -kernel…
Thomas
  • 1
  • 1