Nathan Baum <nat...@parenthephobia.org.uk> writes: > Hullo. > > This series of patches partially converts info qtree to QMP. > > I've gone halfway: one can use query-qtree in QMP. > > I haven't converted the old monitor function other than to rename it; > do_info_qtree_print just ignores the QObject it is passed and prints > the qtree the old-fashioned way. > > hw/isa-bus.c | 19 +++++++++++++ > hw/pci.c | 50 +++++++++++++++++++++++++++++++++++ > hw/qdev.c | 82 > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++- > hw/qdev.h | 5 +++- > hw/sysbus.c | 20 ++++++++++++++ > hw/usb-bus.c | 15 ++++++++++ > monitor.c | 3 +- > 7 files changed, 191 insertions(+), 3 deletions(-)
Patch 2 adds a static function, patch 3 puts it to use. Not bisectable with -Werror. Merge the two. Same for patch 4+5, 6+7, 8+9, 10+11. Completing the job shouldn't be hard, just change the print_dev methods to format the value returned by the info_dev method instead of getting the information out of the device. Thanks!