Split queueCmd() into variants for each mode value.
commitd345a7db7a2647efee0e130a31ab5be76006e1bd
authorJohannes Sixt <j6t@kdbg.org>
Mon, 30 Jan 2017 19:00:58 +0000 (30 20:00 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Mon, 30 Jan 2017 19:00:58 +0000 (30 20:00 +0100)
tree4ecbcd0fa12a205a67300e1ef6d26a693ff3d0c2
parent789dc0fc832115da658b57fa2c9758ffbb79aed8
Split queueCmd() into variants for each mode value.

We want to convert queueCmd() into a variadic template. The trailing mode
parameter is in the way. We want that call sites do not have to specify it.
For this purpose, introduce new variants with different names for the mode
values QMnormal and QMoverrideMoreEqual.

The original function is kept, but with a default argument, so that callers
do not have to specify it.

Adjust all callers to omit the mode argument and to call the new function
corresponding to the old mode argument.
kdbg/dbgdriver.h
kdbg/debugger.cpp