Refactoring to remove alwaysAllowCliCommand argument from evaluate requests#504
Refactoring to remove alwaysAllowCliCommand argument from evaluate requests#504omarArm wants to merge 7 commits into
Conversation
|
I am not familiar enough with the expression evaluation stuff to give a meaningful review, but I support removing the restriction from commands that are not expression evaluations (start with |
|
@omarArm , as discussed earlier today, please review if the global handle should be create right after a reset of |
|
@jreineckearm It works while running for auxGDB because the value of |
|
I support what you are doing here in principle - but I don't understand what sequences you are allowing that used to be not allowed. Can you add a test with the sequence of commands that come from VSCode that you are trying to change behaviour of please?
This seems like a reasonable thing to do when the adapter has info that the front-end isn't able to provide. However, I don't understand why the default of using thread 1 is the reasonable thing to do in this case. |
|
@jonahgraham I am trying to allow CLI commands for host debugging. As the old pattern had the argument I will try to add a test for it sure. I initially had the idea that the normal test routines provided in the evaluate request are enough. As for the global frame handle, Actually I will add a comment in the code explaining the whole pattern to avoid future confusion. Edit: I removed the global handle from this PR. I figured the idea of supporting undefined frameIDs still need more investigation before getting into providing solutions |
|
Apologies for the back and forth here. I think we tried to do too much in one go and didn't think the thread ID part through. I agree with the proposal to move the undefined theads/frame ID behaviour to a separate PR. #503 should be kept open for the time being. The change done here should deal with removing the artificial limitations we introduced earlier for the I appreciate that you will be a way for a couple of weeks soon, @omarArm . Hence, we either have to park the next steps on #503 . Or someone else takes over. Need to see what my own bandwidth allows until you are back.... |
|
I found out that this won't properly work with |
This PR should implement #503
In this PR, I did the following: