Bug 233628

Summary: frysk doesn't always display local variables in gcj-compiled applications
Product: [Fedora] Fedora Reporter: Andrew Cagney <cagney>
Component: fryskAssignee: Andrew Cagney <cagney>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Len DiMaggio <ldimaggi>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: cagney, kasal, mcvet, mjw, npremji, pmuldoon, rmoseley, scox, timoore, triage, tromey
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: bzcl34nup
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-07 01:19:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 233616    
Bug Blocks:    

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:

import java.io.*;

public class fh
{
  public static  void main(String[] argv) throws Exception
  {
    PrintWriter p = new PrintWriter("foobar");
    p.println("Arse");
    p.close();
  }
}

Compile it like this:

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

The debug it like this:

 $ fhpd ./a.out 
(fhpd) break fh.main(java.lang.String[])void
Breakpoint 1 at 0x400c6b: file fh.java, line 7.
(fhpd) run
Starting program: /home/aph/a.out 
Breakpoint 1, fh.main(java.lang.String[])void (argv=@2aaaaad08ee0) at fh.java:7
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:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping 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:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp