[okl4-developer] Error: 'NoneType' object has no attribute 'type'

Hugues Balp hugues.balp at free.fr
Tue Nov 25 09:33:08 EST 2008


                Hi all,

after having prototyped a little custom example based on the singlecell 
and multicell
examples of the OKL4 SDK, the elfweaver tool raises the error

    'NoneType' object has no attribute 'type'

when trying to create the image.boot file with the following command:

strace 
/home/hugues/tools/okl4/okl4_3.0/build/SDK/object/sdk/sdk/bin/elfweaver 
modify -obuild.micro-debug/images/image.boot 
build.micro-debug/images/image.elf --physical_entry --physical 2> 
hbdbg_elf.strace

It appears to me that this error is raised by the python implementation 
of elfweaver.
The problem is then to know why this error occurs.
Probably because the input data are not valid ?
May be... and because I am new to python and OKL4...

Nevertheless I tried to debug a little with gdb, using python2.4-dbg and 
some
python macros added to .gdbinit as proposed in URL
   
    http://wiki.python.org/moin/DebuggingWithGdb

I didn't get some usefull informations....
so as when looking at the reference documentation of elfweaver where I 
could not
find how to enable debugging of elfweaver..

The only thing I have for the moment is the system traces I got with 
strace....
I hope someone can explain me how to debug such kind of errors...
and join to this mail a shell script listing the commands executed by 
the makefile
of my example so as the system traces I got when building the image.boot 
file....

    Thanks in advance,

                   Hugues Balp.





-------------- next part --------------
A non-text attachment was scrubbed...
Name: hb_dbg_elf.sh
Type: application/x-sh
Size: 2070 bytes
Desc: not available
Url : http://lists.okl4.org/pipermail/developer/attachments/20081124/4d55b15d/attachment-0001.sh 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hbdbg_elf.strace.bz2
Type: application/x-bzip
Size: 7336 bytes
Desc: not available
Url : http://lists.okl4.org/pipermail/developer/attachments/20081124/4d55b15d/attachment-0001.bin 


More information about the Developer mailing list