Skip to main content
Filter by
Sorted by
Tagged with
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
1 vote
0 answers
57 views

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 ...
Mashy's user avatar
  • 21
0 votes
0 answers
812 views

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 ...
TechRobs's user avatar
0 votes
1 answer
79 views

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 ...
Ruba Rushrush's user avatar
2 votes
1 answer
168 views

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 ...
Joseph Garvin's user avatar
0 votes
0 answers
27 views

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 ...
Yyuu MW's user avatar
0 votes
1 answer
270 views

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 ...
python3.789's user avatar
0 votes
1 answer
3k views

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 ...
Arav Instance's user avatar
0 votes
0 answers
128 views

I need a c++ script to automate GDB debugging another c++ program. the c++ script has to be able to run gdb commands and get the results from it and use it inside the script to save variable values ...
Mohammad Jalili's user avatar
0 votes
0 answers
62 views

I have written a small python script that adds new commands to gdb and for others to use it, they can just source the python file in their ~/.gdbinit, but I would now like to add some useful aliases ...
anirudh's user avatar
  • 4,196
0 votes
0 answers
177 views

There is gdb.lookup_type("SomeType") in GDB python API as listed blow, but I cannot find a way to get the source file and line number where the type is defined, much like what the GDB ...
Thomson's user avatar
  • 21.9k
0 votes
0 answers
162 views

I've loaded up two versions of a C++ library in gdb, opened up the built-in Python interpreter, and run import gdb gdb.lookup_type('Foo<Bar>') In one version, it works just fine. However, in ...
Daniel Walker's user avatar
0 votes
1 answer
851 views

I am trying to debug an aarch64 Linux kernel loaded in QEMU from x86 host. When 'lx-symbols' command executed for loading the symbols from gdb, it has shown Undefined command: "lx-symbols" ...
Little Tree's user avatar
1 vote
1 answer
219 views

I'm writing a GDB script in python to print some debug information of the application. The thing is multiple architectures are supported: x86, alpha, aarch64, and probably some more later. The ...
Some Name's user avatar
  • 9,730
0 votes
1 answer
565 views

I recently compiled gdb to 12.1 and attempted to install gef via the following cmd bash -c "$(curl -fsSL https://gef.blah.cat/sh)" the code on line 52 in the image is import abc the ...
pi0's user avatar
  • 1
2 votes
0 answers
153 views

Suppose I have a class: class RawMessage(NamedTuple): data: Dict timestamp: float ... The keys and values in this dictionary are probably all integers, but I don't want to state that with ...
awy's user avatar
  • 43
2 votes
0 answers
373 views

I want to put a breakpoint in a Linux share library in specific offset ( in libTest.so in function 0x1234 ) while I debugging with GEF GDB. But I want to put it with gdb script. If I run vmmap ...
Polo1990's user avatar
0 votes
0 answers
76 views

In gdb currently I can print the contents of a container, such as std::list, which contains a structure type. This type, however, is quite large and I need only values of some selected fields in every ...
Ethouris's user avatar
  • 1,921
0 votes
1 answer
317 views

In gdb's Values From Inferior documentation, there's a second constructor for creating objects within python. It states: Function: Value.__init__ (val, type) This second form of the gdb.Value ...
Adrian's user avatar
  • 11.1k
1 vote
0 answers
330 views

Can I install a python package with binary extension compiled with debug symbols when using poetry? For example, this way a gdb or py-spy will get the necessary pretty-printing output
Ojomio's user avatar
  • 1,073
2 votes
0 answers
232 views

I have a python server running (cherrypy webserver). When a URL /a is hit, it uses ctypes to call a C library function. The library function is causing a seg-fault which results in the python server ...
lucifer's user avatar
  • 409
0 votes
1 answer
792 views

i'm currently working on an ubuntu 18.0.4.5 machine and i've been trying to figure out the whole kernel debugging process. I've stumbled upon the need to auto run GDB scripts along with the vmlinux ...
sharlit mals's user avatar
3 votes
2 answers
1k views

Suppose I have the following C++: template <int I> int bar(int i) { ++i; label1: return I * i; } int main(int argc, char **) { return bar<2>(argc); } Is it possible to set a gdb ...
Luke Peterson's user avatar
2 votes
1 answer
1k views

I tried to set watch into address (gdb) watch 0x7536546 but I got an error Warning: Could not insert hardware watchpoint 6. Could not insert hardware breakpoints: You may have requests too many ...
MicrosoctCprog's user avatar
0 votes
1 answer
371 views

When I want to run python into gdb I using source /tmp/gdb/tmp/parser.py Can I set an alias so in the next time I want to call this script I use only parser.py or parser (without setting the script ...
MicrosoctCprog's user avatar