Merge lp:~zorba-coders/zorba/debugger_ctrl_c into lp:zorba
Proposed by
Gabriel Petrovay
Status: | Superseded |
---|---|
Proposed branch: | lp:~zorba-coders/zorba/debugger_ctrl_c |
Merge into: | lp:zorba |
Diff against target: |
559 lines (+263/-68) 11 files modified
bin/CMakeLists.txt (+1/-0) bin/debugger/command_prompt.cpp (+12/-1) bin/debugger/main.cpp (+48/-55) bin/debugger/xqdb_client.cpp (+63/-0) bin/debugger/xqdb_client.h (+51/-0) src/debugger/debugger_clientimpl.cpp (+8/-3) src/debugger/debugger_commons.cpp (+7/-1) src/debugger/debugger_runtime.cpp (+18/-3) src/debugger/debugger_runtime.h (+8/-4) src/debugger/debugger_server.cpp (+38/-1) src/debugger/debugger_server.h (+9/-0) |
To merge this branch: | bzr merge lp:~zorba-coders/zorba/debugger_ctrl_c |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Graf (community) | Needs Fixing | ||
Gabriel Petrovay (community) | Approve | ||
Review via email: mp+88918@code.launchpad.net |
Commit message
Added Ctrl-C hooking in the debugger. Ctrl-C can not kill the debugger anymore. It will only stop the running query.
Description of the change
Added Ctrl-C hooking in the debugger. Ctrl-C can not kill the debugger anymore. It will only stop the running query.
To post a comment you must log in.
I tested it. Works really nice. I just have some little comments concerning the code:
1)
Do we already have a bug entry for this:
336 // TODO: this was the initial implementation. This will have to change
337 - this->sleep_(1000);
338 + this->sleep_(250);
2) Handler( DWORD aCtrlType)
Do these lines of code block the default behavior of ctrl-C? If yes, can you please at a comment?
134 +#ifdef WIN32
135 +BOOL WINAPI
136 +ctrlC_
137 +{
138 + if (CTRL_C_EVENT == aCtrlType) {
139 + return true;
140 + }
141 + return false;
142 +}
143 +#else
144 +void
145 +ctrlC_Handler(int lParam)
146 +{
147 + //exit(1);
148 +}
149 +#endif
150 +
3)
Strange variable name: theNotBremse :-)