gdb Questions
1
Solved
In GDB, I can do the following and get address of a string literal:
(gdb) p &"aaa"
$3 = (char (*)[4]) 0x614c20
As I understand, a string literal is a rvalue with no symbol to which i...
1
The backtrace from core-file cut the useful information due to this:
Backtrace stopped: Not enough registers or memory available to unwind
further.
Why this message occurs and can I do someth...
Mclyman asked 17/8, 2012 at 9:11
1
I'm trying to debug an EFI application in qemu with gdb. QEMU is started with -s and -S flags and gdb is started with
gdb ./target/x86_64-unknown-uefi/debug/application.efi
and qemu is targeted wi...
3
Solved
I read the JIT Interface chapter and faced the problem: how to write a simpliest example for simpliest possible code (preferably in C++ and at least for x86-64 platform)? Say, I want to debug the f...
8
I recently started working on vscode. I wanted to debug my C code. But the moment I am launching the debugger getting Error : Unable to start debugging. The value of miDebuggerPath is invalid.
I h...
Sincere asked 28/5, 2019 at 14:12
4
A shared object was built on RedHat Linux and while all the code was compiled with debug, the debugger (gdb) refused to load the symbols and issued an error as in:
...
GNU gdb Fedora (6.8-37.el5) ...
4
Solved
4
My current workflow for a project is the following:
build the project (via catkin)
source a setup.sh script (generated by catkin, which I wouldn't like to modify) setting environment variables an...
Trihedron asked 8/10, 2019 at 15:6
3
I get this error (title of this question), when I am attempting to debug C/C++ programs using gdb with Netbeans IDE.
Does anyone know what this means, and how to get rid of the warning?
I am able...
7
Solved
I have a extremely complicated shell script, within which it calls a C++ program I want to debug via GDB. It is extremely hard to separate this c++ program from the shell since it has a lot of bran...
2
Solved
I have a Python script that launches several external programs as subprocesses and uses pipes to communicate with them. The system runs on Linux. I want to debug one of the children, a specific exe...
2
I would like to strip an ELF binary compiled with debug information and keep only the minimal required information to provide symbols / source code location output in a GDB backtrace.
It would be b...
3
Solved
This is the display of my gdb
(gdb) x/20bx 0xbffff2c0
0xbffff2c0: 0xd4 0xf2 0xff 0xbf 0x16 0x8f 0x04 0x08
0xbffff2c8: 0x05 0x00 0x00 0x00 0x00 0x00 0x0c 0x42
0xbffff2d0: 0x6b 0x00 0x00 0x00
Is i...
Acetic asked 11/1, 2014 at 8:22
4
I am curious why gdb does not show control registers for x86. I have been using gdb with qemu to debug some kernel stuff. I get register values using info registers and info all-registers.
Howeve...
Wicketkeeper asked 11/6, 2014 at 18:4
3
Solved
Does anyone know how to save gdb settings (like "set print pretty on" or "set print elements 0", both from here)? I don't want to set my configuration every time that I will use gdb :/
I searched ...
2
Solved
I've checked /proc/sys/kernel/yama/ptrace_scope in the container and on the host - both report the value as zero but when attached to pid one gdb reports
Reading symbols from /opt/my-web-proxy/bi...
3
Solved
I am trying to see which process which is causing a memory leak, and dump the heap which is causing it to see what is the issue.
Which command do I use in gdb to set the memory leak on and check t...
Bartholomeo asked 8/2, 2013 at 14:59
6
Solved
2
Solved
Assume the following .gdbinit:
break foobar
ignore 1 1
run
The program is started using gdb --args ./myprogram --argument1 --argument2 etc.
Now, when I start this the first time around all is f...
Typhoid asked 18/3, 2015 at 7:40
2
Debugger executable /usr/local/bin/gdb is not signed. As a result, debugging may not work properly in vscode in macOS Catalina 10.15.6.
I am providing the launch.json file for reference.
{
"v...
Adsorbate asked 26/7, 2020 at 6:21
4
I am trying to debug an application that is built from a number of shared libraries using GDB.
Start of gdb:
prompt$ gdb
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
Copyright (C) 2010 Fre...
Genip asked 18/12, 2012 at 10:45
5
I failed using brew to install gdb. I was using the following command:
brew install gdb
Is gdb available on mac m1 (apple silicon)?
If so, what should I do?
Chacon asked 29/4, 2021 at 2:8
2
I have this exact question:
https://github.com/Microsoft/vscode-cpptools/issues/511
But the solution there does not work.
I've tried the same simple example code,
#include <stdio.h>
#inclu...
Gonsalves asked 8/10, 2017 at 5:16
11
Solved
GNU gdb Fedora (6.8-37.el5)
Kernal 2.6.18-164.el5
I am trying to debug my application. However, everytime I pass the binary to the gdb it says:
(no debugging symbols found)
Here is the file ou...
3
When debugging a program with gdb (gdb main), it shows a lot of credits, and links. I know that we can use the quiet argument to disable this text, but I want to disable it permanently. Does gdb ha...
Addam asked 16/9, 2020 at 10:49
1 Next >
© 2022 - 2025 — McMap. All rights reserved.