From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6194 invoked by alias); 3 Nov 2008 19:18:08 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 6147 invoked by uid 9782); 3 Nov 2008 19:18:07 -0000 Date: Mon, 03 Nov 2008 19:18:00 -0000 Message-ID: <20081103191807.6118.qmail@sourceware.org> From: sergio@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-sergio-catch-syscall: Merge branch 'master' into catch-syscall X-Git-Refname: refs/heads/archer-sergio-catch-syscall X-Git-Reftype: branch X-Git-Oldrev: bcb748e1454ad464f022d83ad7de68c2b7065694 X-Git-Newrev: 82a12cecafabe86cf2de05a3527ecd5586047178 X-SW-Source: 2008-q4/txt/msg00060.txt.bz2 List-Id: The branch, archer-sergio-catch-syscall has been updated via 82a12cecafabe86cf2de05a3527ecd5586047178 (commit) via 86feee00847ba8d42f748577352b85f72623d055 (commit) via d64b92ef0c12d89d958c81804665fb1d3c3e069d (commit) from bcb748e1454ad464f022d83ad7de68c2b7065694 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 82a12cecafabe86cf2de05a3527ecd5586047178 Merge: 86feee00847ba8d42f748577352b85f72623d055 d64b92ef0c12d89d958c81804665fb1d3c3e069d Author: Sergio Durigan Junior Date: Mon Nov 3 11:14:59 2008 -0800 Merge branch 'master' into catch-syscall commit 86feee00847ba8d42f748577352b85f72623d055 Author: Sergio Durigan Junior Date: Mon Nov 3 09:00:32 2008 -0800 little bug ----------------------------------------------------------------------- Summary of changes: gdb/ChangeLog | 5 +++++ gdb/gdbarch.h | 5 ++++- gdb/gdbarch.sh | 3 +++ gdb/xml-syscall.c | 4 ++-- 4 files changed, 14 insertions(+), 3 deletions(-) First 500 lines of diff: 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 e5ab197..9cb6e84 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -848,7 +848,10 @@ extern const char ** gdbarch_get_syscalls_names (struct gdbarch *gdbarch); extern void set_gdbarch_get_syscalls_names (struct gdbarch *gdbarch, gdbarch_get_syscalls_names_ftype *get_syscalls_names); /* 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 50122a7..2e65481 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -727,6 +727,9 @@ M:const char **:get_syscalls_names:void: # 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 } diff --git a/gdb/xml-syscall.c b/gdb/xml-syscall.c index a235dfd..c6ecac6 100644 --- a/gdb/xml-syscall.c +++ b/gdb/xml-syscall.c @@ -263,8 +263,8 @@ syscall_start_syscall (struct gdb_xml_parser *parser, struct gdb_xml_value *attrs = VEC_address (gdb_xml_value_s, attributes); int len, i; /* syscall info. */ - char *name; - int number; + char *name = NULL; + int number = 0; len = VEC_length (gdb_xml_value_s, attributes); hooks/post-receive -- Repository for Project Archer.