From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8905 invoked by alias); 3 Nov 2008 16:15:04 -0000 Received: (qmail 8704 invoked by uid 22791); 3 Nov 2008 16:15:03 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 03 Nov 2008 16:14:14 +0000 Received: (qmail 19995 invoked from network); 3 Nov 2008 16:14:11 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 3 Nov 2008 16:14:11 -0000 From: Pedro Alves To: Daniel Jacobowitz Subject: Re: [RFC] Share the shared library list between inferiors Date: Mon, 03 Nov 2008 16:15:00 -0000 User-Agent: KMail/1.9.10 Cc: gdb-patches@sourceware.org References: <200810272329.04758.pedro@codesourcery.com> <200811031504.38355.pedro@codesourcery.com> <20081103151302.GA31147@caradoc.them.org> In-Reply-To: <20081103151302.GA31147@caradoc.them.org> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_VNyDJ73bNUtRhKa" Message-Id: <200811031614.13618.pedro@codesourcery.com> X-IsSubscribed: yes 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 X-SW-Source: 2008-11/txt/msg00012.txt.bz2 --Boundary-00=_VNyDJ73bNUtRhKa Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 292 On Monday 03 November 2008 15:13:02, Daniel Jacobowitz wrote: > I think the name is fine - if we need some day to separate these > features, then we'll create extra gdbarch knobs for them. Ok then. I checked this in to mention the feature's impact on breakpoints. Thanks, -- Pedro Alves --Boundary-00=_VNyDJ73bNUtRhKa Content-Type: text/x-diff; charset="iso 8859-15"; name="mention_global_breakpoints.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mention_global_breakpoints.diff" Content-length: 1914 2008-11-03 Pedro Alves * gdbarch.sh (has_global_solist): Mention global breakpoints. * gdbarch.h: Regenerate. --- gdb/gdbarch.h | 5 ++++- gdb/gdbarch.sh | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) Index: src/gdb/gdbarch.sh =================================================================== --- src.orig/gdb/gdbarch.sh 2008-11-03 15:53:10.000000000 +0000 +++ src/gdb/gdbarch.sh 2008-11-03 16:05:26.000000000 +0000 @@ -710,6 +710,9 @@ M:void:record_special_symbol:struct objf # True if the list of shared libraries is one and only for all # processes, as opposed to a list of shared libraries per inferior. +# When this property is true, GDB assumes that since shared libraries +# are shared across processes, so is all code. Hence, GDB further +# assumes an inserted breakpoint location is visible to all processes. v:int:has_global_solist:::0:0::0 EOF } Index: src/gdb/gdbarch.h =================================================================== --- src.orig/gdb/gdbarch.h 2008-11-03 15:59:16.000000000 +0000 +++ src/gdb/gdbarch.h 2008-11-03 16:05:33.000000000 +0000 @@ -812,7 +812,10 @@ extern void gdbarch_record_special_symbo extern void set_gdbarch_record_special_symbol (struct gdbarch *gdbarch, gdbarch_record_special_symbol_ftype *record_special_symbol); /* True if the list of shared libraries is one and only for all - processes, as opposed to a list of shared libraries per inferior. */ + processes, as opposed to a list of shared libraries per inferior. + When this property is true, GDB assumes that since shared libraries + are shared across processes, so is all code. Hence, GDB further + assumes an inserted breakpoint location is visible to all processes. */ extern int gdbarch_has_global_solist (struct gdbarch *gdbarch); extern void set_gdbarch_has_global_solist (struct gdbarch *gdbarch, int has_global_solist); --Boundary-00=_VNyDJ73bNUtRhKa--