gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Error when Loading ELF into MappyVM

#76540 - ion - Wed Mar 22, 2006 4:35 pm

Hi all, again...

I'm can't seem to load an elf file into Mappy VM. It's throws an error

Code:

Access violation at address 004036AB in module 'mappyvm09.exe'. Read of address 00000000.


Has anyone seen this error before?

ION
EDIT: It actually loads but runs at snail space and can't seem to seem through code.

#76548 - ion - Wed Mar 22, 2006 5:22 pm

ok so I set GCC optimization level to 0 and it loads with no errors but still cant debug properly.. there seems to be errors in the console..

Code:

dwarfUtils.ReadNode: Error, abbreviation 87 not found in .debug_abbrev contribution for current compilation unit


I guess this is in the Mappy VM source code cos when I googled up popped the delphi file.

Does this suggest that my elf file format is not correct? surely it's a standard format.

ION

#76549 - wintermute - Wed Mar 22, 2006 5:27 pm

It's a standard format yes. Unfortunately it's a moving target - ARM ELF especially is currently undergoing quite a few changes. Even gdb is suffering from this - you'll find that ELF files output by the current devkitARM will crash older versions of Insight/gdb as well.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#76550 - ion - Wed Mar 22, 2006 5:50 pm

a little frustrating no?

Well maybe they'll update mappy at some stage. I wanted to try it cos GDB stopped working with my code. I've a previous post from today describes that error.

JP

#76551 - ion - Wed Mar 22, 2006 5:52 pm

hey wintermute,

could you suggest any version of devkitARM that will work with Insight/GDB or Mappy VM?

ION

#76554 - wintermute - Wed Mar 22, 2006 6:36 pm

It's not a devkitARM problem, it's a Mappy problem.

This version of Insight/gdb works fine.

http://www.devkitpro.org/index.php?action=fullnews&id=90
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#76561 - ion - Wed Mar 22, 2006 7:04 pm

I was using R17 and that version of Insight/GDB and it was stopped working. Now its started working again although I am getting errors. I tryed R8 and that had worked, then R12 but VBA_SDL was taking ages to start but it also seemed to allow me to debug. Then I reverted back to R17 and it seems to work although it is buggy.

When you say "work fine"

I am using GDB from within Eclipse so not sure if that is affecting it.

Thanks anyway,
ION

#76754 - gmiller - Fri Mar 24, 2006 6:57 am

If you are using SDL vba 1.7.2 or higher they do not work correctly with gdb/insight or any other gdb compatable debugger. If you fall back to 1.7.1 then MOST of you gdb errors will vanish.

Sorry I missed the Mappy reference .... although they might have the same issue as vba.