From: David Lamy-Charrier <david.lamy@gmail.com>
To: gdb@sources.redhat.com
Subject: Re: Convenience variable for filename in add-symbol-file not expanded
Date: Thu, 29 Sep 2005 12:50:00 -0000 [thread overview]
Message-ID: <6541ed4c0509290550663f5331@mail.gmail.com> (raw)
In-Reply-To: <200509291235.j8TCZHg16388@haiti.swb.siemens.de>
Dieter,
Thanks for your response, but your solution allows to expand
convenience variable used
for section address parameter, I want to expand a convenience variable
for the filename parameter, so instead of value_as_address() it should
be a kind of value_as_string...
Regards,
David
On 9/29/05, Ruppert <dieter_ruppert@siemens.com> wrote:
>
>
> >Does anyone know if a patch exists for that ?
> >If not, could you give me some hints to implement it (any
> >parse_and_eval_string or equivalent i can use...) ?
> >
>
> If you can't find a more general solution:
> I got this working with the following local hack in
> parse-and_eval_address (this was gdb-6.1):
>
> CORE_ADDR addr;
> if (exp[0] == '$')
> {
>
> struct value* valx;
> valx = value_of_internalvar(lookup_internalvar(&exp[1]));
> if (TYPE_CODE( VALUE_TYPE(valx)) != TYPE_CODE_INT)
> error("Invalid type given as section address.");
> addr = value_as_address(valx);
> }
> else
> {
>
> ... the current code goes here
>
>
> HTH
>
> regards
> d.ruppert
> dieter_ruppert@siemens.com
>
>
next prev parent reply other threads:[~2005-09-29 12:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-29 12:36 Ruppert
2005-09-29 12:50 ` David Lamy-Charrier [this message]
2005-09-29 13:00 ` Andrew STUBBS
2005-09-29 13:38 ` David Lamy-Charrier
2005-09-29 14:04 ` Andrew STUBBS
-- strict thread matches above, loose matches on Subject: below --
2005-09-29 10:22 David Lamy-Charrier
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=6541ed4c0509290550663f5331@mail.gmail.com \
--to=david.lamy@gmail.com \
--cc=gdb@sources.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).