From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12189 invoked by alias); 24 Mar 2004 14:35:34 -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 12178 invoked from network); 24 Mar 2004 14:35:32 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 24 Mar 2004 14:35:32 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 561822B92; Wed, 24 Mar 2004 09:35:31 -0500 (EST) Message-ID: <40619CB3.90001@gnu.org> Date: Wed, 24 Mar 2004 14:35:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Kris Warkentin Cc: "Gdb-Patches@Sources.Redhat.Com" Subject: Re: [patch] Bring QNX Neutrino support forward. References: <4060A9C0.1090906@qnx.com> <4060C665.6010405@gnu.org> <40618FCD.5010802@qnx.com> In-Reply-To: <40618FCD.5010802@qnx.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00557.txt.bz2 > Andrew Cagney wrote: > >>> Some of this stuff is cosmetic/convenience. I made the macros for my nto_target structure testable and moved the comments into the structure where they're more useful. >>> >>> A few things had to do with initializers. Some of the signal handling stuff didn't work because other _init functions hadn't been called so I moved them out to where they could be called when the osabi is initialized. >> >> >> >> BTW, what was the race condition? > > > The _initialize_* functions were being called in a different order than previously so all my signal initialization stuff was breaking when I put it into my _init* funcs. It was a while ago I changed it (haven't been working on FSF gdb recently) but I believe it was target_signal_from_name.... Ulgh, one of those (if you remember any more details :-). I'll need to investigate - these race conditions are a royal pain. >>> I added osabi and core sniffers. Some is practical, some is future-proofing. If we start supporting multiple targets, I'm going to want to be able to swap our various target processors support in and out. The is_nto_target type stuff can be made more interesting later to do things like check to see if the remote host processor matches the binary abi and such. >> >> >> >> You should also be able to kill off regset_core_fns, it's been superseeded by regsets (which reminds me ....). > > > Must have not seen that thread. I'll look into it. There are no deprecated markers so there's no hint. A grep of add_core_fns reveals that the i386/amd64 and GNU/Linux PPC do not make the call so I'm pretty sure that I'm not talking theory here (notably 32x64 GNU/Linux debugging works on those systems -- that needs regsets). Andrew