This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Share the shared library list between inferiors


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
2008-11-03  Pedro Alves  <pedro@codesourcery.com>

	* 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);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]