OSDN Git Service

* generic/gdbtk-wrapper.c (wrap_type_print): Use value_type instead
authorkseitz <kseitz>
Fri, 19 Nov 2004 00:19:55 +0000 (00:19 +0000)
committerkseitz <kseitz>
Fri, 19 Nov 2004 00:19:55 +0000 (00:19 +0000)
        of VALUE_TYPE.
        * generic/gdbtk-cmds.c (gdb_eval): Likewise.

gdb/gdbtk/ChangeLog
gdb/gdbtk/generic/gdbtk-cmds.c
gdb/gdbtk/generic/gdbtk-wrapper.c

index be568c9..5d89b31 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2004-10-31  David Lecomber <dsl@sources.redhat.com>
        * generic/gdbtk-register.c: Add message parameter
        to call of get_selected_frame.
index 89c61ac..f02555f 100644 (file)
@@ -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_Interp *interp,
   /* "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);
index bdbf6e7..655dbfd 100644 (file)
@@ -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;
 }