--- Begin Message ---
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: insight at sources dot redhat dot com
- Date: Fri, 04 Jan 2002 14:13:35 -0500
- Subject: [rfa] Move ``typedef value_ptr'' to gdbtk-wrapper.h
Hello,
This moves the value_ptr typedef to a gdbtk specific file since only
gdbtk uses it.
Ok?
Andrew
Index: ChangeLog
2002-01-04 Andrew Cagney <ac131313@redhat.com>
* value.h (value_ptr): Delete typedef.
Index: gdbtk/ChangeLog
2002-01-04 Andrew Cagney <ac131313@redhat.com>
* generic/gdbtk-wrapper.h: Add typedef value_ptr.
Index: value.h
===================================================================
RCS file: /cvs/src/src/gdb/value.h,v
retrieving revision 1.25
diff -p -r1.25 value.h
*** value.h 2002/01/04 18:20:19 1.25
--- value.h 2002/01/04 19:09:34
*************** struct value
*** 174,181 ****
/* Do not add any new members here -- contents above will trash them */
};
- typedef struct value *value_ptr;
-
#define VALUE_TYPE(val) (val)->type
#define VALUE_ENCLOSING_TYPE(val) (val)->enclosing_type
#define VALUE_LAZY(val) (val)->lazy
--- 174,179 ----
Index: gdbtk/generic/gdbtk-wrapper.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-wrapper.h,v
retrieving revision 1.4
diff -p -r1.4 gdbtk-wrapper.h
*** gdbtk-wrapper.h 2000/07/02 20:07:07 1.4
--- gdbtk-wrapper.h 2002/01/04 19:09:35
*************** struct gdb_wrapper_arguments {
*** 31,36 ****
--- 31,41 ----
char *args[10];
};
+ /* FIXME: cagney/2002-01-04: GDB no longer uses or supplies the
+ value_ptr typedef. Provide one here to keep the Insight code
+ immediatly happy. */
+ typedef struct value *value_ptr;
+
/* Whenever any gdb function wrapper is called, its return status is: */
typedef enum gdb_wrapper_status { GDB_OK, GDB_ERROR } gdb_result;
--- End Message ---