This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Re: How to handle a NullPointerException


 >Dimiter Stamenov wrote:
 >>  >Do simple programs work?
 >> 
 >> Hi Andrew, yes, all other programs I have compiled work fine, except this.  
 >> It is supposed just to take the text from a MS Word file, but until that 
 >> moment I have not succeed to do that with gcj compiled version...
 >
 >We'll have to take this in stages.  Can you usually get a backtrace out of gdb?
 >
 >If not, we might have to try `-finstrument-functions'.  You'll find
 >documentation for tis option in "Options for Code Generation Conventions"
 >
 >Andrew.
 >

Thanks, `-finstrument-functions' seems very useful option. I have read the documentation but could not realize how to define __cyg_profile_func_enter and __cyg_profile_func_exit? 

I am trying:
gcj --main=org.apache.poi.Universal -o universal.exe -g -finstrument-functions -s @files.list

the result is:
D:\DOCUME~1\Dimitar\LOCALS~1\Temp/ccEpfaaa.o: In function `main':D:/DOCUME~1/Dimitar/LOCALS~1/Temp/ccymeaaa.i:8: undefined re
ference to `__cyg_profile_func_enter'
:D:/DOCUME~1/Dimitar/LOCALS~1/Temp/ccymeaaa.i:11: undefined reference to `__cyg_profile_func_exit'

...and so on.

Dimiter


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