From: Daniel Jacobowitz <drow@false.org>
To: Wu Zhou <woodzltc@cn.ibm.com>
Cc: gdb@sources.redhat.com
Subject: Re: Program terminated with SIGSEGV when trying to print an array element
Date: Wed, 08 Jun 2005 13:07:00 -0000 [thread overview]
Message-ID: <20050608130715.GA4861@nevyn.them.org> (raw)
In-Reply-To: <Pine.LNX.4.63.0506081436340.6314@plinuxt18.cn.ibm.com>
On Wed, Jun 08, 2005 at 02:52:20PM +0800, Wu Zhou wrote:
> Sure. But now I am having difficulty in one problem: given an struct value
> with the type being TYPE_CODE_PTR, how to get the value of the array (or
> string or whatever) it refer to? We need to know this to go on with the
> following evaluation. I had thought that function "value_from_pointer"
> will do this, but it turn out to be false. Anyone could help on this?
Usually, value_ind. Do you have a pointer to a TYPE_CODE_ARRAY, or has
the array decayed into a pointer (like in C)?
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-06-08 13:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-07 8:14 Wu Zhou
2005-06-07 9:03 ` Wu Zhou
2005-06-07 13:14 ` Daniel Jacobowitz
2005-06-08 6:57 ` Wu Zhou
2005-06-08 13:07 ` Daniel Jacobowitz [this message]
2005-06-09 2:47 ` Wu Zhou
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=20050608130715.GA4861@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=woodzltc@cn.ibm.com \
/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