2004-05-18 Randolph Chung <tausq@debian.org>
authorRandolph Chung <tausq@debian.org>
Wed, 19 May 2004 02:45:24 +0000 (02:45 +0000)
committerRandolph Chung <tausq@debian.org>
Wed, 19 May 2004 02:45:24 +0000 (02:45 +0000)
* somsolib.c (som_solib_remove_inferior_hook): Make all the size
references to dld_flags_buffer consistent.

gdb/ChangeLog
gdb/somsolib.c

index ccdfb1417704a8799bf3a71d2ff10362bdecfef0..e9fbfa96dec0fc4fede34fab84a5fb1839e26fe8 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-18  Randolph Chung  <tausq@debian.org>
+
+       * somsolib.c (som_solib_remove_inferior_hook): Make all the size
+       references to dld_flags_buffer consistent.
+
 2004-05-18  Randolph Chung  <tausq@debian.org>
 
        * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
index 38a318692f3753717348adb1a7b49a5d52c9be2a..00812804a96401466e74ea2887a13f47a9260bbe 100644 (file)
@@ -1081,16 +1081,13 @@ som_solib_remove_inferior_hook (int pid)
   msymbol = lookup_minimal_symbol ("__dld_flags", NULL, NULL);
 
   addr = SYMBOL_VALUE_ADDRESS (msymbol);
-  status = target_read_memory (addr, dld_flags_buffer, TARGET_INT_BIT / TARGET_CHAR_BIT);
+  status = target_read_memory (addr, dld_flags_buffer, 4);
 
-  dld_flags_value = extract_unsigned_integer (dld_flags_buffer,
-                                             sizeof (dld_flags_value));
+  dld_flags_value = extract_unsigned_integer (dld_flags_buffer, 4);
 
   dld_flags_value &= ~DLD_FLAGS_HOOKVALID;
-  store_unsigned_integer (dld_flags_buffer,
-                         sizeof (dld_flags_value),
-                         dld_flags_value);
-  status = target_write_memory (addr, dld_flags_buffer, TARGET_INT_BIT / TARGET_CHAR_BIT);
+  store_unsigned_integer (dld_flags_buffer, 4, dld_flags_value);
+  status = target_write_memory (addr, dld_flags_buffer, 4);
 
   do_cleanups (old_cleanups);
 }