-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IoManager._get_responses_windows mangles token when reading from stdout #54
Comments
leonardopsantos
changed the title
IoManager._get_responses_windows mangles token when reading form stdout
IoManager._get_responses_windows mangles token when reading from stdout
May 18, 2021
Closed
1 task
This was referenced Aug 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The
IoManager._get_responses_windows()
method sometimes doesn't read the MI token.To Reproduce
I'm using pygdbmi to drive
arm-none-eabi-gdb
. I'm issuing commands using a token:And so forth. The reply from GDB is
The problem is that when issuing the command
2-gdb-set print repeats 0
, GDB replies with2^done
, butIoManager._get_responses_windows()
only reads^done
. As I'm using the tokens to match the commands with the replies, my SW fails.To really check that it's a problem with pygdbmi, I tried to directly call
arm-none-eabi-gdb
with the following script:The
gdb_stdout.txt
file isSo, clearly, GDB is indeed replying
2^done
I've enabled debugging in
IOManager
with and also added some more debug statements:And got:
Looking at the gdb log, it's definitively printing the token:
Please complete the following information:
pip freeze
output): 0.10.0.0The text was updated successfully, but these errors were encountered: