Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@specifix.com>
To: Yakov Lerner <iler.ml@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: substitute gdb convenience variable into gdb command
Date: Tue, 12 Feb 2008 19:41:00 -0000	[thread overview]
Message-ID: <1202845293.19253.97.camel@localhost.localdomain> (raw)
In-Reply-To: <f36b08ee0802120754r59b72f64vb9164965da338686@mail.gmail.com>

On Tue, 2008-02-12 at 17:54 +0200, Yakov Lerner wrote:
> How do I substitute value of gdb convenience variable into gdb command ?
> 
> For example:
>     set $thread_num=5
>     thread apply $thread_num where
>     Error parsing $thread_num where
>     eval thread apply $thread_num where
>     Undefined command: "eval".  Try "help".
> 
> Thanks
> Y.L.


Hmm!  That's a bit of an oversight...
thread_apply_command calls strtol.  It ought to call
one of the built-in expression parsing functions.

Somebody should fix that...   ;-)




  parent reply	other threads:[~2008-02-12 19:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-12 15:54 Yakov Lerner
2008-02-12 16:03 ` Daniel Jacobowitz
2008-02-12 22:09   ` Michael Snyder
2008-02-12 19:41 ` Michael Snyder [this message]
2008-02-12 19:56   ` Daniel Jacobowitz
2008-02-12 22:17     ` Michael Snyder

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=1202845293.19253.97.camel@localhost.localdomain \
    --to=msnyder@specifix.com \
    --cc=gdb@sourceware.org \
    --cc=iler.ml@gmail.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