Skip to content

pio debug --interface=gdb --interpreter=mi2 does not wrap diagnostics messages into proper format #5126

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

Open
elmot opened this issue Apr 2, 2025 · 1 comment
Assignees
Milestone

Comments

@elmot
Copy link
Contributor

elmot commented Apr 2, 2025

Steps to reproduce:

  1. Create a project with following platformio.ini:
[env:hifive1]
platform = sifive
board = hifive1
framework = freedom-e-sdk
debug_tool = qemu
build_type = debug
  1. Start debug session in mi mode:
    pio debug --interface=gdb --interpreter=mi2 -x .pioinit --iex "set mi-async on" -e hifive1
  2. issue a command:
    x/xb 0xc000000

Expected result:
Well-formed MI records.
for example a error should look like:

^error,msg="sifive_plic_read: Invalid register read 0x0"
~"0xc000000:\t0x00\n"
^done

Actual result:
Malformed text:

sifive_plic_read: Invalid register read 0x0
~"0xc000000:\t0x00\n"
^done
@elmot
Copy link
Contributor Author

elmot commented Apr 2, 2025

similar to #4959 , #4565

@elmot elmot changed the title pio debug --interface=gdb --interpreter=mi2 does not wrap diagnostics messages to a proper format pio debug --interface=gdb --interpreter=mi2 does not wrap diagnostics messages into proper format Apr 2, 2025
@ivankravets ivankravets added this to the 6.1.19 milestone Apr 7, 2025
@ivankravets ivankravets self-assigned this Apr 7, 2025
@ivankravets ivankravets modified the milestones: 6.1.19, 6.1.20 May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants