aboutsummaryrefslogtreecommitdiff
path: root/gdb/jv-exp.y
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-exp.y
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-exp.y')
-rw-r--r--gdb/jv-exp.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/jv-exp.y b/gdb/jv-exp.y
index bb4e05e..fcbb84f 100644
--- a/gdb/jv-exp.y
+++ b/gdb/jv-exp.y
@@ -1265,7 +1265,7 @@ push_variable (struct stoken name)
}
/* Assuming a reference expression has been pushed, emit the
- STRUCTOP_STRUCT ops to access the field named NAME. If NAME is a
+ STRUCTOP_PTR ops to access the field named NAME. If NAME is a
qualified name (has '.'), generate a field access for each part. */
static void
@@ -1281,9 +1281,9 @@ push_fieldnames (name)
{
/* token.ptr is start of current field name. */
token.length = &name.ptr[i] - token.ptr;
- write_exp_elt_opcode (STRUCTOP_STRUCT);
+ write_exp_elt_opcode (STRUCTOP_PTR);
write_exp_string (token);
- write_exp_elt_opcode (STRUCTOP_STRUCT);
+ write_exp_elt_opcode (STRUCTOP_PTR);
token.ptr += token.length + 1;
}
if (i >= name.length)