From: Pedro Alves Date: Mon, 3 Nov 2008 16:11:45 +0000 (+0000) Subject: * gdbarch.sh (has_global_solist): Mention global breakpoints. X-Git-Tag: sid-snapshot-20081201~235 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9bc9e927792511e2c1997ffcf7cd605cd1eb2ea2;p=external%2Fbinutils.git * gdbarch.sh (has_global_solist): Mention global breakpoints. * gdbarch.h: Regenerate. --- 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 + * gdbarch.sh (has_global_solist): Mention global breakpoints. + * gdbarch.h: Regenerate. + +2008-11-03 Pedro Alves + * 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 }