centralize gdb command result class checking

each command can have only one of two legitimate responses: "error" or -
depending on the command, and thus declared via a flag - "done" or
"running".
this is way nicer than sprinkling the code with else-ifs (where elses
are sufficient) and asserts all over the place - and silently failing in
release builds.
This commit is contained in:
Oswald Buddenhagen
2009-10-12 12:00:07 +02:00
parent 2de8f49ee3
commit a1a8f6adcb
9 changed files with 60 additions and 58 deletions

View File

@@ -176,7 +176,8 @@ public: // otherwise the Qt flag macros are unhappy
Discardable = 2,
RebuildModel = 4,
WatchUpdate = Discardable | RebuildModel,
EmbedToken = 8
EmbedToken = 8,
RunRequest = 16
};
Q_DECLARE_FLAGS(GdbCommandFlags, GdbCommandFlag)