Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Christophe LYON <christophe.lyon@st.com>
To: gdb@sourceware.org
Subject: GDB and C++: handling of POD/non-POD objects
Date: Mon, 20 Jun 2005 08:45:00 -0000	[thread overview]
Message-ID: <42B68205.38424254@st.com> (raw)


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.


             reply	other threads:[~2005-06-20  8:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-20  8:45 Christophe LYON [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42B68205.38424254@st.com \
    --to=christophe.lyon@st.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox