ret = cp_comp_to_string (info->tree, estimated_len);
cp_demangled_name_parse_free (info);
+ if (ret == NULL)
+ {
+ warning (_("internal error: string \"%s\" failed to be canonicalized"),
+ string);
+ return NULL;
+ }
+
if (strcmp (string, ret) == 0)
{
xfree (ret);
const char *func_name)
{
char *namespace;
- char *type_name;
+ const char *type_name;
int i, prefix_len;
while (TYPE_CODE (type) == TYPE_CODE_PTR
const char *p;
struct expression *expr;
struct value *val;
- struct gdb_exception except;
+ volatile struct gdb_exception except;
p = input;