Skip to content
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.

Allow RTT & GDB to run concurrently! #159

Merged
merged 6 commits into from
Dec 5, 2020
Merged

Allow RTT & GDB to run concurrently! #159

merged 6 commits into from
Dec 5, 2020

Conversation

Yatekii
Copy link
Member

@Yatekii Yatekii commented Dec 4, 2020

No description provided.

Copy link
Member

@Tiwalun Tiwalun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looking forward to RTT and GDB at the same time.

I only have some minor comments.

src/main.rs Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
.as_deref()
.or_else(|| Some("localhost:1337"));
// This next unwrap will always resolve as the connection string is always Some(T).
log::info!(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for this change? Is there a threading issue with the logging::println call?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this writes into the RTTUI, messing with the entire layout, rendering RTT unusable :/ I have not fond a way to swallow the logs from the GDB thread yet :/
Currently the GDB server also emits a lot of warnings that maybe should be debug logs. We sould clean this up.

@Yatekii Yatekii requested a review from Tiwalun December 4, 2020 21:46
Copy link
Member

@Tiwalun Tiwalun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

src/main.rs Outdated Show resolved Hide resolved
@Yatekii Yatekii requested a review from Tiwalun December 5, 2020 10:27
@Yatekii
Copy link
Member Author

Yatekii commented Dec 5, 2020

bors r+

bors bot added a commit that referenced this pull request Dec 5, 2020
159: Allow RTT & GDB to run concurrently! r=Yatekii a=Yatekii



Co-authored-by: Noah Hüsser <[email protected]>
Co-authored-by: Noah Hüsser <[email protected]>
Co-authored-by: Yatekii <[email protected]>
@bors
Copy link
Contributor

bors bot commented Dec 5, 2020

Build failed:

@Yatekii
Copy link
Member Author

Yatekii commented Dec 5, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 5, 2020

@bors bors bot merged commit 6728e8a into master Dec 5, 2020
@bors bors bot deleted the unique-gdb branch December 5, 2020 13:07
robyoung added a commit to robyoung/cargo-embed that referenced this pull request Sep 10, 2021
Since probe-rs#159 it has been possible to use RTT and GDB at the same time.
bors bot added a commit that referenced this pull request Sep 10, 2021
259: Remove mutual exclusion comment on RTT / GDB r=Yatekii a=robyoung

Since #159 it has been possible to use RTT and GDB at the same time.

Co-authored-by: Rob Young <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants