Skip to content
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

[jtag] Add mi mode flag (RDT-290) #143

Open
hfudev opened this issue Oct 8, 2022 · 2 comments
Open

[jtag] Add mi mode flag (RDT-290) #143

hfudev opened this issue Oct 8, 2022 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@hfudev
Copy link
Member

hfudev commented Oct 8, 2022

For now we're using string mode for gdb by default. there're two ways to support mi2 mode

  1. run gdbmiparser.parse_response to parse the output
  2. use gdbmi = GdbController() instead of bare subprocess.popen

Prefer to use the first one. make the gdb write blocking as well, like the openocd one.

@hfudev hfudev changed the title [jtag] Add Gdbmi mode flag [jtag] Add mi2 mode flag Oct 8, 2022
@hfudev hfudev mentioned this issue Oct 8, 2022
@github-actions github-actions bot changed the title [jtag] Add mi2 mode flag [jtag] Add mi2 mode flag (RDT-290) Oct 8, 2022
@hfudev hfudev changed the title [jtag] Add mi2 mode flag (RDT-290) [jtag] Add mi mode flag (RDT-290) Oct 8, 2022
@hfudev
Copy link
Member Author

hfudev commented Oct 8, 2022

a few reasons not use GdbController directly

  1. esp-idf only support pygdbmi 0.9.0.2. which has issue: Suppress logging output from StringStream? cs01/pygdbmi#36. This issue is fixed in 0.9.0.3, but the version is not compatible with gdbgui==0.13.2.0
  2. somehow break the philosophy a bit. the write is blocking the IO.

@hfudev hfudev added this to the 1.1.0 milestone Nov 4, 2022
@hfudev hfudev added the enhancement New feature or request label Nov 24, 2022
@hfudev
Copy link
Member Author

hfudev commented Jan 18, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant