From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25141 invoked by alias); 10 Sep 2014 23:02:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 25132 invoked by uid 89); 10 Sep 2014 23:02:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 10 Sep 2014 23:02:31 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8AN1LZC015693 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Sep 2014 19:01:21 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8AN1JUh011904; Wed, 10 Sep 2014 19:01:20 -0400 Message-ID: <5410D83E.3070401@redhat.com> Date: Wed, 10 Sep 2014 23:02:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: Joel Brobecker CC: "Maciej W. Rozycki" , Ulrich Weigand , GDB Patches Subject: Re: [IRIX] eliminate deprecated_insert_raw_breakpoint uses References: <201409101445.s8AEjILM007935@d06av02.portsmouth.uk.ibm.com> <54106C61.7040400@redhat.com> <54107860.6060301@redhat.com> <20140910224358.GS28404@adacore.com> In-Reply-To: <20140910224358.GS28404@adacore.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-09/txt/msg00347.txt.bz2 On 09/10/2014 11:43 PM, Joel Brobecker wrote: >> I think I understand this enough now. See patch below, which >> gets rid of that loop completely. > > Thanks for walking me by memory lane :-) > :-) >> Untested, of course. > > I found an IRIX machine that's still up and running, and I was able > to rebuild it. Unfortunately, two issues occured: > 1. I had to make insert_breakpoint_locations non-static; > 2. GDB now SIGSEGV-s when starting a program: > > Program received signal SIGSEGV, Segmentation fault. > 0x10163180 in bpstat_stop_status (aspace=0x108b97b0, bp_addr=268791248, > ptid=..., ws=0x7ffd7870) > at /nfs/nas/homes/brobecke/act/gdb-public/gdb/breakpoint.c:5536 > 5536 b->ops->check_status (bs); > > The problem is that b->ops is NULL. Blah. Probably due to wiping the solib breakpoints in the so_ops->handle_event() handler. If you have the patience, could you try quickly commenting out the remove_solib_event_breakpoints call in solib-irix.c and retrying? > I can continue investigating, > but I have this feeling that this is just a waste of time, since Yeah... > I strongly suspect that IRIX support is going to be removed > a couple of weeks from now (I can start the procedure if you'd like). That'd be super and much appreciated! Thanks, Pedro Alves