This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB 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: z8k simulator broken



For the curious (why would you be curious?  I don't know.  I don't even
know why I started doing this!) I don't know if this simulator was ever
able to run GDB tests or simple newlib binaries but my guess is not
recently.

A z8002 binary (gdb.base/break) has a .text section of size 0xeb24 or
so.  The heap is 0x5000, the stack is 0x1000, and AFAICT a z8002 has
only 0x10000 memory.

A z8001 has much more memory available but only in 64k segments, and
.text is:
  0 .text         00019a94  00000000  00000000  00000120  2**1
                  CONTENTS, ALLOC, LOAD, CODE

i.e. much more than the one segment it can use.


I was trying to multi-arch the z8k on a lark, but it's not enough of a
lark to try to get around _that_.  Let it die.
Hmm, I'll file this one away :-)

More evidence supporting the hard-nosed requirement that someone doing a multi-arch must ensure that the before/after code actually works. GDB isn't in the business of trying to preserve dead code.

Andrew



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