Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* DWARF-2 and address sizes
@ 2003-01-31 21:29 Daniel Jacobowitz
  2003-01-31 22:00 ` Andrew Cagney
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2003-01-31 21:29 UTC (permalink / raw)
  To: gdb; +Cc: Jim Blandy, Kevin Buettner

[Kevin, I noticed you doing some work in this area re S/390, maybe you've
got a comment?  Anyone else?  I'm grasping at straws.]

I'm trying to figure out how to handle addresses in the DWARF expression
evaluator.  First consider DW_OP_deref: the following data is "the size of
an address on the target machine", which I would personally take to mean
cu_header->addr_size.  Is this ever different from TARGET_ADDRESS_BIT /
TARGET_CHAR_BIT, which is what Daniel was originally using?  Do we have to
worry about a binary in which different compilation units (or different
shared objects, even) have a different value for this?

If the consensus is "no, that's too stupid to be allowed to live", then this
gets much easier.

(Then consider DW_OP_deref_size; this is a fun one, since it has to be
zero-extended to the size of an address on the target machine according to
the spec, and then in GDB it may have to be zero or sign extended to the
size of a CORE_ADDR for storage.  I haven't tested any of this on MIPS yet
and I don't want to, damn it.  I don't know of any MIPS ABI with multiple
pointer sizes, and you can't link different ABIs, so encountering
DW_OP_deref_size is probably impossible.  I hope.)

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-02-04  2:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-31 21:29 DWARF-2 and address sizes Daniel Jacobowitz
2003-01-31 22:00 ` Andrew Cagney
2003-01-31 22:36   ` Daniel Jacobowitz
2003-02-01  6:20     ` Daniel Berlin
2003-02-01 17:01       ` Daniel Jacobowitz
2003-02-04  2:26         ` Jim Blandy
2003-02-01  7:29     ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox