Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tcf-dev] First try on running TCF debug session on Linux VM
  • From: Eugene Tarassov <eugenet@xxxxxxxxxx>
  • Date: Thu, 2 Jan 2020 18:28:37 +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=LuXTi4UopgmBGJSvxFJAYEtGwEoycB3PTr3nlO0HQ+A=; b=bYLLuF4SmC6hIBVKgxGxqeHAmflygowJJdORnA9uCB8tnWX85UvzqORGcFETnGs0e1dnG77YRKneDEYOw8P1gUzpBu83LQseMLM81qvGR+/Ke4dUI5tYWyxNAEVkfy6tf75Y0YLkbZeUkXw1tgZEbqFnotM9FPcK0PBTTmg/yBXqeNeHDSutaFg01wAjNZ91TnNEvTut31GoLM32CH1nNzQyGnnQwaihjAU2JwEBkwmxt84bSxVm1JSIxzErZElwosiuEnK2Q4VVwqbQvCLf1vWgl9IINGwf6aVqK1C94z+Z53VLxhI59w+rqaqSrQHrvMHg8X97ozYCCKscA9VCBA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A5DeVM2GwIeU3ulQtzysvcNEMMDP/1O7WfNWS4mu3UjfJmYO5t8E3Y1VM33Yxfsa9iizLbHJ8xbdhE7s7ISnuHZ8/XaDqWUhX2swaDDBhYFZcncRLMtzAsmc+KwIHiroq8HkU/KsUKTuPMOX73yiDPkn2/qrGeSL6fZG54SlXMG8Kl07r2enChxNMsDDXrOo34uV2ESGHbnrTYvvZdt0cgWtlt7yOw2Z/ElAtIoYnIBgeF+H8AELqe46INp41q5NQbBJ7pcjpR5x3fKoVGjulbU+qHgNVd+r46iYN5DPxKvIdWXTltvFGN9OZ7+K6lZ/E039DnANPrOTOmXtmUpmjQ==
  • 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: AQHVvyX/twIOTWZw8Uay/+pdrJDkDafS8NhwgAAzaLSAABtssIABp5iRgAFfsNA=
  • Thread-topic: First try on running TCF debug session on Linux VM

Hi Gidi,

 

Public interfaces of the TCF debugger, and Eclipse in general, are exposed with help of Eclipse “extension points”.

Main entry point of the debugger is org.eclipse.tcf.debug.ui.presentation_provider extension point.

It gives access to TCF debugger internal data structures – the model.

Code in org.eclipse.tcf/examples directory shows how to use it.

 

However, you might still need to use internal APIs, not everything is exposed through public APIs.

It is OK. “internal” mostly means the API can change in future versions.

 

If you find a really strong reason to request a new public API, file a bug and we talk about it.

 

Regards,

Eugene

 

From: tcf-dev-bounces@xxxxxxxxxxx <tcf-dev-bounces@xxxxxxxxxxx> On Behalf Of Gidi Gal
Sent: Tuesday, December 31, 2019 3:49 PM
To: TCF Development <tcf-dev@xxxxxxxxxxx>
Subject: Re: [tcf-dev] First try on running TCF debug session on Linux VM

 

EXTERNAL EMAIL

Hi Eugene,

 

Thanks for your help. I managed to import TCF code. I started looking at the code. I need to be able to suspend\resume\terminate debug session and also get notifications when session is suspended\resumed\terminated and in case of suspension due to breakpoint, I need to get data related to the breakpoint.

If I understand correctly, the main entry points are the services which are located in org.eclipse.tcf.services. After several tries to call TCFLaunch.getService which ended with null pointer exception, I understood that I need to call getService only when TCFLaunch is connected. In order to do so, I need callback from org.eclipse.tcf.internal.debug.model.TCFLaunch.LaunchListener. So, I'm using TCFLaunch.addListener and it seems ok now.

 

Both TCFLaunch and LaunchListener are in internal package. Is there a public API to get these services ?

 

Thanks,

Gidi

 

 

 


From: tcf-dev-bounces@xxxxxxxxxxx <tcf-dev-bounces@xxxxxxxxxxx> on behalf of Eugene Tarassov <eugenet@xxxxxxxxxx>
Sent: Monday, December 30, 2019 10:24 PM
To: TCF Development <tcf-dev@xxxxxxxxxxx>
Subject: Re: [tcf-dev] First try on running TCF debug session on Linux VM

 

Hi Gidi,

 

To build TCF code, you need to install (using Eclipse / Help / Install …):

  TCF C/C++ Debugger

  Remote System Explorer End-User Runtime

  RSE Terminals UI

 

I think the last package is not included into Eclipse 4.9 official release, but it can be found in this repo:

  RSE 4.5.0 - https://download.eclipse.org/tm/updates/4.5.0/repository/

 

Regards,

Eugene

 

From: tcf-dev-bounces@xxxxxxxxxxx <tcf-dev-bounces@xxxxxxxxxxx> On Behalf Of Gidi Gal
Sent: Monday, December 30, 2019 12:50 PM
To: TCF Development <tcf-dev@xxxxxxxxxxx>
Subject: Re: [tcf-dev] First try on running TCF debug session on Linux VM

 

EXTERNAL EMAIL

Hi Eugene,

 

Thanks for your help on this issue. I managed to run debug session. Now, I'm trying to add TCF source code in order to debug it.

I am working with Eclipse 4.9, because WindRiver Workbench 4 is based on this release. My development will eventually work on WindRiver Workbench 4.

I followed the "Getting Started" page, but when I import the projects under plugins folder I see some build errors related to rse plugins. I tried to install Remote System Explorer plugins, but some errors still exist. I assume it is related to the fact that I have the latest version of TCF source code, while I need the version related to Eclipse 4.9.

What git command should I use in order to get the TCF source code related to Eclipse 4.9 ?

 

Thanks,

Gidi

 

 

מאת: Eugene Tarassov
נשלח: יום שני 30 דצמבר 2019 19:54
אל: TCF Development
נושא:
Re: [tcf-dev] First try on running TCF debug session on Linux VM

 

Hi Gidi,

 

"Local File Path" should be empty in your case.

Setting both "Local File Path" and "Remote File Path" means cross compilation.

You would use it to compile on Windows and let the debugger to copy the file from Windows to Linux before launching.

 

Regards,

Eugene

 

From: tcf-dev-bounces@xxxxxxxxxxx <tcf-dev-bounces@xxxxxxxxxxx> On Behalf Of Gidi Gal
Sent: Monday, December 30, 2019 7:31 AM
To: tcf-dev@xxxxxxxxxxx <tcf-dev@xxxxxxxxxxx>
Subject: [tcf-dev] First try on running TCF debug session on Linux VM

 

EXTERNAL EMAIL

Hello,

 

I'm new to TCF. I am trying to run a TCF debug session in order to start and dig into TCF code.

I'm working according to the tutorial in this link:

https://www.youtube.com/watch?v=lG1IjXv_K_4

 

I installed VM using VMWare with Ubunto Linux installed in it, I created a shared drive, I created a small "Hello world" C++ application (compiled with -g) on the Linux VM.

I am working with Eclipse 4.6.3 with TCF installed in it on my Windows 10 machine.

I created TCF debug session. In the session I set in the "Application" tab the fields "Local File Path" with the path to the executable file – this is the path in my host Windows machine. In the "Remote File Path" I set the path to the executable, as it can be reached in the Linux VM.

I added in the "Source" tab a mapping between the source folder path in Linux VM to the path in the host machine.

I placed a breakpoint on the line which prints "Hello World".

When I run the debug session, a "Dissasembly" editor is presented with marker pointing to the line after "_start:". When I click on "Resume" button I see in the console window the following:

sh: 0: getcwd() failed: No such file or directory

 

I upgraded my Eclipse version to 4.9, but the results are the same.

 

I’ll be grateful for your help.

 

Thanks,

Gidi

 

 


Back to the top