127 questions
            
            
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                60
            
            views
        
        
            
        How can I resolve type traits in gdb Python API?
                    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 ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                58
            
            views
        
        
            
        gdb: invoke custom python command without printing it
                    Since gdb has only one global set print elements that affects all array-like types, it has been necessary to use a very short value like set print elements 4. But in certain specific cases it can be ...
                
            
       
        
            
                1
            
            vote
        
        
            
                0
            
            answers
        
        
            
                53
            
            views
        
        
            
            
        python gdb frame unwind does not recogonize structure member variables
                    I am trying to print the value of a member variable of a structure instantiated in the caller function as below. While the read_var on older() frame works for the structure variable itself, it doesn't ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                61
            
            views
        
        
            
            
        gdb pretty printing: How do I demangle a type using gdb python module?
                    Pretty much what the question says.
Context: in cuda-gdb, if you have a templated struct and want to know what type it is, you will get something like this: @something mangled_name. I want to write a ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                796
            
            views
        
        
            
        Issues Connecting Ghidra to GDBServer on Windows
                    all buttons non active
I'm trying to set up remote debugging for my application on Windows using Ghidra and GDBServer.
trying_connect_to_gdb
GDB successfully connects to GDBServer. However, when I ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                132
            
            views
        
        
            
            
        How to find memory address of a function which isn't called in main, but declared and defined outside main in gdb
                    tl,tr: Find memory address of an uncalled function, without having source code(or having function name) in gdb.
Issue: given a source code given to me, which looks like this:
#include<stdio.h>
...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                74
            
            views
        
        
            
            
            
        python gdb extension: i'm trying to get the calling line and file info for a macro call but getting wrong values due to comments
                    I have the following C++ code:
main.cpp:
#include "a.h"
int main(){
    int x[3];
    some_macro(x)
    // comment
    // comment
    return x[2];
}
a.h:
template <typename T>
inline ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                766
            
            views
        
        
            
        How to read in a (compressed) .gdb using R and or SF Package?
                    I want to open a GDB (A directory that ends with ".gdb") in R. I am assuming that some sublayers or the whole GDB is compressed, though i do not know how to confirm this. I have tried ...
                
            
       
        
            
                2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                163
            
            views
        
        
            
            
            
        Overwriting segfaulting instructions with NOPs doesn't fix segfault in gdb
                    I thought it would be cool to add a command to gdb that will look at the instruction pointer and overwrite the current instruction with NOPs. The idea being that if you are debugging, and your program ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                35
            
            views
        
        
            
        In gdb while debugging a core file, how do I read a structure given the address using a python gdb extension?
                    I am writing a python gdb extension. Given the address of a structure, I would like to read the core file and obtain a gdb.Value object out of it. How do I go about doing that?
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                27
            
            views
        
        
            
            
        Why can't I connect gdb to the main function by running a python script
                    enter image description here
gdb opens a local file and points to mian function without using a script. I hope this script I wrote will point to main function as well,Another question is does gdb ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                248
            
            views
        
        
            
            
            
        memset() does not work when called in GDB thru Python APIs
                    I'm trying to memset the data at some address in a gdb session.
Lets say it is initially filled with 1's and I'm trying to overwrite it with 0's.
(gdb) set $i = (int*)malloc(sizeof(int))
(gdb) set *$...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                266
            
            views
        
        
            
            
            
        Get the char* value with python gdb
                    With GDB and Python I tried to get the char* value on x1 register
python
a= gdb.execute("x/s $x1", to_string=True)
print(a)
end
But I got
0xbb4aaa:       "SomeString"
I want to ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                182
            
            views
        
        
            
            
        How do I run GDB with the arguments I normally write in the terminal manually?
                    I have some program, the essence of which is to analyze crashes, it works with GDB.
An example of how it works: I run an application in GDB which I want to analyze for crashes, then I load my program ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                3k
            
            views
        
        
            
        Apply material and texture image using python in blender 3.4
                    Code is working it is importing my files and exporting into .glb format
but issue when i open glb file it dose not contain texture image it shows grey...
here is my code
import bpy
import os
dir_path ...
                
            
       
        