Thanks for help!  You're my only hope!  The 'net is quiet about such issues. :)

On Sun, Aug 10, 2008 at 01:44:59PM -0700, David Brown wrote:
> How did you build the excutable?

With a gcc ARM cross compiler I successfully built months ago from God knows
where.  There are various half baked scripts floating around the net to
automate this very tedious process.  I can rebuilt it if you think there is a
better source I should use.

> What kind of runtime is it expecting.
> I'm not sure what kind of environment the gdb armulator is providing,
> but I think it is just a small bare-bones system with some simulated I/O
> registers to do terminal I/O.

Are you thinking my cross compiler may be converting my C code into ARM
instructions for a *later* ARM chip than my GDB supports?  Perhaps I'd have
better luck writing toy ARM assembly rather than toy C??  Can GDB step through
raw binary (assembly) rather than ELF?

> A built ARM/linux executable isn't going
> to work very well.

Even if I don't pull in any standard libraries?

> If you're trying to run a fuller system, such as ARM-linux, I suggest
> one of the fuller systems.  qemu does a decent job of just running Linux
> like a target would.

Do you know of any prebuilt QEMU/Arm-Linux images?  The reason I ask is the
process to install Debian ARM Linux in QEMU is tricky and tedious just like
building a cross compiler is.

> In other words, unless you're just doing tiny little test executables,
> you're probably going to need something other than the environment
> provided in gdb.

Just running tiny test executables successfully would be much appreciated.
Even just stepping through toy assembly code with GDB would be adequate.
I'll try my "cross-assembler" if you think I may have better luck getting GDB
to like that output.

Thanks,

Chris


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to