aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2001-05-31 22:04:46 +0000
committerMichael Chastain <mec@google.com>2001-05-31 22:04:46 +0000
commitfb1ffbbef0cec256e688df40dabd50aa48419ba4 (patch)
tree11dfdb1b07a204d18f9ac113b718fe81e2574623 /gdb/testsuite
parent5929ebc0033010ba5ae5cbf03bce16232726adbd (diff)
downloadgdb-fb1ffbbef0cec256e688df40dabd50aa48419ba4.zip
gdb-fb1ffbbef0cec256e688df40dabd50aa48419ba4.tar.gz
gdb-fb1ffbbef0cec256e688df40dabd50aa48419ba4.tar.bz2
2001-05-31 Michael Chastain <chastain@redhat.com>
* gdb.c++/cplusfuncs.cc (dm_type_char_star): Remove superfluous cast. (dm_type_int_star): Likewise. (dm_type_long_star): Likewise. (dm_type_void_star): Likewise.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog7
-rw-r--r--gdb/testsuite/gdb.c++/cplusfuncs.cc8
2 files changed, 11 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 58f44a1..d14be46 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2001-05-31 Michael Chastain <chastain@redhat.com>
+
+ * gdb.c++/cplusfuncs.cc (dm_type_char_star): Remove superfluous cast.
+ (dm_type_int_star): Likewise.
+ (dm_type_long_star): Likewise.
+ (dm_type_void_star): Likewise.
+
2001-05-29 Kevin Buettner <kevinb@redhat.com>
* gdb.base/completion.exp (INPUTRC): Set this environment variable
diff --git a/gdb/testsuite/gdb.c++/cplusfuncs.cc b/gdb/testsuite/gdb.c++/cplusfuncs.cc
index ed555aa..7f033d6 100644
--- a/gdb/testsuite/gdb.c++/cplusfuncs.cc
+++ b/gdb/testsuite/gdb.c++/cplusfuncs.cc
@@ -187,10 +187,10 @@ int hairyfunc7 (PFPFPc_i_PFl_i arg) { arg = 0; return 0; }
/* gdb has two demanglers (one for g++ 2.95, one for g++ 3).
These marker functions help me figure out which demangler is in use. */
-int dm_type_char_star (char * p) { return (int) p; }
+char * dm_type_char_star (char * p) { return p; }
int dm_type_foo_ref (foo & foo) { return foo.ifoo; }
-int dm_type_int_star (int * p) { return (int) p; }
-int dm_type_long_star (long * p) { return (int) p; }
+int * dm_type_int_star (int * p) { return p; }
+long * dm_type_long_star (long * p) { return p; }
int dm_type_unsigned_int (unsigned int i) { return i; }
int dm_type_void (void) { return 0; }
-int dm_type_void_star (void * p) { return (int) p; }
+void * dm_type_void_star (void * p) { return p; }