diff options
author | Pedro Alves <palves@redhat.com> | 2012-03-01 21:12:47 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-03-01 21:12:47 +0000 |
commit | 33fbcbee30e6565db27a4c5076ff61c9fc8e0744 (patch) | |
tree | 4f0c84ee78cd3c1d5cca750d1fef1395b0873374 | |
parent | 44d0cd3be323d9a9c932245ae8263c9c0a76fe90 (diff) | |
download | gdb-33fbcbee30e6565db27a4c5076ff61c9fc8e0744.zip gdb-33fbcbee30e6565db27a4c5076ff61c9fc8e0744.tar.gz gdb-33fbcbee30e6565db27a4c5076ff61c9fc8e0744.tar.bz2 |
2012-03-01 Pedro Alves <palves@redhat.com>
* linux-tdep.c (linux_has_shared_address_space): Make static. Add
gdbarch parameter.
(linux_init_abi): Install it as has_shared_address_space gdbarch
callback.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/linux-tdep.c | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 325e19d..6750fb3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2012-03-01 Pedro Alves <palves@redhat.com> + * linux-tdep.c (linux_has_shared_address_space): Make static. Add + gdbarch parameter. + (linux_init_abi): Install it as has_shared_address_space gdbarch + callback. + +2012-03-01 Pedro Alves <palves@redhat.com> + * observer.c (observer_test_first_notification_function) (observer_test_second_notification_function) (observer_test_third_notification_function): Add declarations. diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 3ab98c7..1aee071 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -173,8 +173,8 @@ linux_get_siginfo_type (struct gdbarch *gdbarch) return siginfo_type; } -int -linux_has_shared_address_space (void) +static int +linux_has_shared_address_space (struct gdbarch *gdbarch) { /* Determine whether we are running on uClinux or normal Linux kernel. */ @@ -860,6 +860,8 @@ linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_info_proc (gdbarch, linux_info_proc); set_gdbarch_find_memory_regions (gdbarch, linux_find_memory_regions); set_gdbarch_make_corefile_notes (gdbarch, linux_make_corefile_notes_1); + set_gdbarch_has_shared_address_space (gdbarch, + linux_has_shared_address_space); } void |