gdbstub: modernise DEBUG_GDB
commit118e226884a762f3ef21351c05043e32be44c1f1
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 12 Jul 2017 10:52:13 +0000 (12 11:52 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jul 2017 10:04:41 +0000 (14 12:04 +0200)
treecf1c103c042d882c343350a8fae75d9fdfa89bfb
parentcb58a6d3611b2d0ff4ed29bb6b659c95a23cb2d5
gdbstub: modernise DEBUG_GDB

Convert the a gdb_debug helper which compiles away to nothing when not
used but still ensures the format strings are checked. There is some
minor code motion for the incorrect checksum message to report it
before we attempt to send the reply.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <20170712105216.747-2-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
gdbstub.c