This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Make the value buffer a bfd_byte, not long


Makes for simpler code, committed.
Andrew
Index: ChangeLog
2005-01-27  Andrew Cagney  <cagney@gnu.org>

	* value.h (struct value): Change type of contents to bfd_byte.
	(VALUE_CONTENTS_RAW): Simplify.

Index: value.h
===================================================================
RCS file: /cvs/src/src/gdb/value.h,v
retrieving revision 1.62
diff -p -u -r1.62 value.h
--- value.h	27 Jan 2005 16:45:09 -0000	1.62
+++ value.h	27 Jan 2005 21:46:42 -0000
@@ -162,7 +162,7 @@ struct value
      declared here.  */
   union
   {
-    long contents[1];
+    bfd_byte contents[1];
     DOUBLEST force_doublest_align;
     LONGEST force_longest_align;
     CORE_ADDR force_core_addr_align;
@@ -195,7 +195,7 @@ extern int value_offset (struct value *)
    something embedded in a larger run-time object.  */
 
 #define VALUE_CONTENTS_RAW(val) \
- ((char *) (val)->aligner.contents + (val)->embedded_offset)
+ ((val)->aligner.contents + (val)->embedded_offset)
 #define VALUE_CONTENTS(val) \
  ((void)(VALUE_LAZY(val) && value_fetch_lazy(val)), VALUE_CONTENTS_RAW(val))
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]