Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tcf-dev] Being Aware of Threads Created Before Agent is Initialized
  • From: Eugene Tarassov <eugenet@xxxxxxxxxx>
  • Date: Tue, 3 Nov 2020 18:51: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=IF/YDHgTkq0zcxvGTirmBNtNQDm0JKr0NFboQ+kN/2k=; b=d8qFy/4qpUREiHnvHZAMW0P/sGcad9BUEVO3qJ1fsBtL5NZgLj1/5WEiTK8qVF9qAkLERKCWdn0GqoaLgx/HtXhV/IiRe32cZmu/zIRvW342KS5Ss4SmXZrzEIE/8LXtaeFIHCu7WsUrmt019CmLorFr5Bf7HbHrsSb1xyOpyEgWoZuORm+5wS2C0IMeo+rIiMvKI7NGW43rb3zKf7EWkotsMdjXr6BeKeEbwCBKSMb6LiuQ4jp/XwjFSxIfxc16vIW/Db4NLZh7WrGezOh/fv0d6SjEWM4IxAXRCYKksnQnGTXiUluaeZG5VM5hhAziHnLW3Fm4SvsTgbcXf6tSCg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kkxoEUXqRIYpQimja5hYmhV/pfh9jyVmMrBKAfZVa8uVH7kDsPDi656UjoJPAQ0uhEs7FRA3X0mhnjV0V+DVYZ8wY/XUGTKgSrp1a9rJRB6PxkM3kzUK9WnVSD332H0YxVSIkcSayiAIRDUNLd6l3tKdT3kO70C+rZLZETetH/1aceSUP/UW+IjsQIP9uneGOMzbyqM8CoBY9ypRQ7MARYgFiG29y3VoU392Zr2yKFNXH3fmQjA2S4P0SLJPYsVvNImEd3bUNzxX52rYcCEc7UX9BOHI8S2wFk1UgfT+DkedECSMcB2BSOmsV6WHdFedRHFay1kMy4mqst566whkfw==
  • 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: AQHWse6X166BA72410WQLmWZr4Jnjam2uHog
  • Thread-topic: [tcf-dev] Being Aware of Threads Created Before Agent is Initialized

Hi Joel,

 

> Will those threads not show up in the explorer view?

 

At least, two ways to implement this:

 

1. All threads are in the context_root list, user debugs whole system in a single debug session.

2. The Processes service is used to get full list of threads and attach/detach a particular thread for debugging.

 

VxWorks implements #2. It also does automatic attach for threads that are started by an already attached thread.

 

#1 will work without the Processes service.

 

> Is any of the other information in the Context assumed to be filled in by the target?

 

No.

 

Regards,

Eugene

 

 

From: tcf-dev-bounces@xxxxxxxxxxx <tcf-dev-bounces@xxxxxxxxxxx> On Behalf Of Joel Sherrill
Sent: Tuesday, November 3, 2020 6:35 AM
To: Gherzan, Mircea <mircea.gherzan@xxxxxxxxx>
Cc: TCF Development <tcf-dev@xxxxxxxxxxx>
Subject: Re: [tcf-dev] Being Aware of Threads Created Before Agent is Initialized

 

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.

 

 

 

On Tue, Nov 3, 2020 at 8:20 AM Gherzan, Mircea <mircea.gherzan@xxxxxxxxx> wrote:

Hi Joel,

Yes, such “topology” information is stored in the agent so that the point in time when a client attaches does not matter. The client just needs to use the RunControl service to get the topology.

Yes, the initialization/discovery logic should create the “already existing” contexts (processes/threads in your case) in the topology. 

 

Thank you.  

 

The VxWorks task_create_hookd only puts a task Id and TCB pointer in the Context. I see a name field which makes sense to fill in. Is any of the other information in the Context assumed to be filled in by the target?

 

This certainly gives me something to work on until the list of threads shows up in the UI.

 

Thanks.


Cheers,
- Mircea

From: tcf-dev-bounces@xxxxxxxxxxx <tcf-dev-bounces@xxxxxxxxxxx> On Behalf Of Joel Sherrill
Sent: Tuesday, November 3, 2020 3:03 PM
To: TCF Development <tcf-dev@xxxxxxxxxxx>
Subject: [tcf-dev] Being Aware of Threads Created Before Agent is Initialized

Hi

Looking at context-vxworks.c, it creates an event handling thread and registers a task create hook. Some tasks will have been created before this code is executed. Will those threads not show up in the explorer view? Should the initialization attempt to register Contexts for all existing threads?

Do these events just build up information inside the agent which the client-side can ask for later? I am thinking the agent is often started without a UI attached.

I've never used VxWorks so my questions may be wrong if I am reading something into the code that's not there. :)

Thanks.

--joel


Back to the top