Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 233628 - frysk doesn't always display local variables in gcj-compiled applications
Summary: frysk doesn't always display local variables in gcj-compiled applications
Alias: None
Product: Fedora
Classification: Fedora
Component: frysk
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Andrew Cagney
QA Contact: Len DiMaggio
Whiteboard: bzcl34nup
Depends On: 233616
TreeView+ depends on / blocked
Reported: 2007-03-23 14:41 UTC by Andrew Cagney
Modified: 2008-05-07 01:19 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-05-07 01:19:42 UTC

Attachments (Terms of Use)

Description Andrew Cagney 2007-03-23 14:41:18 UTC
+++ This bug was initially created as a clone of Bug #233616 +++

The problem is that gdb can't display local variables in Java mode, but it can
display them in C++ mode.

Here's a simple Java program:


public class fh
  public static  void main(String[] argv) throws Exception
    PrintWriter p = new PrintWriter("foobar");

Compile it like this:

/usr/bin/gcj --main=fh -g

The debug it like this:

 $ fhpd ./a.out 
(fhpd) break fh.main(java.lang.String[])void
Breakpoint 1 at 0x400c6b: file, line 7.
(fhpd) run
Starting program: /home/aph/a.out 
Breakpoint 1, fh.main(java.lang.String[])void (argv=@2aaaaad08ee0) at
7           PrintWriter p = new PrintWriter("foobar");
Current language:  auto; currently java
(fhpd) next
8           p.println("Arse");
(fhpd) print p
$1 = warning: RTTI symbol not found for class 'java::io::PrintWriter'
Cannot access memory at address 0x0

Comment 1 Bug Zapper 2008-04-03 23:45:46 UTC
Based on the date this bug was created, it appears to have been reported
against rawhide during the development of a Fedora release that is no
longer maintained. In order to refocus our efforts as a project we are
flagging all of the open bugs for releases which are no longer
maintained. If this bug remains in NEEDINFO thirty (30) days from now,
we will automatically close it.

If you can reproduce this bug in a maintained Fedora version (7, 8, or
rawhide), please change this bug to the respective version and change
the status to ASSIGNED. (If you're unable to change the bug's version
or status, add a comment to the bug and someone will change it for you.)

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we're following is outlined here:

We will be following the process here: to ensure this
doesn't happen again.

Comment 2 Bug Zapper 2008-05-07 01:19:40 UTC
This bug has been in NEEDINFO for more than 30 days since feedback was
first requested. As a result we are closing it.

If you can reproduce this bug in the future against a maintained Fedora
version please feel free to reopen it against that version.

The process we're following is outlined here:

Note You need to log in before you can comment on or make changes to this bug.