convenience variables in "target remote"
Daniel Jacobowitz
drow@false.org
Thu Nov 10 13:43:00 GMT 2005
On Thu, Nov 10, 2005 at 01:29:46PM +0300, Vladimir Prus wrote:
>
> Hi,
> it looks like "target remote" command does not handle convenience variables
> properly:
>
> (gdb) set $var=1234
> (gdb) target remote :$var
> :$var: Connection refused.
> (gdb) target remote :1234
> Remote debugging using :1234
>
> When $var is used, it's not expanded, at gdb tries to connect to the wrong
> port?
>
> Is this by design, or a bug?
Convenience variables are expanded in roughly the same places that the
(C) expression evaluator is used to parse expressions. Most places
that take a number do not support them; that's by design, the full
range of expressions are not supported for ports.
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the Gdb
mailing list