From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32496 invoked by alias); 19 Feb 2003 16:49:25 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 32489 invoked from network); 19 Feb 2003 16:49:25 -0000 Received: from unknown (HELO localhost.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 19 Feb 2003 16:49:25 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 8B9372E96; Wed, 19 Feb 2003 11:54:11 -0500 (EST) Message-ID: <3E53B6B3.6010409@redhat.com> Date: Wed, 19 Feb 2003 16:49:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.0.2) Gecko/20030217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: Re-initializing a list after the control returns to gdb... References: <20030219020101.GI2105@gnat.com> <3E537DF0.50205@redhat.com> <20030219160523.GM2105@gnat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-02/txt/msg00411.txt.bz2 >> A more higher level question. What exactly is the story behind >> ada-task*. I glanced at the code and it looked very like a clone of the >> existing thread code. > > > Not quite: What happens is that the GNAT runtime maintains an array > of Ada_Task_Control_Block. The ada-tasks module reads this array > to build the list of tasks, and display the status information for > each task. We then try to use the thread module to do the task > switching. So let me get my head round this, the target stack should look like: ada-tasks threads lwp proc/ptrace or possibly the ada-tasks sits more beside the thread code? Andrew > (We realize the code is a bit horrible, that's why we are trying to > clean it up a bit. The question I asked was in fact for one of these > cleanups. I can send my latest WIP version if yo are interested in > the current state of this file). No, I just know it needs that cleanup. Andrew