diff options
author | Jan Vrany <jan.vrany@labware.com> | 2023-10-10 11:22:56 +0100 |
---|---|---|
committer | Jan Vrany <jan.vrany@labware.com> | 2023-10-10 11:22:56 +0100 |
commit | 80a3485f81303639c7212a15cf9e453a830913f8 (patch) | |
tree | e168d3d01d61f88374c73c921768ac071d19ca25 /gdb/arch-utils.c | |
parent | 1fb3cdd87ec61715a5684925fb6d6a6cf53bb97c (diff) | |
download | gdb-80a3485f81303639c7212a15cf9e453a830913f8.zip gdb-80a3485f81303639c7212a15cf9e453a830913f8.tar.gz gdb-80a3485f81303639c7212a15cf9e453a830913f8.tar.bz2 |
gdb/python: generalize serialize_mi_result()
This commit generalizes serialize_mi_result() to make usable in
different contexts than printing result of custom MI command.
To do so, the check whether passed Python object is a dictionary has been
moved to the caller - at the very least, different uses require different
error messages. Also it has been renamed to serialize_mi_results() to better
match GDB/MI output syntax (see corresponding section in documentation,
in particular rules 'result-record' and 'async-output'.
Since it is now more generic function, it has been moved to py-mi.c.
This is a preparation for implementing Python support for sending custom
MI async events.
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/arch-utils.c')
0 files changed, 0 insertions, 0 deletions