From: Andrew Cagney <ac131313@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: "Fyles, Matthew" <matthew.fyles@superh.com>, gdb@sources.redhat.com
Subject: Re: String handling in GDB command language variables
Date: Thu, 27 Feb 2003 16:43:00 -0000 [thread overview]
Message-ID: <3E5E40C5.3080700@redhat.com> (raw)
In-Reply-To: <20030227144022.GA3707@nevyn.them.org>
> The command language always mimics the current source language being
> debugged, defaulting to C; C doesn't have a string type. That's the
> historical justification anyway.
>
> If there's a consensus that a string type would be useful, it could
> probably be done. I think it might be a good idea; we could use
> strings for arguments to gdb commands, etc. However I'm not sure of
> the syntax.
DanielJ's comment, GDB's current behavior is to always a malloc(), store
the value in the target, and then create a `char *' `struct value'.
Is there anything in the `rule book' that says that GDB can be lazy
(when given "string" create a `char[]' `struct value' and then only
allocate space / create the pointer when the value is needed by the
target)? Is this trivial? Is this needed?
"no"? "no"? "yes"?
Andrew
next prev parent reply other threads:[~2003-02-27 16:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-27 14:35 Fyles, Matthew
2003-02-27 14:40 ` Daniel Jacobowitz
2003-02-27 16:43 ` Andrew Cagney [this message]
2003-02-27 19:06 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2003-02-27 9:13 Fyles, Matthew
2003-02-27 14:23 ` 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=3E5E40C5.3080700@redhat.com \
--to=ac131313@redhat.com \
--cc=drow@mvista.com \
--cc=gdb@sources.redhat.com \
--cc=matthew.fyles@superh.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