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
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: frysk
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Andrew Cagney
QA Contact: Len DiMaggio
URL:
Whiteboard: bzcl34nup
Depends On: 233616
Blocks:
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:
Environment:
Last Closed: 2008-05-07 01:19:42 UTC
Type: ---
Embargoed:


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:

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


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