From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23210 invoked by alias); 18 Jul 2002 21:55:02 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23157 invoked from network); 18 Jul 2002 21:55:01 -0000 Received: from unknown (HELO zwingli.cygnus.com) (208.245.165.35) by sources.redhat.com with SMTP; 18 Jul 2002 21:55:01 -0000 Received: by zwingli.cygnus.com (Postfix, from userid 442) id 919125EA11; Thu, 18 Jul 2002 16:54:59 -0500 (EST) To: "Lucy Zhang" Cc: Subject: Re: multi-thread debugging not working References: <008001ea898d$73096110$9a0a0109@zhangl> <20020716202321.GA28627@nevyn.them.org> <002201ea89ac$0bfdbce0$9a0a0109@zhangl> <007f01ea8a71$cce46880$9a0a0109@zhangl> From: Jim Blandy Date: Thu, 18 Jul 2002 14:55:00 -0000 In-Reply-To: <007f01ea8a71$cce46880$9a0a0109@zhangl> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-07/txt/msg00193.txt.bz2 "Lucy Zhang" writes: > Great thank you. One more question though. Right now I only have one NOTE > segment which contain one of each types of note (prstatus, prpsinfo, > taskstruct). When I add the new note structs for each thread, should I add > in into the same NOTE segment after my current single thread structs? Which > is what readelf -n seems to be suggesting. > OR should I create a new NOTE segment, and add it in there like the > following? Which way does GDB prefer? I don't think GDB will care. The core file I've seen has them all in one NOTE segment. If you end up trying to debug this, some starting points: the code which actually parses the NOTE segment is elfcore_read_notes, in bfd/elf.c. It turns the prstatus notes into `.reg/PID' sections. The GDB code which then consumes those sections is add_to_thread_list in corelow.c.