aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2002-01-10 00:06:02 +0000
committerJason Merrill <jason@redhat.com>2002-01-10 00:06:02 +0000
commit39c22d1ade25baa5c9afaac499038ddc76a3dd60 (patch)
treefbb91308874af9352a924b6ce597e9a1dae21ccc
parent155ca243e172f6eda0ada2f9d61d2b1e435f9903 (diff)
downloadfsf-binutils-gdb-39c22d1ade25baa5c9afaac499038ddc76a3dd60.zip
fsf-binutils-gdb-39c22d1ade25baa5c9afaac499038ddc76a3dd60.tar.gz
fsf-binutils-gdb-39c22d1ade25baa5c9afaac499038ddc76a3dd60.tar.bz2
* c-typeprint.c (is_type_conversion_operator): Fix thinko.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/MAINTAINERS1
-rw-r--r--gdb/c-typeprint.c4
3 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 34b4a85..07cf65a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2002-01-09 Jason Merrill <jason@redhat.com>
+
+ * c-typeprint.c (is_type_conversion_operator): Fix thinko.
+
2002-01-09 Michael Snyder <msnyder@redhat.com>
* i386-linux-nat.c (fill_fpxregset): Make global.
diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS
index 1df43f5..0995dca 100644
--- a/gdb/MAINTAINERS
+++ b/gdb/MAINTAINERS
@@ -366,6 +366,7 @@ Jim Kingdon jkingdon@engr.sgi.com ++
Jonathan Larmour jlarmour@redhat.co.uk
H.J. Lu hjl@lucon.org
Glen McCready gkm@redhat.com
+Jason Merrill jason@redhat.com
Jason Molenda jmolenda@apple.com
Pierre Muller muller@sourceware.redhat.com
Alexandre Oliva aoliva@redhat.com
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index aa7f5a5..ce7fbe0 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -407,7 +407,9 @@ is_type_conversion_operator (struct type *type, int i, int j)
else if (strncmp (name, "delete", 6) == 0)
name += 6;
else
- return 0;
+ /* If it doesn't look like new or delete, it's a type conversion
+ operator. */
+ return 1;
/* Is that really the end of the name? */
if (('a' <= *name && *name <= 'z')