Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
2 answers
152 views

Background I am modifying the source code of vim and I need to use a debugger. Problem Since vim is a terminal program, it takes over the terminal when it starts. So as soon as I start inside gdb, I'm ...
nullromo's user avatar
  • 2,737
0 votes
2 answers
2k views

I am trying to pass command line arguments to the gdb in vscode. Here is my launch.js config. { "configurations": [ { "name": "(gdb) Launch", "type": &...
denisssj's user avatar
0 votes
1 answer
39 views

I have compiled the very simple program $ cat main.cpp #include <iostream> int main() { uint64_t val=1; // val = htobe64(val); std::cout << val << std::endl; } $ g++ -g ...
phinz's user avatar
  • 1,647
0 votes
0 answers
265 views

cgdb prints these symbols in terminal: [32m <some string> [m. It is the "gdb" part of the program that does that. The "cgdb" part(or window, you name it), prints to terminal ...
jorge is not ai's user avatar
1 vote
0 answers
293 views

I'd like to use the same keyboard shortcuts for step-debugging in CGDB that Visual Studio uses by default. The main three for me are step over (F10), step in (F11), and step out (SHIFT+F11). I use ...
user2023370's user avatar
  • 11.3k
1 vote
1 answer
979 views

I'm looking for a tool like CGDB for LLDB. Make debugging in the terminal easier. Thanks.
zhuxiaoxi's user avatar
  • 153
1 vote
0 answers
90 views

I'm trying to run after setting a breakpoint in cgdb Starting program: /path/to/my/executable Unable to find Mach task port for process-id 1996: (os/kern) failure (0x5). (please check gdb is ...
Carpetfizz's user avatar
  • 9,269
0 votes
0 answers
66 views

When I step into this line in cgdb if (cfgFile.good()) //Settings:cpp:31 std::cout << "File load succeeded" << std::endl; //Settings:cpp:32 I get this error (gdb) run The program ...
PrimRock's user avatar
  • 1,176
0 votes
0 answers
57 views

I am using gdb, and something like following: thread_2() { // do something wait_thread_1_to_wake_me_up(); // do something } thread_1() { // do something create_thread_2(); //...
user1490269's user avatar
1 vote
1 answer
806 views

Here is my very simple program that I am trying to debug with cgdb. Problem is once I get to the "scanf" line, it prompts for an input, but once I press enter after entering the input (2 in the ...
A.P.'s user avatar
  • 481
1 vote
2 answers
185 views

Where should the github issue be placed for an outdated homebrew formuae; homebrew's github, or somewhere on the project maintainers' side? For a formula I've been trying out, cgdb, it seems that in ...
hlin117's user avatar
  • 22.5k
1 vote
1 answer
878 views

I am aware that the go team will not support GDB very well. However, it seems it works sometimes so before I give up I want to see if it works on this program. I was trying to use it to debug my ...
Charlie Parker's user avatar
1 vote
2 answers
125 views

When I run CGDB I see all of the code/backtraces/stdout stuff just fine. When I exit, it all gets cleared (just like when I exit vim, for instance). As a result I lose all the output. I realize it ...
Eugene Marcotte's user avatar
2 votes
1 answer
638 views

I have the following function residing in ~/.gdbinit: define foo echo \033[34m echo testing...\n echo \033[0m end When running foo in gdb it prints testing... in blue, however, when ...
Tyilo's user avatar
  • 30.4k
4 votes
3 answers
485 views

Is it possible to jump to current line being executed in the Source Window of cgdb? It would be great to have a command or a shortcut to do this, especially after browsing files in the File Dialog ...
tonyo's user avatar
  • 433
18 votes
1 answer
11k views

While using cgdb, how does one scroll through the output visible in the gdb window?
Vincent Scheib's user avatar
0 votes
1 answer
731 views

When I debug a ncurses appplication I usually do the following: gdb --tty=/dev/ttys000 ... This will then make the ncurses application to run in a different terminal than the one gdb runs in. ...
Ynv's user avatar
  • 1,984
9 votes
3 answers
5k views

I can't find a way for cgdb to disassemble a binary and show the assembly code with the current instruction in the code window. Is this possible and what command should I use? I'm using Mac OS X and ...
norq's user avatar
  • 1,452
5 votes
1 answer
1k views

When I use set logging on in gdb, the output to the log file has a different format than what I see on the terminal screen. The logfile is not very readable. How can I get the log file in a readable ...
matthiash's user avatar
  • 3,283