This is the mail archive of the frysk-bugzilla@sourceware.org mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug general/4698] Opening up a core file in the source window causes a backtrace


------- Additional Comments From swagiaal at redhat dot com  2007-06-25 15:11 -------
Phil, sounds like your hunch was right; looks like this is caused by failure to
create a dwarf object:

I added a throw exception in the constructor:

Index: frysk-core/frysk/debuginfo/DebugInfo.java
===================================================================
RCS file: /cvs/frysk/frysk-core/frysk/debuginfo/DebugInfo.java,v
retrieving revision 1.10
diff -u -r1.10 DebugInfo.java
--- frysk-core/frysk/debuginfo/DebugInfo.java   14 Jun 2007 03:20:33 -0000      1.10
+++ frysk-core/frysk/debuginfo/DebugInfo.java   25 Jun 2007 15:09:53 -0000
@@ -94,7 +94,9 @@
         dwarf = new Dwarf(elf, DwarfCommand.READ, null);
       }
       catch (lib.elf.ElfException ignore)
-      {}
+      {
+         throw new RuntimeException(ignore);
+      }
       debugInfoEvaluator = new DebugInfoEvaluator[1];
       subprogram = new Subprogram[1];
       debugInfoEvaluator[0] = new DebugInfoEvaluator (frame);


and got the following:

java.lang.RuntimeException: lib.elf.ElfFileException: Could not open sleep
   at frysk.debuginfo.DebugInfo.<init>(FryskGui)
   at frysk.gui.srcwin.SourceWindow.generateProcStackTrace(FryskGui)
   at frysk.gui.srcwin.SourceWindow.finishSourceWin(FryskGui)
   at frysk.gui.srcwin.SourceWindow.<init>(FryskGui)
   at frysk.gui.srcwin.SourceWindowFactory.createSourceWindow(FryskGui)
   at frysk.gui.srcwin.SourceWindowFactory.attachToCore(FryskGui)
   at frysk.gui.srcwin.SourceWindow.examineCoreFile(FryskGui)
   at frysk.gui.srcwin.SourceWindow$2.actionEvent(FryskGui)
   at org.gnu.gtk.Action.fireActionEvent(libgtkjava-2.10.so)
   at org.gnu.gtk.Action.handleActivate(libgtkjava-2.10.so)
Caused by: lib.elf.ElfFileException: Could not open sleep
   at lib.elf.Elf.elf_begin(FryskGui)
   at lib.elf.Elf.<init>(FryskGui)
   at frysk.debuginfo.DebugInfo.<init>(FryskGui)
   ...9 more

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4698

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]