Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Reseting the embedded target does not update the editor location
  • From: Torbjorn SVENSSON <torbjorn.svensson@xxxxxx>
  • Date: Wed, 26 Jan 2022 21:07:06 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NUbJk6d7mi47jVcloFJ5m39XdTDktZYPaT5fNVyjugs=; b=dtKWA9MDf4VbQhH6t1ONI1ktKLuo8RYF076XuHvnWTq968hjdTlnPei39UGUOmnjeGNQ4drT7VX/PAgYEF8Xaoql/hP4ESuBz8fPlAIrzhjxmcOr1YzH/S1h7qEgHrTIcoySgF99g/BSPDsBC4GT8dOdPEbQFuAS+UcuzXDuGelHhxsIaPlD8Ui8jbbyxFR+faZ38tZ6LaEmYuRunnu2JVv9TRgAYMoC9rOwP4VDqgAvHNquRIrHIf+4pZDUaBI/H3YlpldDczzCg+83Jp+cRGfvooDTG7t4IDSYPFgdEI4g3OjLgdBEEUkncBJcmQrjsv4tSujLACOQp8KxdhQsjA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QOjIMDRa9+FK6ZJzpDGAH4N5MVw10tsvYHpRylntPL4h2AkeS8MbqOQBxhdX9ABBerACbuf20NU+clgoNSvw/CrSUhF+O+F/Ep1G4J5fdwHupdknP+E+iYEnH+roxfE46XcGwr7OlkzoizUsfAz7QDNanDlO9BobXl6WVH2d2ukXeI2nE42ey0/NEkfKsO5OvL1j+cz4fbpKhBn3OlaaXd68K17uoQAZsnyu5iSpdqKl0igvJdx8cnP4i4nsKxpPDEOdRotr6hKSNlci92X2+OgBwvgTDsbkwczxCFgMpDc4GeM0XSsfIvDo4flYreNRNdof+V62q0eMjsogxBoDeQ==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev/>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels: MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_Enabled=true; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_SetDate=2022-01-26T21:06:08Z; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_Method=Privileged; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_Name=cf8c7287-838c-46dd-b281-b1140229e67a; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_SiteId=75e027c9-20d5-47d5-b82f-77d7cd041e8f; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_ActionId=c2598db0-5a66-4117-a0f0-0721900b7dd8; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_ContentBits=0
  • Thread-index: AdgSEPT7bic0NOR1Q8OW6EN2dU7nuwAClYQAADWpoFA=
  • Thread-topic: [cdt-dev] Reseting the embedded target does not update the editor location

Hello Jonah,

Yes, it's indeed a follow-up on our (mostly your) previous work.

I've been trying to debug though the code for the "Debug" view in order to detect what actually makes it update the content. After about 12h of debugging, I’m no closer to finding where the magic happens so I'm at a point of giving up here.

I think someone with knowledge of DSF internals and/or how the CDT debug model work should take a look at what's going.
I've opened a bug report with a step-by-step instruction on how to reproduce the issue on a PC: https://bugs.eclipse.org/bugs/show_bug.cgi?id=578400


Kind regards,
Torbjörn


From: Jonah Graham <jonah@xxxxxxxxxxxxxxxx> 
Sent: den 25 januari 2022 19:42
To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Cc: Torbjorn SVENSSON <torbjorn.svensson@xxxxxx>
Subject: Re: [cdt-dev] Reseting the embedded target does not update the editor location

Hi Torbjörn,

I think the correct solution is to have the views listen to the ICommandControlRefreshAllDMEvent. I think this carries on from the work we did together a few years ago in https://bugs.eclipse.org/bugs/show_bug.cgi?id=568228

Jonah


~~~
Jonah Graham
Kichwa Coders
http://www.kichwacoders.com


On Tue, 25 Jan 2022 at 12:35, Torbjorn SVENSSON via cdt-dev <mailto:cdt-dev@xxxxxxxxxxx> wrote:
Hello,

In our Cortex-M IDE, we have a toolbar button that will reset the embedded target by sending the 'monitor reset' command to the GDB server. Doing so will obviously reset some IP's in the target and also change $pc to use the 2nd word in the vector as that's the location of the first instruction of the program.

This button works fine for the overall picture, but the state of some of the CDT views is not correct after the reset.
Some views, like the "Debug" view shows the correct content after we call: 
fTracker.getService(ICommandControlService.class). flushAllCachesAndRefresh(rm);

Other views, like the editor or "Disassembly" view are still stuck on the location prior to the reset. The only way to make them aware of the change of state is to either have GDB fire a new suspend-event or manually re-select the frame in the "Debug" view.

Is there some way to manually trigger a suspend-event from an instance of org.eclipse.cdt.dsf.concurrent.Sequence or any other way to make the views know that they need to refresh?

Kind regards,
Torbjörn
_______________________________________________
cdt-dev mailing list
mailto:cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev

Back to the top