Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tcf-dev] Retrieve memory programmatically from a TCF target
  • From: Eugene Tarassov <eugenet@xxxxxxxxxx>
  • Date: Tue, 24 Nov 2020 17:29:28 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xilinx.com; dmarc=pass action=none header.from=xilinx.com; dkim=pass header.d=xilinx.com; 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-SenderADCheck; bh=hWXEvR+P8gLfpr+G1q6PR3PEBIxaWzoCKx2CeNRxNZo=; b=nGAxpWBsvu50ANOG1my7URwixUkbNc9r32pe/gCG1TqdYHTX4o4tC0vkhOzq9Vpw5UZ+/R4gqwIx7wSPpBypiQlkubf5USh9KRp17/KItlGw013cda0ZsBp1i0z34KTrKSUEldjOueov0zxBuiJ3bEklvwW8HS0bFhDg5s2+uXedE7ob1cB86Y78UP7PlA3G7OfDDywogoa/H79uvB6t2/AqumppP3L1pRNEpTSuk95Fiurfr2Zm6nNlP3zYvc0CjjrD1Gk01vZmjzfE/jhOHPTI29M0CAABt2XSx223KFv/FFuLEIGKRIavsAILY/AoLaDU4j2YbRHBv4CHBLKf7g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X5o1W8YcmorNih29j5PBksuBj3ZUW0GvH53KtT8zsr4Kz+Otz9ehWqz9DMuCQZ00iAN59DMD7gCQiyGjYplx8V7ZOeWJk7Vw5+S/F7THyWDXmSZ/9+g2I7Pz4MMcjfZOULOj5e3HwE5hadzffL3g/AALTma4Dj4uWAeLSlyfko3spFwvamiCYuMvQu5t17YqmyVAHAcx05RY5LBMYCG5Vh1LLx7pkbCruyngV7xH/DhwXJg3YpmWOYcinqIDWv67g9BkrzNlqHmYkT6FEC1TmdWgdw7cvpBdDYNkL161KXkkJ7V4YWAbjyKTkKCnkB/hN0g+bB6Hxz92koHeHKunNA==
  • Delivered-to: tcf-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/tcf-dev>
  • List-help: <mailto:tcf-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/tcf-dev>, <mailto:tcf-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/tcf-dev>, <mailto:tcf-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdbCYnLaPLywzG3TT0G2H9JwMKYHiAAISnLQ
  • Thread-topic: Retrieve memory programmatically from a TCF target

Hi Alexis,

 

You can use IMemoryBlockRetrievalExtension API from the Eclipse platform.

It should work with any debugger. For example:

 

IMemoryBlockRetrievalExtension mem_retrieval = (IMemoryBlockRetrievalExtension)debug_view_element.getAdapter(IMemoryBlockRetrievalExtension.class);

IMemoryBlock mem_block = mem_retrieval.getMemoryBlock(addr, size);

 

If you need better performance and more options, you can use TCF APIs directly.

See implementation of TCFMemoryBlock.getBytesFromAddress as an example.

 

Regards,

Eugene

 

From: tcf-dev-bounces@xxxxxxxxxxx <tcf-dev-bounces@xxxxxxxxxxx> On Behalf Of Alexis Bouffies
Sent: Tuesday, November 24, 2020 5:05 AM
To: tcf-dev@xxxxxxxxxxx
Subject: [tcf-dev] Retrieve memory programmatically from a TCF target

 

CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.

 

Hi Everyone,

 

I am trying to develop an Eclipse plug-in that would allow to retrieve a memory bloc from a TCF target. I want it be generic enough so it is independent from the target hardware. The plug-in would be based on the TCF plug-in, and capable of retrieving a memory bloc based on the start address and the size. Is there any API provided as part of TCF that I could use from my plug-in?

 

I have a similar implementation for a GDB server, but I would like to be able to support both “Target Protocol”. For GDB I use DSF, but I am not able to find anything in TCF that would allow to reuse what I did in DSF.

 

Thanks in advance for your help,

Alexis


Back to the top