aboutsummaryrefslogtreecommitdiff
path: root/gdb/jv-typeprint.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-05-14 16:44:27 +0000
committerDaniel Jacobowitz <drow@false.org>2007-05-14 16:44:27 +0000
commitdc5000e72188dd452616737a08bd11b320a8d25d (patch)
tree358b3e50ad8ddfba9260d2608832e16d96bb9342 /gdb/jv-typeprint.c
parentbfe9c90b9ad82475c78ff876f377f96489afb65c (diff)
downloadfsf-binutils-gdb-dc5000e72188dd452616737a08bd11b320a8d25d.zip
fsf-binutils-gdb-dc5000e72188dd452616737a08bd11b320a8d25d.tar.gz
fsf-binutils-gdb-dc5000e72188dd452616737a08bd11b320a8d25d.tar.bz2
* 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 727f728..b004bf9 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);
}