aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandolph Chung <tausq@debian.org>2004-05-19 02:45:24 +0000
committerRandolph Chung <tausq@debian.org>2004-05-19 02:45:24 +0000
commit9ca80cf8cc06af0c6cb0e8dfd868615ca3065c0e (patch)
treebb930234b953b06ff21a9f61cd86fd04214857a5
parented70ba000bad04e98f97f2cc0c914029db153083 (diff)
downloadgdb-9ca80cf8cc06af0c6cb0e8dfd868615ca3065c0e.zip
gdb-9ca80cf8cc06af0c6cb0e8dfd868615ca3065c0e.tar.gz
gdb-9ca80cf8cc06af0c6cb0e8dfd868615ca3065c0e.tar.bz2
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/somsolib.c11
2 files changed, 9 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ccdfb14..e9fbfa9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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
it for unwinding the stack.
diff --git a/gdb/somsolib.c b/gdb/somsolib.c
index 38a3186..0081280 100644
--- a/gdb/somsolib.c
+++ b/gdb/somsolib.c
@@ -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);
}