This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[PATCH] VALUE_TYPE -> value_type
- From: Keith Seitz <keiths at redhat dot com>
- To: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: Thu, 18 Nov 2004 16:21:42 -0800
- Subject: [PATCH] VALUE_TYPE -> value_type
Checked in the attached patch.
Keith
2004-11-18 Keith Seitz <kseitz@sources.redhat.com>
* generic/gdbtk-wrapper.c (wrap_type_print): Use value_type
instead
of VALUE_TYPE.
* generic/gdbtk-cmds.c (gdb_eval): Likewise.
Index: generic/gdbtk-wrapper.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-wrapper.c,v
retrieving revision 1.9
diff -u -p -r1.9 gdbtk-wrapper.c
--- generic/gdbtk-wrapper.c 20 Feb 2003 12:12:33 -0000 1.9
+++ generic/gdbtk-wrapper.c 19 Nov 2004 00:19:36 -0000
@@ -158,7 +158,7 @@ wrap_type_print (char *a)
char *varstring = (*args)->args[1];
struct ui_file *stream = (struct ui_file *) (*args)->args[2];
int show = (int) (*args)->args[3];
- type_print (VALUE_TYPE (val), varstring, stream, show);
+ type_print (value_type (val), varstring, stream, show);
return 1;
}
Index: generic/gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.83
diff -u -p -r1.83 gdbtk-cmds.c
--- generic/gdbtk-cmds.c 2 Jul 2004 22:00:56 -0000 1.83
+++ generic/gdbtk-cmds.c 19 Nov 2004 00:19:36 -0000
@@ -38,6 +38,7 @@
#include "dictionary.h"
#include "filenames.h"
#include "disasm.h"
+#include "value.h"
/* tcl header files includes varargs.h unless HAS_STDARG is defined,
but gdb uses stdarg.h, so make sure HAS_STDARG is defined. */
@@ -622,7 +623,7 @@ gdb_eval (ClientData clientData, Tcl_Int
/* "Print" the result of the expression evaluation. */
stb = mem_fileopen ();
make_cleanup_ui_file_delete (stb);
- val_print (VALUE_TYPE (val), VALUE_CONTENTS (val),
+ val_print (value_type (val), VALUE_CONTENTS (val),
VALUE_EMBEDDED_OFFSET (val), VALUE_ADDRESS (val),
stb, format, 0, 0, 0);
result = ui_file_xstrdup (stb, &dummy);