From: Yao Qi <yao@codesourcery.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: RFC: fix `gdb -write' case
Date: Mon, 09 May 2011 03:11:00 -0000 [thread overview]
Message-ID: <4DC75B31.2020501@codesourcery.com> (raw)
In-Reply-To: <m3k4e3wy6w.fsf@fleche.redhat.com>
On 05/07/2011 01:12 AM, Tom Tromey wrote:
> I'd appreciate comments on this. In the absence of comments I will
> check it in. I plan to put it on the 7.3 branch as well.
>
> This comes from:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=696148
>
FYI, I can't access this bug. I am told "You are not authorized to
access bug #696148."
> +
> + result = allocate_value (expect_type);
> + memcpy (value_contents_raw (result), obstack_base (&output),
> + obstack_object_size (&output));
Compared with value_cstring, the difference is that expect_type is used
here, while type used in value_cstring is got from lookup_array_range_type.
struct type *stringtype
= lookup_array_range_type (char_type, lowbound, highbound + lowbound
- 1);
Any difference on these two type variables (expect_type vs. stringtype)?
> + }
> + else
> + result = value_cstring (obstack_base (&output),
> + obstack_object_size (&output),
> + type);
> }
> do_cleanups (cleanup);
> return result;
--
Yao (é½å°§)
next prev parent reply other threads:[~2011-05-09 3:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-06 17:12 Tom Tromey
2011-05-09 3:11 ` Yao Qi [this message]
2011-05-09 14:54 ` Tom Tromey
2011-05-10 2:03 ` Yao Qi
2011-05-10 14:16 ` Tom Tromey
2011-05-11 8:06 ` Jan Kratochvil
2011-05-11 14:38 ` Jan Kratochvil
2011-05-11 19:42 ` Tom Tromey
2011-05-22 18:24 ` Jan Kratochvil
2011-05-23 20:24 ` Tom Tromey
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=4DC75B31.2020501@codesourcery.com \
--to=yao@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@redhat.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