This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: substitute gdb convenience variable into gdb command
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.