diff options
author | Tom Tromey <tromey@redhat.com> | 2012-03-05 19:38:17 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-03-05 19:38:17 +0000 |
commit | b7b189f3cf682e67fb3ccd5908ec4b980735a620 (patch) | |
tree | 712adb9354716042f4a02a0cbe2758fac55b4ce5 /gdb/testsuite/gdb.java | |
parent | 5538f557d1ddde89da010f511826d62a9f4c53ed (diff) | |
download | gdb-b7b189f3cf682e67fb3ccd5908ec4b980735a620.zip gdb-b7b189f3cf682e67fb3ccd5908ec4b980735a620.tar.gz gdb-b7b189f3cf682e67fb3ccd5908ec4b980735a620.tar.bz2 |
* jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
gdb/testsuite
* gdb.java/jprint.java (jprint.main): Keep 'x' live.
Diffstat (limited to 'gdb/testsuite/gdb.java')
-rw-r--r-- | gdb/testsuite/gdb.java/jprint.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.java/jprint.java b/gdb/testsuite/gdb.java/jprint.java index 3d55dc3..0a5e7d3 100644 --- a/gdb/testsuite/gdb.java/jprint.java +++ b/gdb/testsuite/gdb.java/jprint.java @@ -61,6 +61,7 @@ public class jprint extends jvclass { jprint x = new jprint (); x.dothat (44); print (k, 33); + print (x.addk(0), 33); } } |