* [PATCH] VALUE_TYPE -> value_type
@ 2004-11-19 0:21 Keith Seitz
0 siblings, 0 replies; only message in thread
From: Keith Seitz @ 2004-11-19 0:21 UTC (permalink / raw)
To: insight
[-- Attachment #1: Type: text/plain, Size: 248 bytes --]
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.
[-- Attachment #2: patch --]
[-- Type: text/x-patch, Size: 1685 bytes --]
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-19 0:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-19 0:21 [PATCH] VALUE_TYPE -> value_type Keith Seitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).