mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
Use field_signed from Python MI commands
If an MI command written in Python includes a number in its output, currently that is simply emitted as a string. However, it's convenient for a later patch if these are emitted using field_signed. This does not make a difference to ordinary MI clients.
This commit is contained in:
@ -110,6 +110,7 @@
|
||||
typedef PY_LONG_LONG gdb_py_longest;
|
||||
typedef unsigned PY_LONG_LONG gdb_py_ulongest;
|
||||
#define gdb_py_long_as_ulongest PyLong_AsUnsignedLongLong
|
||||
#define gdb_py_long_as_long_and_overflow PyLong_AsLongLongAndOverflow
|
||||
|
||||
#else /* HAVE_LONG_LONG */
|
||||
|
||||
@ -118,6 +119,7 @@ typedef unsigned PY_LONG_LONG gdb_py_ulongest;
|
||||
typedef long gdb_py_longest;
|
||||
typedef unsigned long gdb_py_ulongest;
|
||||
#define gdb_py_long_as_ulongest PyLong_AsUnsignedLong
|
||||
#define gdb_py_long_as_long_and_overflow PyLong_AsLongAndOverflow
|
||||
|
||||
#endif /* HAVE_LONG_LONG */
|
||||
|
||||
|
Reference in New Issue
Block a user