0

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 get only the SomeString without the address

How can I do that directly with python GDB (without regex/split)

python3.789
  • 164
  • 9

0 Answers0