summaryrefslogtreecommitdiff
path: root/gdb/jv-typeprint.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2007-05-14 16:44:27 +0000
committerDaniel Jacobowitz <dan@debian.org>2007-05-14 16:44:27 +0000
commit32445dae17ad6bc15945d3b2d3c8acadfe99feb6 (patch)
treeaa6e1c90aadb819bdc947f10ba42acd33a7d3575 /gdb/jv-typeprint.c
parentd5861a7c397f720ab431e96788bff092e0a58484 (diff)
downloadgdb-32445dae17ad6bc15945d3b2d3c8acadfe99feb6.tar.gz
* jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
STRUCTOP_STRUCT. * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of STRUCTOP_STRUCT. * jv-typeprint.c (java_print_type): Do not crash on NULL varstring. * gdb.java/jprint.java (public): Avoid invalid call to static method.
Diffstat (limited to 'gdb/jv-typeprint.c')
-rw-r--r--gdb/jv-typeprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/jv-typeprint.c b/gdb/jv-typeprint.c
index 727f728d47b..b004bf96e03 100644
--- a/gdb/jv-typeprint.c
+++ b/gdb/jv-typeprint.c
@@ -338,6 +338,6 @@ java_print_type (struct type *type, char *varstring, struct ui_file *stream,
/* For demangled function names, we have the arglist as part of the name,
so don't print an additional pair of ()'s */
- demangled_args = strchr (varstring, '(') != NULL;
+ demangled_args = varstring != NULL && strchr (varstring, '(') != NULL;
c_type_print_varspec_suffix (type, stream, show, 0, demangled_args);
}