Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB and C++: handling of POD/non-POD objects
@ 2005-06-20  8:45 Christophe LYON
  2005-06-20 13:58 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Christophe LYON @ 2005-06-20  8:45 UTC (permalink / raw)
  To: gdb


Hi all,

I am working on C++ support in our GDB port, and
currently fixing bugs with the handling of how
objects are returned by function called "by hand".

Our compiler conforms to the common vendor ABI,
and I have to distinguish POD and non-POD objects.
For the latter, a hidden parameter is supplied
by the caller, which is a pointer to a memory
area to store the return value.

I have looked in GDB how POD and non-POD objects
are handled and found only a few lines in the
AMD64 port. I have to mention that it looks buggy,
as non-POD objects are equivalent to objects
which have base classes, which is not the right
definition.

I am surprised that no other target already has
code to handle this: is it because every other
target always needs the hidden pointer parameter
to handle object return, whether POD or non-POD?

I guess I will have to write my own code.

Regards,

Christophe.


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

end of thread, other threads:[~2005-06-28 13:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-20  8:45 GDB and C++: handling of POD/non-POD objects Christophe LYON
2005-06-20 13:58 ` Daniel Jacobowitz
2005-06-21 11:59   ` Christophe LYON
2005-06-28 10:49     ` Christophe LYON
2005-06-28 13:04       ` Daniel Jacobowitz

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