2012-03-01 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Thu, 1 Mar 2012 21:12:47 +0000 (21:12 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 1 Mar 2012 21:12:47 +0000 (21:12 +0000)
* 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.

gdb/ChangeLog
gdb/linux-tdep.c

index 325e19d7e2f341b53ffa68738708d5e0954efd58..6750fb36d4da4d98bf6786f946f21e97c2b9af2d 100644 (file)
@@ -1,3 +1,10 @@
+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)
index 3ab98c700f1acc0eb1ebf431ecd99ee4312447dd..1aee071b338133ff2a23a7724865183910313fcf 100644 (file)
@@ -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