Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Reseting the embedded target does not update the editor location
  • From: Torbjorn SVENSSON <torbjorn.svensson@xxxxxx>
  • Date: Tue, 25 Jan 2022 17:35:33 +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=g2vLPTl5YLhRyRjq0sJJjMPhJ0kX/OmZ2JUuAZ0OJ6g=; b=BYgBpBDncO7SbRH4dffVTgG2KwFiZgGo8Pmct2tF2rsZpmyjX+T22G4QtfzwO43P+HlTi+71+B9KjJCOha/XXSxab/BFPe5yIRtUBLU3uS1sjhMqQMEqHuCQYbj9ayPdKosGlG+rXXix6vq4Jo7ZywTPRRxmrZ4btP4RJOhfD8TJ6a580D3h0914UaNTC1821aYsvikHOkLAf1T7Szl510tJHMlGtoUYMCh2aezUy/zFvduJ4EIuNrjCYr7DhVDbJa/xjUUqf0Cm/zxC32w7mJZBf3FqMm9fLjiujAVFHv+snxGPIBjYW1L3MkPL+JGHEuspaWy65KwXeiWj3bl6pg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iPlJVLzYT7ikubvbIvOOGjOvhmNl/hKcmLjHqyme1CJguBRvqjic2yexWifxc91mh/f/xQ65dTSlNCHzEbJDgPKNuUeg9KKqe5AN34FtPehu9jIDgbBW+G2dKSGfoPkHrLPvlN07xHWPcd4ubL9LoawHUH8B8iGsmOySBQ/t0f1nN8Ck04/1R965lXTRzbzs/Y0r52rTZdhZDTFlO0kUstjY0Y/2LY++R1310FEFPieqN9cBacAlp/ic00VEoL+81NhSgubD4jAhJKc2TrNdaFjHpJPHfcDWSZlWP/nRbw1+ahuZJSAXWi98iZpVO04/6xnAVameL0o4KCL+pDYRxg==
  • 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-25T17:25:24Z; 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=79eda763-11f6-4f21-80a0-41e8e43009ac; MSIP_Label_cf8c7287-838c-46dd-b281-b1140229e67a_ContentBits=0
  • Thread-index: AdgSEPT7bic0NOR1Q8OW6EN2dU7nuw==
  • Thread-topic: Reseting the embedded target does not update the editor location

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


Back to the top