From: Ruppert <dieter_ruppert@siemens.com>
To: gdb@sources.redhat.com
Subject: Re: Convenience variable for filename in add-symbol-file not expanded
Date: Thu, 29 Sep 2005 12:36:00 -0000 [thread overview]
Message-ID: <200509291235.j8TCZHg16388@haiti.swb.siemens.de> (raw)
>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 reply other threads:[~2005-09-29 12:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-29 12:36 Ruppert [this message]
2005-09-29 12:50 ` David Lamy-Charrier
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=200509291235.j8TCZHg16388@haiti.swb.siemens.de \
--to=dieter_ruppert@siemens.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).