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

Bug 580259: Not all remote session have a connected process #49

Merged

Conversation

Torbjorn-Svensson
Copy link
Member

Contributed by STMicroelectronics

Change-Id: I21f9cc095e7a4f6ba0af4ef344e74fdbe8f6c43a
Signed-off-by: Torbjörn Svensson torbjorn.svensson@st.com

Contributed by STMicroelectronics

Change-Id: I21f9cc095e7a4f6ba0af4ef344e74fdbe8f6c43a
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
@Torbjorn-Svensson Torbjorn-Svensson added this to the 10.7.1 milestone Aug 16, 2022
@Torbjorn-Svensson
Copy link
Member Author

@Torbjorn-Svensson
Copy link
Member Author

@jonahgraham: Should we consider the last comment on https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/188851 or should we simply go with this solution?

@jonahgraham
Copy link
Member

I can't properly review this now, nor answer your question. That said Umair has demonstrated good knowledge in this area in the past. I can look again in a few days.

@jonahgraham
Copy link
Member

Essentially cherry-picked from 96839a0

@jonahgraham jonahgraham merged commit dc4cc80 into eclipse-cdt:cdt_10_7 Aug 22, 2022
@Torbjorn-Svensson Torbjorn-Svensson deleted the pr/bug580259_cdt10.7 branch August 23, 2022 07:04
@@ -333,38 +327,38 @@ public void attachDebuggerToProcess(final IProcessDMContext procCtx, final Strin
public void execute(final RequestMonitor rm) {
// The remote session is already connected to the process
// Bug 528145
if (fBackend.getSessionType() == SessionType.REMOTE) {
if (fBackend.getSessionType() == SessionType.REMOTE
&& doCanDetachDebuggerFromProcess()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I am unable to understand the reason for this condition..

I am running multi-gdbserver and attaching to second process using GdbConnectCommand and because of this condition, actual attach is not happening.. am I missing something here?

Copy link
Member

Choose a reason for hiding this comment

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

@umairsair can you raise a new issue for this please so we can get it tested and resolved.

Copy link
Contributor

Choose a reason for hiding this comment

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

@jonahgraham I'll try to work on it in detail and will submit a patch if there is really an issue on CDT side and not something in my local setup..

Copy link
Contributor

Choose a reason for hiding this comment

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

I have created #336


if (numConnected == 1 && sessionType == SessionType.REMOTE) {
// Bug 528145: Special case for remote sessions with an existing connection.
return true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Because of this change, connect option is always available in context menu of debug session even for all-stop mode but debug new executable is grayed out.. I am using "C/C++ Attach to Application" with "gdbserver" as debugger..

I'll further look into https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/188851

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

Successfully merging this pull request may close these issues.

3 participants