substitute gdb convenience variable into gdb command
Michael Snyder
msnyder@specifix.com
Tue Feb 12 22:09:00 GMT 2008
On Tue, 2008-02-12 at 11:03 -0500, Daniel Jacobowitz wrote:
> On Tue, Feb 12, 2008 at 05:54:33PM +0200, Yakov Lerner wrote:
> > How do I substitute value of gdb convenience variable into gdb command ?
>
> Sorry, there's no way to do this.
It's really dependent on the command. Command arguments
come in as a string, and each command has to parse them.
It's just that in this particular case, the command tries
to parse the string by using strtol. Nicer commands use
one of gdb's built-in parsing functions, which take into
account things like expressions and convenience variables.
More information about the Gdb
mailing list