summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2004-11-19 00:19:56 +0000
committerKeith Seitz <keiths@redhat.com>2004-11-19 00:19:56 +0000
commit44d02a918b109fc88492f57edc93c722605874b3 (patch)
tree1a7a88d04a32bc78d3b3947e496a32b105581991
parentdc4176df0ea755b7c4e9cddd85b5c8dd3776b74b (diff)
downloadgdb-44d02a918b109fc88492f57edc93c722605874b3.tar.gz
* generic/gdbtk-wrapper.c (wrap_type_print): Use value_type instead
of VALUE_TYPE. * generic/gdbtk-cmds.c (gdb_eval): Likewise.
-rw-r--r--gdb/gdbtk/ChangeLog6
-rw-r--r--gdb/gdbtk/generic/gdbtk-cmds.c3
-rw-r--r--gdb/gdbtk/generic/gdbtk-wrapper.c2
3 files changed, 9 insertions, 2 deletions
diff --git a/gdb/gdbtk/ChangeLog b/gdb/gdbtk/ChangeLog
index be568c9c211..5d89b315554 100644
--- a/gdb/gdbtk/ChangeLog
+++ b/gdb/gdbtk/ChangeLog
@@ -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.
diff --git a/gdb/gdbtk/generic/gdbtk-cmds.c b/gdb/gdbtk/generic/gdbtk-cmds.c
index 89c61acb692..f02555fcfb8 100644
--- a/gdb/gdbtk/generic/gdbtk-cmds.c
+++ b/gdb/gdbtk/generic/gdbtk-cmds.c
@@ -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);
diff --git a/gdb/gdbtk/generic/gdbtk-wrapper.c b/gdb/gdbtk/generic/gdbtk-wrapper.c
index bdbf6e7c2a0..655dbfd510f 100644
--- a/gdb/gdbtk/generic/gdbtk-wrapper.c
+++ b/gdb/gdbtk/generic/gdbtk-wrapper.c
@@ -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;
}