This works :
(gdb) python print("123") 123 (gdb)
Whereas this does not
(gdb) python print 123 File "<string>", line 1 print 123 ^ SyntaxError: invalid syntax Error while executing Python code. (gdb)
This works :
(gdb) python print("123")
123
(gdb)
Whereas this does not
(gdb) python print 123
File "<string>", line 1
print 123
^
SyntaxError: invalid syntax
Error while executing Python code.
(gdb)