aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-05-19 00:23:49 +0000
committerPedro Alves <palves@redhat.com>2009-05-19 00:23:49 +0000
commit2567c7d9ccb27053278c7bca0c911a817ab21b47 (patch)
tree225747d5d6ad2a1c4983155875dcc6437bb527e9 /gdb/gdbarch.h
parent7b6175f9c6195432011dc348479a3b05859bad2b (diff)
downloadgdb-2567c7d9ccb27053278c7bca0c911a817ab21b47.zip
gdb-2567c7d9ccb27053278c7bca0c911a817ab21b47.tar.gz
gdb-2567c7d9ccb27053278c7bca0c911a817ab21b47.tar.bz2
* breakpoint.c (insert_breakpoints, breakpoint_init_inferior)
(update_global_location_list): Use gdbarch_has_global_breakpoints instead of gdbarch_has_global_solist and target_supports_multi_process. * dicos-tdep.c (dicos_init_abi): Set gdbarch_has_global_breakpoints. * gdbarch.sh (has_global_solist): Update comment. (has_global_breakpoints): New. * remote.c (remote_start_remote): Use gdbarch_has_global_breakpoints instead of gdbarch_has_global_solist. * target.c (target_detach): Use gdbarch_has_global_breakpoints instead of gdbarch_has_global_solist. * infcmd.c (attach_command): Use gdbarch_has_global_solist instead of target_supports_multi_process.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r--gdb/gdbarch.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index e844f52..6f9c900 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -863,13 +863,21 @@ extern void set_gdbarch_record_special_symbol (struct gdbarch *gdbarch, gdbarch_
/* 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. */
+ This usually means that all processes, although may or may not share
+ an address space, will see the same set of symbols at the same
+ addresses. */
extern int gdbarch_has_global_solist (struct gdbarch *gdbarch);
extern void set_gdbarch_has_global_solist (struct gdbarch *gdbarch, int has_global_solist);
+/* On some targets, even though each inferior has its own private
+ address space, the debug interface takes care of making breakpoints
+ visible to all address spaces automatically. For such cases,
+ this property should be set to true. */
+
+extern int gdbarch_has_global_breakpoints (struct gdbarch *gdbarch);
+extern void set_gdbarch_has_global_breakpoints (struct gdbarch *gdbarch, int has_global_breakpoints);
+
extern struct gdbarch_tdep *gdbarch_tdep (struct gdbarch *gdbarch);