From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6923 invoked by alias); 24 Aug 2004 23:45:20 -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 6905 invoked from network); 24 Aug 2004 23:45:19 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 24 Aug 2004 23:45:19 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i7ONjES2018888 for ; Tue, 24 Aug 2004 19:45:19 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i7ONjE324821; Tue, 24 Aug 2004 19:45:14 -0400 Received: from localhost.localdomain (vpn50-92.rdu.redhat.com [172.16.50.92]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i7ONjDJJ004488; Tue, 24 Aug 2004 19:45:13 -0400 Received: from saguaro (saguaro.lan [192.168.64.2]) by localhost.localdomain (8.12.11/8.12.10) with SMTP id i7ONj7qX014933; Tue, 24 Aug 2004 16:45:08 -0700 Date: Tue, 24 Aug 2004 23:45:00 -0000 From: Kevin Buettner To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Enhance GDB to break inside DSO init code Message-Id: <20040824164507.11b04f11@saguaro> In-Reply-To: <20040723202447.GM20596@gnat.com> References: <20040723202447.GM20596@gnat.com> Organization: Red Hat Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00680.txt.bz2 On Fri, 23 Jul 2004 13:24:47 -0700 Joel Brobecker wrote: > 2004-07-23 Joel Brobecker > > * procfs.c (dbx_link_bpt_addr): New static global variable. > (dbx_link_shadow_contents): New static global variable. > (procfs_wait, case ): Handle syssgi events. > (procfs_wait, case ): Remove the __dbx_link brekapoint > if we just hit it. > (procfs_init_inferior): Enable syssgi() syscall trace if appropriate. > Reset dbx_link_bpt_addr as the address of __dbx_link() may change > from run to run. > (procfs_create_inferior): Remove syssgi syscall-exit notifications > after the inferior has been forked. > (remove_dbx_link_breakpoint): New function. > (dbx_link_addr): New function. > (insert_dbx_link_bpt_in_file): New function. > (insert_dbx_link_bpt_in_region): New function. > (insert_dbx_link_breakpoint): New function. > (proc_trace_syscalls_1): New function, extracted from > proc_trace_syscalls. > (proc_trace_syscalls): Replace extract code by call to > proc_trace_syscalls_1. > * solib-irix.c (disable_break): Remove stop_pc assertion, as it > is no longer valid. > > Tested on mips-irix, no regression. OK to commit? Do you have access to a Solaris box? If so, could you test for regressions there as well? If all goes well, I have no objection to this patch going in. (Consider it approved unless someone else says otherwise.) Kevin