Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
74 views

%macro mov_dd 2 push eax push ebx mov dword eax, [%1] mov ebx, [eax] mov dword [%2], ebx pop ebx pop eax %endmacro section .data text db "Enter first Number: &...
user31887642's user avatar
0 votes
1 answer
71 views

I want to step into the linear function using VS Code's step-in , but it skips automatically when I click "step into". Could anyone help me with this? I used DEBUG=1 when compiling PyTorch. ...
Shui_'s user avatar
  • 33
2 votes
1 answer
85 views

I wrote a simple example program as below and tried to debug using gdb. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> int function1(void) { ...
Cprogrammer's user avatar
0 votes
0 answers
135 views

I have two separate c++ CMake projects, a library and an application. Both are build using in Debug mode with set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3 -O0 -fno-inline -fno-omit-...
spraff's user avatar
  • 33.7k
2 votes
2 answers
211 views

I am launching my a.out application manually by passing it as an argument to dynamic loader like below. My application is compiled in debug mode. *gdb --args /lib64/ld-linux-x86-64.so.2 ./a.out I am ...
vinit Tirnagarwar's user avatar
0 votes
0 answers
54 views

I have a gdb debug function my_debug() in a gdb Python script, which I'd like to run while stopped at a breakpoint, but from different contexts/cases: either by calling gdb in a sort of a batch mode (...
sdbbs's user avatar
  • 5,948
0 votes
0 answers
45 views

I am debugging a VectorCAST environment on Windows (host x64, MinGW GDB 9.2) using VS Code with cppdbg. When I try to watch a global variable (e.g., vcSlotIteration) through the VS Code Debug Console, ...
Mohamed Demrdash's user avatar
2 votes
0 answers
84 views

I’m working with VLLM (open-source) which includes C++ extension code compiled for Python. I installed it using CXXFLAGS="-Og -g" pip install -e . I want to debug the C++ code from Python by ...
Rachel Ovrani's user avatar
1 vote
1 answer
62 views

Consider a type like #include <type_traits> template<typename T> struct Foo { std::remove_cv_t<T> m; }; which uses a type trait to deduce the type of one of its members from a ...
ComicSansMS's user avatar
  • 55.9k
5 votes
2 answers
262 views

I am working in a codebase that makes heavy use of templates. This causes many issues with debugging, because the compiler leaves almost no debugging information behind to tie object code back to ...
nispio's user avatar
  • 1,806
2 votes
0 answers
103 views

Suppose I have a core dump from a program compiled with AddressSanitizer (ASan), as well as all relevant libraries and debug info, and suppose further that ASan was configured to record a full stack ...
Alex Shpilkin's user avatar
0 votes
1 answer
70 views

I'm trying to debug a canary related issue, 0x080493c2 <+157>: mov eax,DWORD PTR [ebp-0xc] 0x080493c5 <+160>: xor eax,DWORD PTR gs:0x14 Now I need to read gs:0x14 (gdb) ...
daisy's user avatar
  • 23.7k
2 votes
1 answer
134 views

Debug environment: Ubuntu Linux 24.04, VSCode, a c++ app being debugged using the VSCODE-hosted version of gdb (the default Microsoft-supplied C/C++ debugger). I am trying to debug a problem in my app....
Robin Davies's user avatar
  • 7,955
1 vote
1 answer
80 views

The title says it all. This question is quite the same with this question. However, the difference is that now it is 2 years and 4 major versions of cygwin gdb later. I want to believe that keeping ...
virolino's user avatar
  • 2,331
0 votes
1 answer
212 views

New to docker/qemu/gdb. I am able to "make debug" and "make gdb" and debug from CLI. However, I got an error (no executable specified) when I try to use VSCode debugger to attach ...
Chang Jia Jun's user avatar
0 votes
0 answers
38 views

I have programmed the Cross Trigger Interface (CTI) to halt multiple cores simultaneously during debugging using OpenOCD. This setup works fine initially, but when I start some cores using GDB, it ...
aymane bahssain's user avatar
0 votes
0 answers
43 views

I am trying to automate something in gdb: I want to call monitor rtt setup <addr> <size> with the appropriate values from the _SEGGER_RTT symbol. This works when I do it manually, but I ...
David van rijn's user avatar
1 vote
1 answer
446 views

On a pristine new Windows 11, installed Visual Studio code, MSYS2(ucrt64), and under it: base_devel, gcc, gdb, cmake. In Visual Studio code when first opening a .cpp file I accepted its advice to ...
Joymaker's user avatar
  • 1,624
0 votes
1 answer
56 views

Following this article, GDB is installed in the same prefix as glib (I'm using official distro packages. However, when I run info auto-load python-scripts, I get No auto-load scripts. I have enable ...
expoodo's user avatar
  • 123
0 votes
0 answers
57 views

Debugging in MS-DOS is one of the roadblocks that i have with MS-DOS programming, i'm using DJGPP and i have no complaints with it's gdb debugger, but the issues lies with the fact that once i turn on ...
Gene Adam Oker's user avatar
0 votes
0 answers
53 views

I moved from emacs to VS Code few months back. We have a large C++ code base. In emacs, I used to debug using gud-gdb interface. However, I have not been able to successfully setup gdb with vs code. I ...
soumeng78's user avatar
  • 911
1 vote
0 answers
89 views

been using gas assembler and here is code below that moves a data between register and memory 3 .section .data 4 constant: 5 .int 10 6 7 .section .text 8 .globl _start 9 ...
yaratamin's user avatar
0 votes
0 answers
56 views

I'm trying to debug the QEMU source code to track dirty page updates during live migration. My goal is to inspect the behavior inside functions like cpu_physical_memory_set_dirty_lebitmap() on the ...
Kalpa Suraweera's user avatar
0 votes
0 answers
37 views

Is there a way to instruct GDB to still dump a core file, even when being used interactively? I'm trying to find something for the init/config file
intrigued_66's user avatar
  • 17.5k
0 votes
0 answers
94 views

I am trying to set up debugging for C++ with GDB or LLDB in a Windows VM running via Parallels on a Mac. Here's my launch.json. When I press F5 I always get the message, "Configured debug type '...
Joymaker's user avatar
  • 1,624

1
2 3 4 5
234