aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-11-03 16:11:45 +0000
committerPedro Alves <palves@redhat.com>2008-11-03 16:11:45 +0000
commit9bc9e927792511e2c1997ffcf7cd605cd1eb2ea2 (patch)
treef6f02cf34079f1eed7974ffacfa5bf65231f4929 /gdb
parent50c71eaf0e6a7026633818a76f14b6ab4efec73c (diff)
downloadgdb-9bc9e927792511e2c1997ffcf7cd605cd1eb2ea2.zip
gdb-9bc9e927792511e2c1997ffcf7cd605cd1eb2ea2.tar.gz
gdb-9bc9e927792511e2c1997ffcf7cd605cd1eb2ea2.tar.bz2
* gdbarch.sh (has_global_solist): Mention global breakpoints.
* gdbarch.h: Regenerate.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbarch.h5
-rwxr-xr-xgdb/gdbarch.sh3
3 files changed, 12 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index afec7c5..920c5f4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2008-11-03 Pedro Alves <pedro@codesourcery.com>
+ * gdbarch.sh (has_global_solist): Mention global breakpoints.
+ * gdbarch.h: Regenerate.
+
+2008-11-03 Pedro Alves <pedro@codesourcery.com>
+
* remote.c (remote_start_remote): If the solib list is global,
fetch libraries and insert breakpoints after connecting.
* infcmd.c (post_create_inferior): If the solist is shared between
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 909db8c..35f8a36 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -812,7 +812,10 @@ extern void gdbarch_record_special_symbol (struct gdbarch *gdbarch, struct objfi
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);
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index 28983d3..79ca862 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -710,6 +710,9 @@ M:void:record_special_symbol:struct objfile *objfile, asymbol *sym:objfile, sym
# 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
}