aboutsummaryrefslogtreecommitdiff
path: root/gdb/cplus-dem.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-05-02 04:28:42 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-05-02 04:28:42 +0000
commite1ce8aa5ed46310d716472d19d2e87da2833d599 (patch)
treecacaf1a83d8e388b049c2b3bc454f311dd34b6e2 /gdb/cplus-dem.c
parent04a0511c0af3d07f7b4587fbf4715d2b956f1fad (diff)
downloadgdb-e1ce8aa5ed46310d716472d19d2e87da2833d599.zip
gdb-e1ce8aa5ed46310d716472d19d2e87da2833d599.tar.gz
gdb-e1ce8aa5ed46310d716472d19d2e87da2833d599.tar.bz2
The list of changes is too long to fit in the cvs log (since it truncates!).
Look at the ChangeLog for Apr 30 and May 1.
Diffstat (limited to 'gdb/cplus-dem.c')
-rw-r--r--gdb/cplus-dem.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/cplus-dem.c b/gdb/cplus-dem.c
index b01cb93..95c4529 100644
--- a/gdb/cplus-dem.c
+++ b/gdb/cplus-dem.c
@@ -64,6 +64,10 @@
#include <stdio.h>
#include <ctype.h>
+/* GDB-specific, FIXME. */
+#include "defs.h"
+#include "param.h"
+
#ifdef USG
#include <memory.h>
#include <string.h>
@@ -194,21 +198,19 @@ static void remember_type ();
#endif
/* Takes operator name as e.g. "++" and returns mangled
- operator name (e.g. "postincrement_expr"). */
+ operator name (e.g. "postincrement_expr"), or NULL if not found. */
char *
cplus_mangle_opname (opname)
char *opname;
{
int i, len = strlen (opname);
- string name;
for (i = 0; i < sizeof (optable)/sizeof (optable[0]); i++)
{
if (strlen (optable[i].out) == len
&& memcmp (optable[i].out, opname, len) == 0)
- return optable[i].in;
+ return (char *)optable[i].in;
}
- error ("no mangling for `%s'", opname);
return 0;
}
@@ -440,7 +442,7 @@ do_type (type, result, arg_mode)
success = 0;
*type += 2;
while (n-- > 0)
- do_type (type, result);
+ do_type (type, result, arg_mode);
break;
case 'P':