This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: convenience variables in "target remote"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]